public class FlowLog
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a flow log.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
creationTime
The date and time the flow log was created.
|
private java.lang.String |
deliverLogsErrorMessage
Information about the error that occurred.
|
private java.lang.String |
deliverLogsPermissionArn
The ARN of the IAM role that posts logs to CloudWatch Logs.
|
private java.lang.String |
deliverLogsStatus
The status of the logs delivery (
SUCCESS |
FAILED ). |
private java.lang.String |
flowLogId
The flow log ID.
|
private java.lang.String |
flowLogStatus
The status of the flow log (
ACTIVE ). |
private java.lang.String |
logGroupName
The name of the flow log group.
|
private java.lang.String |
resourceId
The ID of the resource on which the flow log was created.
|
private java.lang.String |
trafficType
The type of traffic captured for the flow log.
|
Constructor and Description |
---|
FlowLog() |
Modifier and Type | Method and Description |
---|---|
FlowLog |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreationTime()
The date and time the flow log was created.
|
java.lang.String |
getDeliverLogsErrorMessage()
Information about the error that occurred.
|
java.lang.String |
getDeliverLogsPermissionArn()
The ARN of the IAM role that posts logs to CloudWatch Logs.
|
java.lang.String |
getDeliverLogsStatus()
The status of the logs delivery (
SUCCESS |
FAILED ). |
java.lang.String |
getFlowLogId()
The flow log ID.
|
java.lang.String |
getFlowLogStatus()
The status of the flow log (
ACTIVE ). |
java.lang.String |
getLogGroupName()
The name of the flow log group.
|
java.lang.String |
getResourceId()
The ID of the resource on which the flow log was created.
|
java.lang.String |
getTrafficType()
The type of traffic captured for the flow log.
|
int |
hashCode() |
void |
setCreationTime(java.util.Date creationTime)
The date and time the flow log was created.
|
void |
setDeliverLogsErrorMessage(java.lang.String deliverLogsErrorMessage)
Information about the error that occurred.
|
void |
setDeliverLogsPermissionArn(java.lang.String deliverLogsPermissionArn)
The ARN of the IAM role that posts logs to CloudWatch Logs.
|
void |
setDeliverLogsStatus(java.lang.String deliverLogsStatus)
The status of the logs delivery (
SUCCESS |
FAILED ). |
void |
setFlowLogId(java.lang.String flowLogId)
The flow log ID.
|
void |
setFlowLogStatus(java.lang.String flowLogStatus)
The status of the flow log (
ACTIVE ). |
void |
setLogGroupName(java.lang.String logGroupName)
The name of the flow log group.
|
void |
setResourceId(java.lang.String resourceId)
The ID of the resource on which the flow log was created.
|
void |
setTrafficType(java.lang.String trafficType)
The type of traffic captured for the flow log.
|
void |
setTrafficType(TrafficType trafficType)
The type of traffic captured for the flow log.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
FlowLog |
withCreationTime(java.util.Date creationTime)
The date and time the flow log was created.
|
FlowLog |
withDeliverLogsErrorMessage(java.lang.String deliverLogsErrorMessage)
Information about the error that occurred.
|
FlowLog |
withDeliverLogsPermissionArn(java.lang.String deliverLogsPermissionArn)
The ARN of the IAM role that posts logs to CloudWatch Logs.
|
FlowLog |
withDeliverLogsStatus(java.lang.String deliverLogsStatus)
The status of the logs delivery (
SUCCESS |
FAILED ). |
FlowLog |
withFlowLogId(java.lang.String flowLogId)
The flow log ID.
|
FlowLog |
withFlowLogStatus(java.lang.String flowLogStatus)
The status of the flow log (
ACTIVE ). |
FlowLog |
withLogGroupName(java.lang.String logGroupName)
The name of the flow log group.
|
FlowLog |
withResourceId(java.lang.String resourceId)
The ID of the resource on which the flow log was created.
|
FlowLog |
withTrafficType(java.lang.String trafficType)
The type of traffic captured for the flow log.
|
FlowLog |
withTrafficType(TrafficType trafficType)
The type of traffic captured for the flow log.
|
private java.util.Date creationTime
The date and time the flow log was created.
private java.lang.String flowLogId
The flow log ID.
private java.lang.String flowLogStatus
The status of the flow log (ACTIVE
).
private java.lang.String resourceId
The ID of the resource on which the flow log was created.
private java.lang.String trafficType
The type of traffic captured for the flow log.
private java.lang.String logGroupName
The name of the flow log group.
private java.lang.String deliverLogsStatus
The status of the logs delivery (SUCCESS
|
FAILED
).
private java.lang.String deliverLogsErrorMessage
Information about the error that occurred. Rate limited
indicates that CloudWatch logs throttling has been applied for one or
more network interfaces, or that you've reached the limit on the number
of CloudWatch Logs log groups that you can create.
Access error
indicates that the IAM role associated with the
flow log does not have sufficient permissions to publish to CloudWatch
Logs. Unknown error
indicates an internal error.
private java.lang.String deliverLogsPermissionArn
The ARN of the IAM role that posts logs to CloudWatch Logs.
public void setCreationTime(java.util.Date creationTime)
The date and time the flow log was created.
creationTime
- The date and time the flow log was created.public java.util.Date getCreationTime()
The date and time the flow log was created.
public FlowLog withCreationTime(java.util.Date creationTime)
The date and time the flow log was created.
creationTime
- The date and time the flow log was created.public void setFlowLogId(java.lang.String flowLogId)
The flow log ID.
flowLogId
- The flow log ID.public java.lang.String getFlowLogId()
The flow log ID.
public FlowLog withFlowLogId(java.lang.String flowLogId)
The flow log ID.
flowLogId
- The flow log ID.public void setFlowLogStatus(java.lang.String flowLogStatus)
The status of the flow log (ACTIVE
).
flowLogStatus
- The status of the flow log (ACTIVE
).public java.lang.String getFlowLogStatus()
The status of the flow log (ACTIVE
).
ACTIVE
).public FlowLog withFlowLogStatus(java.lang.String flowLogStatus)
The status of the flow log (ACTIVE
).
flowLogStatus
- The status of the flow log (ACTIVE
).public void setResourceId(java.lang.String resourceId)
The ID of the resource on which the flow log was created.
resourceId
- The ID of the resource on which the flow log was created.public java.lang.String getResourceId()
The ID of the resource on which the flow log was created.
public FlowLog withResourceId(java.lang.String resourceId)
The ID of the resource on which the flow log was created.
resourceId
- The ID of the resource on which the flow log was created.public void setTrafficType(java.lang.String trafficType)
The type of traffic captured for the flow log.
trafficType
- The type of traffic captured for the flow log.TrafficType
public java.lang.String getTrafficType()
The type of traffic captured for the flow log.
TrafficType
public FlowLog withTrafficType(java.lang.String trafficType)
The type of traffic captured for the flow log.
trafficType
- The type of traffic captured for the flow log.TrafficType
public void setTrafficType(TrafficType trafficType)
The type of traffic captured for the flow log.
trafficType
- The type of traffic captured for the flow log.TrafficType
public FlowLog withTrafficType(TrafficType trafficType)
The type of traffic captured for the flow log.
trafficType
- The type of traffic captured for the flow log.TrafficType
public void setLogGroupName(java.lang.String logGroupName)
The name of the flow log group.
logGroupName
- The name of the flow log group.public java.lang.String getLogGroupName()
The name of the flow log group.
public FlowLog withLogGroupName(java.lang.String logGroupName)
The name of the flow log group.
logGroupName
- The name of the flow log group.public void setDeliverLogsStatus(java.lang.String deliverLogsStatus)
The status of the logs delivery (SUCCESS
|
FAILED
).
deliverLogsStatus
- The status of the logs delivery (SUCCESS
|
FAILED
).public java.lang.String getDeliverLogsStatus()
The status of the logs delivery (SUCCESS
|
FAILED
).
SUCCESS
|
FAILED
).public FlowLog withDeliverLogsStatus(java.lang.String deliverLogsStatus)
The status of the logs delivery (SUCCESS
|
FAILED
).
deliverLogsStatus
- The status of the logs delivery (SUCCESS
|
FAILED
).public void setDeliverLogsErrorMessage(java.lang.String deliverLogsErrorMessage)
Information about the error that occurred. Rate limited
indicates that CloudWatch logs throttling has been applied for one or
more network interfaces, or that you've reached the limit on the number
of CloudWatch Logs log groups that you can create.
Access error
indicates that the IAM role associated with the
flow log does not have sufficient permissions to publish to CloudWatch
Logs. Unknown error
indicates an internal error.
deliverLogsErrorMessage
- Information about the error that occurred.
Rate limited
indicates that CloudWatch logs
throttling has been applied for one or more network interfaces, or
that you've reached the limit on the number of CloudWatch Logs log
groups that you can create. Access error
indicates
that the IAM role associated with the flow log does not have
sufficient permissions to publish to CloudWatch Logs.
Unknown error
indicates an internal error.public java.lang.String getDeliverLogsErrorMessage()
Information about the error that occurred. Rate limited
indicates that CloudWatch logs throttling has been applied for one or
more network interfaces, or that you've reached the limit on the number
of CloudWatch Logs log groups that you can create.
Access error
indicates that the IAM role associated with the
flow log does not have sufficient permissions to publish to CloudWatch
Logs. Unknown error
indicates an internal error.
Rate limited
indicates that CloudWatch logs
throttling has been applied for one or more network interfaces,
or that you've reached the limit on the number of CloudWatch Logs
log groups that you can create. Access error
indicates that the IAM role associated with the flow log does not
have sufficient permissions to publish to CloudWatch Logs.
Unknown error
indicates an internal error.public FlowLog withDeliverLogsErrorMessage(java.lang.String deliverLogsErrorMessage)
Information about the error that occurred. Rate limited
indicates that CloudWatch logs throttling has been applied for one or
more network interfaces, or that you've reached the limit on the number
of CloudWatch Logs log groups that you can create.
Access error
indicates that the IAM role associated with the
flow log does not have sufficient permissions to publish to CloudWatch
Logs. Unknown error
indicates an internal error.
deliverLogsErrorMessage
- Information about the error that occurred.
Rate limited
indicates that CloudWatch logs
throttling has been applied for one or more network interfaces, or
that you've reached the limit on the number of CloudWatch Logs log
groups that you can create. Access error
indicates
that the IAM role associated with the flow log does not have
sufficient permissions to publish to CloudWatch Logs.
Unknown error
indicates an internal error.public void setDeliverLogsPermissionArn(java.lang.String deliverLogsPermissionArn)
The ARN of the IAM role that posts logs to CloudWatch Logs.
deliverLogsPermissionArn
- The ARN of the IAM role that posts logs to CloudWatch Logs.public java.lang.String getDeliverLogsPermissionArn()
The ARN of the IAM role that posts logs to CloudWatch Logs.
public FlowLog withDeliverLogsPermissionArn(java.lang.String deliverLogsPermissionArn)
The ARN of the IAM role that posts logs to CloudWatch Logs.
deliverLogsPermissionArn
- The ARN of the IAM role that posts logs to CloudWatch Logs.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public FlowLog clone()
clone
in class java.lang.Object