@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FlowLog extends Object implements Serializable, Cloneable
Describes a flow log.
Constructor and Description |
---|
FlowLog() |
Modifier and Type | Method and Description |
---|---|
FlowLog |
clone() |
boolean |
equals(Object obj) |
Date |
getCreationTime()
The date and time the flow log was created.
|
String |
getDeliverCrossAccountRole()
The ARN of the IAM role that allows the service to publish flow logs across accounts.
|
String |
getDeliverLogsErrorMessage()
Information about the error that occurred.
|
String |
getDeliverLogsPermissionArn()
The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.
|
String |
getDeliverLogsStatus()
The status of the logs delivery (
SUCCESS | FAILED ). |
DestinationOptionsResponse |
getDestinationOptions()
The destination options.
|
String |
getFlowLogId()
The ID of the flow log.
|
String |
getFlowLogStatus()
The status of the flow log (
ACTIVE ). |
String |
getLogDestination()
The Amazon Resource Name (ARN) of the destination for the flow log data.
|
String |
getLogDestinationType()
The type of destination for the flow log data.
|
String |
getLogFormat()
The format of the flow log record.
|
String |
getLogGroupName()
The name of the flow log group.
|
Integer |
getMaxAggregationInterval()
The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow
log record.
|
String |
getResourceId()
The ID of the resource being monitored.
|
List<Tag> |
getTags()
The tags for the flow log.
|
String |
getTrafficType()
The type of traffic captured for the flow log.
|
int |
hashCode() |
void |
setCreationTime(Date creationTime)
The date and time the flow log was created.
|
void |
setDeliverCrossAccountRole(String deliverCrossAccountRole)
The ARN of the IAM role that allows the service to publish flow logs across accounts.
|
void |
setDeliverLogsErrorMessage(String deliverLogsErrorMessage)
Information about the error that occurred.
|
void |
setDeliverLogsPermissionArn(String deliverLogsPermissionArn)
The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.
|
void |
setDeliverLogsStatus(String deliverLogsStatus)
The status of the logs delivery (
SUCCESS | FAILED ). |
void |
setDestinationOptions(DestinationOptionsResponse destinationOptions)
The destination options.
|
void |
setFlowLogId(String flowLogId)
The ID of the flow log.
|
void |
setFlowLogStatus(String flowLogStatus)
The status of the flow log (
ACTIVE ). |
void |
setLogDestination(String logDestination)
The Amazon Resource Name (ARN) of the destination for the flow log data.
|
void |
setLogDestinationType(LogDestinationType logDestinationType)
The type of destination for the flow log data.
|
void |
setLogDestinationType(String logDestinationType)
The type of destination for the flow log data.
|
void |
setLogFormat(String logFormat)
The format of the flow log record.
|
void |
setLogGroupName(String logGroupName)
The name of the flow log group.
|
void |
setMaxAggregationInterval(Integer maxAggregationInterval)
The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow
log record.
|
void |
setResourceId(String resourceId)
The ID of the resource being monitored.
|
void |
setTags(Collection<Tag> tags)
The tags for the flow log.
|
void |
setTrafficType(String trafficType)
The type of traffic captured for the flow log.
|
void |
setTrafficType(TrafficType trafficType)
The type of traffic captured for the flow log.
|
String |
toString()
Returns a string representation of this object.
|
FlowLog |
withCreationTime(Date creationTime)
The date and time the flow log was created.
|
FlowLog |
withDeliverCrossAccountRole(String deliverCrossAccountRole)
The ARN of the IAM role that allows the service to publish flow logs across accounts.
|
FlowLog |
withDeliverLogsErrorMessage(String deliverLogsErrorMessage)
Information about the error that occurred.
|
FlowLog |
withDeliverLogsPermissionArn(String deliverLogsPermissionArn)
The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.
|
FlowLog |
withDeliverLogsStatus(String deliverLogsStatus)
The status of the logs delivery (
SUCCESS | FAILED ). |
FlowLog |
withDestinationOptions(DestinationOptionsResponse destinationOptions)
The destination options.
|
FlowLog |
withFlowLogId(String flowLogId)
The ID of the flow log.
|
FlowLog |
withFlowLogStatus(String flowLogStatus)
The status of the flow log (
ACTIVE ). |
FlowLog |
withLogDestination(String logDestination)
The Amazon Resource Name (ARN) of the destination for the flow log data.
|
FlowLog |
withLogDestinationType(LogDestinationType logDestinationType)
The type of destination for the flow log data.
|
FlowLog |
withLogDestinationType(String logDestinationType)
The type of destination for the flow log data.
|
FlowLog |
withLogFormat(String logFormat)
The format of the flow log record.
|
FlowLog |
withLogGroupName(String logGroupName)
The name of the flow log group.
|
FlowLog |
withMaxAggregationInterval(Integer maxAggregationInterval)
The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow
log record.
|
FlowLog |
withResourceId(String resourceId)
The ID of the resource being monitored.
|
FlowLog |
withTags(Collection<Tag> tags)
The tags for the flow log.
|
FlowLog |
withTags(Tag... tags)
The tags for the flow log.
|
FlowLog |
withTrafficType(String trafficType)
The type of traffic captured for the flow log.
|
FlowLog |
withTrafficType(TrafficType trafficType)
The type of traffic captured for the flow log.
|
public void setCreationTime(Date creationTime)
The date and time the flow log was created.
creationTime
- The date and time the flow log was created.public Date getCreationTime()
The date and time the flow log was created.
public FlowLog withCreationTime(Date creationTime)
The date and time the flow log was created.
creationTime
- The date and time the flow log was created.public void setDeliverLogsErrorMessage(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 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 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 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 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 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(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 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 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(String deliverLogsPermissionArn)
The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.
deliverLogsPermissionArn
- The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.public String getDeliverLogsPermissionArn()
The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.
public FlowLog withDeliverLogsPermissionArn(String deliverLogsPermissionArn)
The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.
deliverLogsPermissionArn
- The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.public void setDeliverCrossAccountRole(String deliverCrossAccountRole)
The ARN of the IAM role that allows the service to publish flow logs across accounts.
deliverCrossAccountRole
- The ARN of the IAM role that allows the service to publish flow logs across accounts.public String getDeliverCrossAccountRole()
The ARN of the IAM role that allows the service to publish flow logs across accounts.
public FlowLog withDeliverCrossAccountRole(String deliverCrossAccountRole)
The ARN of the IAM role that allows the service to publish flow logs across accounts.
deliverCrossAccountRole
- The ARN of the IAM role that allows the service to publish flow logs across accounts.public void setDeliverLogsStatus(String deliverLogsStatus)
The status of the logs delivery (SUCCESS
| FAILED
).
deliverLogsStatus
- The status of the logs delivery (SUCCESS
| FAILED
).public String getDeliverLogsStatus()
The status of the logs delivery (SUCCESS
| FAILED
).
SUCCESS
| FAILED
).public FlowLog withDeliverLogsStatus(String deliverLogsStatus)
The status of the logs delivery (SUCCESS
| FAILED
).
deliverLogsStatus
- The status of the logs delivery (SUCCESS
| FAILED
).public void setFlowLogId(String flowLogId)
The ID of the flow log.
flowLogId
- The ID of the flow log.public String getFlowLogId()
The ID of the flow log.
public FlowLog withFlowLogId(String flowLogId)
The ID of the flow log.
flowLogId
- The ID of the flow log.public void setFlowLogStatus(String flowLogStatus)
The status of the flow log (ACTIVE
).
flowLogStatus
- The status of the flow log (ACTIVE
).public String getFlowLogStatus()
The status of the flow log (ACTIVE
).
ACTIVE
).public FlowLog withFlowLogStatus(String flowLogStatus)
The status of the flow log (ACTIVE
).
flowLogStatus
- The status of the flow log (ACTIVE
).public void setLogGroupName(String logGroupName)
The name of the flow log group.
logGroupName
- The name of the flow log group.public String getLogGroupName()
The name of the flow log group.
public FlowLog withLogGroupName(String logGroupName)
The name of the flow log group.
logGroupName
- The name of the flow log group.public void setResourceId(String resourceId)
The ID of the resource being monitored.
resourceId
- The ID of the resource being monitored.public String getResourceId()
The ID of the resource being monitored.
public FlowLog withResourceId(String resourceId)
The ID of the resource being monitored.
resourceId
- The ID of the resource being monitored.public void setTrafficType(String trafficType)
The type of traffic captured for the flow log.
trafficType
- The type of traffic captured for the flow log.TrafficType
public String getTrafficType()
The type of traffic captured for the flow log.
TrafficType
public FlowLog withTrafficType(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 setLogDestinationType(String logDestinationType)
The type of destination for the flow log data.
logDestinationType
- The type of destination for the flow log data.LogDestinationType
public String getLogDestinationType()
The type of destination for the flow log data.
LogDestinationType
public FlowLog withLogDestinationType(String logDestinationType)
The type of destination for the flow log data.
logDestinationType
- The type of destination for the flow log data.LogDestinationType
public void setLogDestinationType(LogDestinationType logDestinationType)
The type of destination for the flow log data.
logDestinationType
- The type of destination for the flow log data.LogDestinationType
public FlowLog withLogDestinationType(LogDestinationType logDestinationType)
The type of destination for the flow log data.
logDestinationType
- The type of destination for the flow log data.LogDestinationType
public void setLogDestination(String logDestination)
The Amazon Resource Name (ARN) of the destination for the flow log data.
logDestination
- The Amazon Resource Name (ARN) of the destination for the flow log data.public String getLogDestination()
The Amazon Resource Name (ARN) of the destination for the flow log data.
public FlowLog withLogDestination(String logDestination)
The Amazon Resource Name (ARN) of the destination for the flow log data.
logDestination
- The Amazon Resource Name (ARN) of the destination for the flow log data.public void setLogFormat(String logFormat)
The format of the flow log record.
logFormat
- The format of the flow log record.public String getLogFormat()
The format of the flow log record.
public FlowLog withLogFormat(String logFormat)
The format of the flow log record.
logFormat
- The format of the flow log record.public void setTags(Collection<Tag> tags)
The tags for the flow log.
tags
- The tags for the flow log.public FlowLog withTags(Tag... tags)
The tags for the flow log.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags for the flow log.public FlowLog withTags(Collection<Tag> tags)
The tags for the flow log.
tags
- The tags for the flow log.public void setMaxAggregationInterval(Integer maxAggregationInterval)
The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record.
When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.
Valid Values: 60
| 600
maxAggregationInterval
- The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a
flow log record.
When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.
Valid Values: 60
| 600
public Integer getMaxAggregationInterval()
The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record.
When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.
Valid Values: 60
| 600
When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.
Valid Values: 60
| 600
public FlowLog withMaxAggregationInterval(Integer maxAggregationInterval)
The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record.
When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.
Valid Values: 60
| 600
maxAggregationInterval
- The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a
flow log record.
When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.
Valid Values: 60
| 600
public void setDestinationOptions(DestinationOptionsResponse destinationOptions)
The destination options.
destinationOptions
- The destination options.public DestinationOptionsResponse getDestinationOptions()
The destination options.
public FlowLog withDestinationOptions(DestinationOptionsResponse destinationOptions)
The destination options.
destinationOptions
- The destination options.public String toString()
toString
in class Object
Object.toString()