Class CreateFlowLogsRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateFlowLogsRequest>
,Serializable
,Cloneable
Contains the parameters for CreateFlowLogs.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.This method is intended for internal use only.The name of the CloudWatch log group.One or more subnet, network interface, or VPC IDs.The type of resource on which to create the flow log.The type of traffic to log.int
hashCode()
void
setClientToken
(String clientToken) Unique, case-sensitive identifier you provide to ensure the idempotency of the request.void
setDeliverLogsPermissionArn
(String deliverLogsPermissionArn) The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.void
setLogGroupName
(String logGroupName) The name of the CloudWatch log group.void
setResourceIds
(Collection<String> resourceIds) One or more subnet, network interface, or VPC IDs.void
setResourceType
(FlowLogsResourceType resourceType) The type of resource on which to create the flow log.void
setResourceType
(String resourceType) The type of resource on which to create the flow log.void
setTrafficType
(TrafficType trafficType) The type of traffic to log.void
setTrafficType
(String trafficType) The type of traffic to log.toString()
Returns a string representation of this object; useful for testing and debugging.withClientToken
(String clientToken) Unique, case-sensitive identifier you provide to ensure the idempotency of the request.withDeliverLogsPermissionArn
(String deliverLogsPermissionArn) The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.withLogGroupName
(String logGroupName) The name of the CloudWatch log group.withResourceIds
(String... resourceIds) One or more subnet, network interface, or VPC IDs.withResourceIds
(Collection<String> resourceIds) One or more subnet, network interface, or VPC IDs.withResourceType
(FlowLogsResourceType resourceType) The type of resource on which to create the flow log.withResourceType
(String resourceType) The type of resource on which to create the flow log.withTrafficType
(TrafficType trafficType) The type of traffic to log.withTrafficType
(String trafficType) The type of traffic to log.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
CreateFlowLogsRequest
public CreateFlowLogsRequest()
-
-
Method Details
-
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
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
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)
orwithResourceIds(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
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
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
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
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
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
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
The type of traffic to log.
- Parameters:
trafficType
- The type of traffic to log.- See Also:
-
getTrafficType
The type of traffic to log.
- Returns:
- The type of traffic to log.
- See Also:
-
withTrafficType
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
The type of traffic to log.
- Parameters:
trafficType
- The type of traffic to log.- See Also:
-
withTrafficType
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
The name of the CloudWatch log group.
- Parameters:
logGroupName
- The name of the CloudWatch log group.
-
getLogGroupName
The name of the CloudWatch log group.
- Returns:
- The name of the CloudWatch log group.
-
withLogGroupName
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
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
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
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
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
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
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
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 interfaceDryRunSupportedRequest<CreateFlowLogsRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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 classAmazonWebServiceRequest
- See Also:
-