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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateFlowLogsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateFlowLogsRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetClientToken()Unique, case-sensitive identifier you provide to ensure the idempotency of the request.StringgetDeliverLogsPermissionArn()The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.Request<CreateFlowLogsRequest>getDryRunRequest()This method is intended for internal use only.StringgetLogGroupName()The name of the CloudWatch log group.List<String>getResourceIds()One or more subnet, network interface, or VPC IDs.StringgetResourceType()The type of resource on which to create the flow log.StringgetTrafficType()The type of traffic to log.inthashCode()voidsetClientToken(String clientToken)Unique, case-sensitive identifier you provide to ensure the idempotency of the request.voidsetDeliverLogsPermissionArn(String deliverLogsPermissionArn)The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.voidsetLogGroupName(String logGroupName)The name of the CloudWatch log group.voidsetResourceIds(Collection<String> resourceIds)One or more subnet, network interface, or VPC IDs.voidsetResourceType(FlowLogsResourceType resourceType)The type of resource on which to create the flow log.voidsetResourceType(String resourceType)The type of resource on which to create the flow log.voidsetTrafficType(TrafficType trafficType)The type of traffic to log.voidsetTrafficType(String trafficType)The type of traffic to log.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateFlowLogsRequestwithClientToken(String clientToken)Unique, case-sensitive identifier you provide to ensure the idempotency of the request.CreateFlowLogsRequestwithDeliverLogsPermissionArn(String deliverLogsPermissionArn)The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.CreateFlowLogsRequestwithLogGroupName(String logGroupName)The name of the CloudWatch log group.CreateFlowLogsRequestwithResourceIds(String... resourceIds)One or more subnet, network interface, or VPC IDs.CreateFlowLogsRequestwithResourceIds(Collection<String> resourceIds)One or more subnet, network interface, or VPC IDs.CreateFlowLogsRequestwithResourceType(FlowLogsResourceType resourceType)The type of resource on which to create the flow log.CreateFlowLogsRequestwithResourceType(String resourceType)The type of resource on which to create the flow log.CreateFlowLogsRequestwithTrafficType(TrafficType trafficType)The type of traffic to log.CreateFlowLogsRequestwithTrafficType(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
-
-
-
-
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)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
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.
-
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:
getDryRunRequestin interfaceDryRunSupportedRequest<CreateFlowLogsRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateFlowLogsRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-