Class FlowLog

java.lang.Object
com.amazonaws.services.ec2.model.FlowLog
All Implemented Interfaces:
Serializable, Cloneable

public class FlowLog extends Object implements Serializable, Cloneable

Describes a flow log.

See Also:
  • Constructor Details

    • FlowLog

      public FlowLog()
  • Method Details

    • setCreationTime

      public void setCreationTime(Date creationTime)

      The date and time the flow log was created.

      Parameters:
      creationTime - The date and time the flow log was created.
    • getCreationTime

      public Date getCreationTime()

      The date and time the flow log was created.

      Returns:
      The date and time the flow log was created.
    • withCreationTime

      public FlowLog withCreationTime(Date creationTime)

      The date and time the flow log was created.

      Parameters:
      creationTime - The date and time the flow log was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setFlowLogId

      public void setFlowLogId(String flowLogId)

      The flow log ID.

      Parameters:
      flowLogId - The flow log ID.
    • getFlowLogId

      public String getFlowLogId()

      The flow log ID.

      Returns:
      The flow log ID.
    • withFlowLogId

      public FlowLog withFlowLogId(String flowLogId)

      The flow log ID.

      Parameters:
      flowLogId - The flow log ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setFlowLogStatus

      public void setFlowLogStatus(String flowLogStatus)

      The status of the flow log (ACTIVE).

      Parameters:
      flowLogStatus - The status of the flow log (ACTIVE).
    • getFlowLogStatus

      public String getFlowLogStatus()

      The status of the flow log (ACTIVE).

      Returns:
      The status of the flow log (ACTIVE).
    • withFlowLogStatus

      public FlowLog withFlowLogStatus(String flowLogStatus)

      The status of the flow log (ACTIVE).

      Parameters:
      flowLogStatus - The status of the flow log (ACTIVE).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setResourceId

      public void setResourceId(String resourceId)

      The ID of the resource on which the flow log was created.

      Parameters:
      resourceId - The ID of the resource on which the flow log was created.
    • getResourceId

      public String getResourceId()

      The ID of the resource on which the flow log was created.

      Returns:
      The ID of the resource on which the flow log was created.
    • withResourceId

      public FlowLog withResourceId(String resourceId)

      The ID of the resource on which the flow log was created.

      Parameters:
      resourceId - The ID of the resource on which the flow log was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTrafficType

      public void setTrafficType(String trafficType)

      The type of traffic captured for the flow log.

      Parameters:
      trafficType - The type of traffic captured for the flow log.
      See Also:
    • getTrafficType

      public String getTrafficType()

      The type of traffic captured for the flow log.

      Returns:
      The type of traffic captured for the flow log.
      See Also:
    • withTrafficType

      public FlowLog withTrafficType(String trafficType)

      The type of traffic captured for the flow log.

      Parameters:
      trafficType - The type of traffic captured for the flow log.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setTrafficType

      public void setTrafficType(TrafficType trafficType)

      The type of traffic captured for the flow log.

      Parameters:
      trafficType - The type of traffic captured for the flow log.
      See Also:
    • withTrafficType

      public FlowLog withTrafficType(TrafficType trafficType)

      The type of traffic captured for the flow log.

      Parameters:
      trafficType - The type of traffic captured for the flow log.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setLogGroupName

      public void setLogGroupName(String logGroupName)

      The name of the flow log group.

      Parameters:
      logGroupName - The name of the flow log group.
    • getLogGroupName

      public String getLogGroupName()

      The name of the flow log group.

      Returns:
      The name of the flow log group.
    • withLogGroupName

      public FlowLog withLogGroupName(String logGroupName)

      The name of the flow log group.

      Parameters:
      logGroupName - The name of the flow log group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDeliverLogsStatus

      public void setDeliverLogsStatus(String deliverLogsStatus)

      The status of the logs delivery (SUCCESS | FAILED).

      Parameters:
      deliverLogsStatus - The status of the logs delivery (SUCCESS | FAILED).
    • getDeliverLogsStatus

      public String getDeliverLogsStatus()

      The status of the logs delivery (SUCCESS | FAILED).

      Returns:
      The status of the logs delivery (SUCCESS | FAILED).
    • withDeliverLogsStatus

      public FlowLog withDeliverLogsStatus(String deliverLogsStatus)

      The status of the logs delivery (SUCCESS | FAILED).

      Parameters:
      deliverLogsStatus - The status of the logs delivery (SUCCESS | FAILED).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDeliverLogsErrorMessage

      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 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.

      Parameters:
      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.
    • getDeliverLogsErrorMessage

      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 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.

      Returns:
      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.
    • withDeliverLogsErrorMessage

      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 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDeliverLogsPermissionArn

      public void setDeliverLogsPermissionArn(String deliverLogsPermissionArn)

      The ARN of the IAM role that posts logs to CloudWatch Logs.

      Parameters:
      deliverLogsPermissionArn - The ARN of the IAM role that posts logs to CloudWatch Logs.
    • getDeliverLogsPermissionArn

      public String getDeliverLogsPermissionArn()

      The ARN of the IAM role that posts logs to CloudWatch Logs.

      Returns:
      The ARN of the IAM role that posts logs to CloudWatch Logs.
    • withDeliverLogsPermissionArn

      public FlowLog withDeliverLogsPermissionArn(String deliverLogsPermissionArn)

      The ARN of the IAM role that posts logs to CloudWatch Logs.

      Parameters:
      deliverLogsPermissionArn - The ARN of the IAM role that posts logs to CloudWatch Logs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public FlowLog clone()
      Overrides:
      clone in class Object