Class CreateFlowLogsRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateFlowLogsRequest
All Implemented Interfaces:
ReadLimitInfo, DryRunSupportedRequest<CreateFlowLogsRequest>, Serializable, Cloneable

public class CreateFlowLogsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateFlowLogsRequest>

Contains the parameters for CreateFlowLogs.

See Also:
  • Constructor Details

    • CreateFlowLogsRequest

      public CreateFlowLogsRequest()
  • Method Details

    • getResourceIds

      public List<String> getResourceIds()

      One or more subnet, network interface, or VPC IDs.

      Constraints: Maximum of 1000 resources

      Returns:
      One or more subnet, network interface, or VPC IDs.

      Constraints: Maximum of 1000 resources

    • setResourceIds

      public void setResourceIds(Collection<String> resourceIds)

      One or more subnet, network interface, or VPC IDs.

      Constraints: Maximum of 1000 resources

      Parameters:
      resourceIds - One or more subnet, network interface, or VPC IDs.

      Constraints: Maximum of 1000 resources

    • withResourceIds

      public CreateFlowLogsRequest withResourceIds(String... resourceIds)

      One or more subnet, network interface, or VPC IDs.

      Constraints: Maximum of 1000 resources

      NOTE: This method appends the values to the existing list (if any). Use setResourceIds(java.util.Collection) or withResourceIds(java.util.Collection) if you want to override the existing values.

      Parameters:
      resourceIds - One or more subnet, network interface, or VPC IDs.

      Constraints: Maximum of 1000 resources

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withResourceIds

      public CreateFlowLogsRequest withResourceIds(Collection<String> resourceIds)

      One or more subnet, network interface, or VPC IDs.

      Constraints: Maximum of 1000 resources

      Parameters:
      resourceIds - One or more subnet, network interface, or VPC IDs.

      Constraints: Maximum of 1000 resources

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setResourceType

      public void setResourceType(String resourceType)

      The type of resource on which to create the flow log.

      Parameters:
      resourceType - The type of resource on which to create the flow log.
      See Also:
    • getResourceType

      public String getResourceType()

      The type of resource on which to create the flow log.

      Returns:
      The type of resource on which to create the flow log.
      See Also:
    • withResourceType

      public CreateFlowLogsRequest withResourceType(String resourceType)

      The type of resource on which to create the flow log.

      Parameters:
      resourceType - The type of resource on which to create the flow log.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setResourceType

      public void setResourceType(FlowLogsResourceType resourceType)

      The type of resource on which to create the flow log.

      Parameters:
      resourceType - The type of resource on which to create the flow log.
      See Also:
    • withResourceType

      public CreateFlowLogsRequest withResourceType(FlowLogsResourceType resourceType)

      The type of resource on which to create the flow log.

      Parameters:
      resourceType - The type of resource on which to create the flow log.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setTrafficType

      public void setTrafficType(String trafficType)

      The type of traffic to log.

      Parameters:
      trafficType - The type of traffic to log.
      See Also:
    • getTrafficType

      public String getTrafficType()

      The type of traffic to log.

      Returns:
      The type of traffic to log.
      See Also:
    • withTrafficType

      public CreateFlowLogsRequest withTrafficType(String trafficType)

      The type of traffic to log.

      Parameters:
      trafficType - The type of traffic to 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 to log.

      Parameters:
      trafficType - The type of traffic to log.
      See Also:
    • withTrafficType

      public CreateFlowLogsRequest withTrafficType(TrafficType trafficType)

      The type of traffic to log.

      Parameters:
      trafficType - The type of traffic to 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 CloudWatch log group.

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

      public String getLogGroupName()

      The name of the CloudWatch log group.

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

      public CreateFlowLogsRequest withLogGroupName(String logGroupName)

      The name of the CloudWatch log group.

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

      public void setDeliverLogsPermissionArn(String deliverLogsPermissionArn)

      The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.

      Parameters:
      deliverLogsPermissionArn - The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.
    • getDeliverLogsPermissionArn

      public String getDeliverLogsPermissionArn()

      The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.

      Returns:
      The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.
    • withDeliverLogsPermissionArn

      public CreateFlowLogsRequest withDeliverLogsPermissionArn(String deliverLogsPermissionArn)

      The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.

      Parameters:
      deliverLogsPermissionArn - The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setClientToken

      public void setClientToken(String clientToken)

      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

      Parameters:
      clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
    • getClientToken

      public String getClientToken()

      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

      Returns:
      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
    • withClientToken

      public CreateFlowLogsRequest withClientToken(String clientToken)

      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

      Parameters:
      clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDryRunRequest

      public Request<CreateFlowLogsRequest> getDryRunRequest()
      This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.
      Specified by:
      getDryRunRequest in interface DryRunSupportedRequest<CreateFlowLogsRequest>
    • 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 CreateFlowLogsRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: