@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 |
getDeliverLogsErrorMessage()
Information about the error that occurred.
|
String |
getDeliverLogsPermissionArn()
The ARN of the IAM role that posts logs to CloudWatch Logs.
|
String |
getDeliverLogsStatus()
The status of the logs delivery (
SUCCESS | FAILED ). |
DestinationOptionsResponse |
getDestinationOptions()
The destination options.
|
String |
getFlowLogId()
The flow log ID.
|
String |
getFlowLogStatus()
The status of the flow log (
ACTIVE ). |
String |
getLogDestination()
The destination to which the flow log data is published.
|
String |
getLogDestinationType()
The type of destination to which the flow log data is published.
|
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 on which the flow log was created.
|
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 |
setDeliverLogsErrorMessage(String deliverLogsErrorMessage)
Information about the error that occurred.
|
void |
setDeliverLogsPermissionArn(String deliverLogsPermissionArn)
The ARN of the IAM role that posts 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 flow log ID.
|
void |
setFlowLogStatus(String flowLogStatus)
The status of the flow log (
ACTIVE ). |
void |
setLogDestination(String logDestination)
The destination to which the flow log data is published.
|
void |
setLogDestinationType(LogDestinationType logDestinationType)
The type of destination to which the flow log data is published.
|
void |
setLogDestinationType(String logDestinationType)
The type of destination to which the flow log data is published.
|
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 on which the flow log was created.
|
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 |
withDeliverLogsErrorMessage(String deliverLogsErrorMessage)
Information about the error that occurred.
|
FlowLog |
withDeliverLogsPermissionArn(String deliverLogsPermissionArn)
The ARN of the IAM role that posts 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 flow log ID.
|
FlowLog |
withFlowLogStatus(String flowLogStatus)
The status of the flow log (
ACTIVE ). |
FlowLog |
withLogDestination(String logDestination)
The destination to which the flow log data is published.
|
FlowLog |
withLogDestinationType(LogDestinationType logDestinationType)
The type of destination to which the flow log data is published.
|
FlowLog |
withLogDestinationType(String logDestinationType)
The type of destination to which the flow log data is published.
|
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 on which the flow log was created.
|
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 that posts logs to CloudWatch Logs.
deliverLogsPermissionArn
- The ARN of the IAM role that posts logs to CloudWatch Logs.public String getDeliverLogsPermissionArn()
The ARN of the IAM role that posts logs to CloudWatch Logs.
public FlowLog withDeliverLogsPermissionArn(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 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 flow log ID.
flowLogId
- The flow log ID.public String getFlowLogId()
The flow log ID.
public FlowLog withFlowLogId(String flowLogId)
The flow log ID.
flowLogId
- The flow log ID.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 on which the flow log was created.
resourceId
- The ID of the resource on which the flow log was created.public String getResourceId()
The ID of the resource on which the flow log was created.
public FlowLog withResourceId(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(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 to which the flow log data is published. Flow log data can be published to CloudWatch Logs or Amazon S3.
logDestinationType
- The type of destination to which the flow log data is published. Flow log data can be published to
CloudWatch Logs or Amazon S3.LogDestinationType
public String getLogDestinationType()
The type of destination to which the flow log data is published. Flow log data can be published to CloudWatch Logs or Amazon S3.
LogDestinationType
public FlowLog withLogDestinationType(String logDestinationType)
The type of destination to which the flow log data is published. Flow log data can be published to CloudWatch Logs or Amazon S3.
logDestinationType
- The type of destination to which the flow log data is published. Flow log data can be published to
CloudWatch Logs or Amazon S3.LogDestinationType
public void setLogDestinationType(LogDestinationType logDestinationType)
The type of destination to which the flow log data is published. Flow log data can be published to CloudWatch Logs or Amazon S3.
logDestinationType
- The type of destination to which the flow log data is published. Flow log data can be published to
CloudWatch Logs or Amazon S3.LogDestinationType
public FlowLog withLogDestinationType(LogDestinationType logDestinationType)
The type of destination to which the flow log data is published. Flow log data can be published to CloudWatch Logs or Amazon S3.
logDestinationType
- The type of destination to which the flow log data is published. Flow log data can be published to
CloudWatch Logs or Amazon S3.LogDestinationType
public void setLogDestination(String logDestination)
The destination to which the flow log data is published. Flow log data can be published to an CloudWatch Logs log group or an Amazon S3 bucket. If the flow log publishes to CloudWatch Logs, this element indicates the Amazon Resource Name (ARN) of the CloudWatch Logs log group to which the data is published. If the flow log publishes to Amazon S3, this element indicates the ARN of the Amazon S3 bucket to which the data is published.
logDestination
- The destination to which the flow log data is published. Flow log data can be published to an CloudWatch
Logs log group or an Amazon S3 bucket. If the flow log publishes to CloudWatch Logs, this element
indicates the Amazon Resource Name (ARN) of the CloudWatch Logs log group to which the data is published.
If the flow log publishes to Amazon S3, this element indicates the ARN of the Amazon S3 bucket to which
the data is published.public String getLogDestination()
The destination to which the flow log data is published. Flow log data can be published to an CloudWatch Logs log group or an Amazon S3 bucket. If the flow log publishes to CloudWatch Logs, this element indicates the Amazon Resource Name (ARN) of the CloudWatch Logs log group to which the data is published. If the flow log publishes to Amazon S3, this element indicates the ARN of the Amazon S3 bucket to which the data is published.
public FlowLog withLogDestination(String logDestination)
The destination to which the flow log data is published. Flow log data can be published to an CloudWatch Logs log group or an Amazon S3 bucket. If the flow log publishes to CloudWatch Logs, this element indicates the Amazon Resource Name (ARN) of the CloudWatch Logs log group to which the data is published. If the flow log publishes to Amazon S3, this element indicates the ARN of the Amazon S3 bucket to which the data is published.
logDestination
- The destination to which the flow log data is published. Flow log data can be published to an CloudWatch
Logs log group or an Amazon S3 bucket. If the flow log publishes to CloudWatch Logs, this element
indicates the Amazon Resource Name (ARN) of the CloudWatch Logs log group to which the data is published.
If the flow log publishes to Amazon S3, this element indicates the ARN of the Amazon S3 bucket to which
the data is published.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()