Class CreateFlowLogsRequest

    • Constructor Detail

      • CreateFlowLogsRequest

        public CreateFlowLogsRequest()
    • Method Detail

      • 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:
        FlowLogsResourceType
      • 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:
        FlowLogsResourceType
      • 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:
        FlowLogsResourceType
      • 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:
        FlowLogsResourceType
      • 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:
        FlowLogsResourceType
      • setTrafficType

        public void setTrafficType​(String trafficType)

        The type of traffic to log.

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

        public String getTrafficType()

        The type of traffic to log.

        Returns:
        The type of traffic to log.
        See Also:
        TrafficType
      • 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:
        TrafficType
      • setTrafficType

        public void setTrafficType​(TrafficType trafficType)

        The type of traffic to log.

        Parameters:
        trafficType - The type of traffic to log.
        See Also:
        TrafficType
      • 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:
        TrafficType
      • 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.
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object