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 CreateFlowLogsRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.String
getDeliverLogsPermissionArn()
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.String
getLogGroupName()
The name of the CloudWatch log group.List<String>
getResourceIds()
One or more subnet, network interface, or VPC IDs.String
getResourceType()
The type of resource on which to create the flow log.String
getTrafficType()
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateFlowLogsRequest
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.CreateFlowLogsRequest
withDeliverLogsPermissionArn(String deliverLogsPermissionArn)
The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.CreateFlowLogsRequest
withLogGroupName(String logGroupName)
The name of the CloudWatch log group.CreateFlowLogsRequest
withResourceIds(String... resourceIds)
One or more subnet, network interface, or VPC IDs.CreateFlowLogsRequest
withResourceIds(Collection<String> resourceIds)
One or more subnet, network interface, or VPC IDs.CreateFlowLogsRequest
withResourceType(FlowLogsResourceType resourceType)
The type of resource on which to create the flow log.CreateFlowLogsRequest
withResourceType(String resourceType)
The type of resource on which to create the flow log.CreateFlowLogsRequest
withTrafficType(TrafficType trafficType)
The type of traffic to log.CreateFlowLogsRequest
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
-
-
-
-
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:
getDryRunRequest
in interfaceDryRunSupportedRequest<CreateFlowLogsRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
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 classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-