@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFlowLogsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateFlowLogsRequest>
Contains the parameters for CreateFlowLogs.
NOOP
Constructor and Description |
---|
CreateFlowLogsRequest() |
Modifier and Type | Method and Description |
---|---|
CreateFlowLogsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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(String trafficType)
The type of traffic to log.
|
void |
setTrafficType(TrafficType 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(Collection<String> resourceIds)
One or more subnet, network interface, or VPC IDs.
|
CreateFlowLogsRequest |
withResourceIds(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(String trafficType)
The type of traffic to log.
|
CreateFlowLogsRequest |
withTrafficType(TrafficType trafficType)
The type of traffic to log.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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.
clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more
information, see How to Ensure
Idempotency.public String getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
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.
clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more
information, see How to Ensure
Idempotency.public void setDeliverLogsPermissionArn(String deliverLogsPermissionArn)
The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.
deliverLogsPermissionArn
- The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.public String getDeliverLogsPermissionArn()
The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.
public CreateFlowLogsRequest withDeliverLogsPermissionArn(String deliverLogsPermissionArn)
The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.
deliverLogsPermissionArn
- The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.public void setLogGroupName(String logGroupName)
The name of the CloudWatch log group.
logGroupName
- The name of the CloudWatch log group.public String getLogGroupName()
The name of the CloudWatch log group.
public CreateFlowLogsRequest withLogGroupName(String logGroupName)
The name of the CloudWatch log group.
logGroupName
- The name of the CloudWatch log group.public List<String> getResourceIds()
One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
Constraints: Maximum of 1000 resources
public void setResourceIds(Collection<String> resourceIds)
One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
resourceIds
- One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
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.
resourceIds
- One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
public CreateFlowLogsRequest withResourceIds(Collection<String> resourceIds)
One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
resourceIds
- One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
public void setResourceType(String resourceType)
The type of resource on which to create the flow log.
resourceType
- The type of resource on which to create the flow log.FlowLogsResourceType
public String getResourceType()
The type of resource on which to create the flow log.
FlowLogsResourceType
public CreateFlowLogsRequest withResourceType(String resourceType)
The type of resource on which to create the flow log.
resourceType
- The type of resource on which to create the flow log.FlowLogsResourceType
public void setResourceType(FlowLogsResourceType resourceType)
The type of resource on which to create the flow log.
resourceType
- The type of resource on which to create the flow log.FlowLogsResourceType
public CreateFlowLogsRequest withResourceType(FlowLogsResourceType resourceType)
The type of resource on which to create the flow log.
resourceType
- The type of resource on which to create the flow log.FlowLogsResourceType
public void setTrafficType(String trafficType)
The type of traffic to log.
trafficType
- The type of traffic to log.TrafficType
public String getTrafficType()
The type of traffic to log.
TrafficType
public CreateFlowLogsRequest withTrafficType(String trafficType)
The type of traffic to log.
trafficType
- The type of traffic to log.TrafficType
public void setTrafficType(TrafficType trafficType)
The type of traffic to log.
trafficType
- The type of traffic to log.TrafficType
public CreateFlowLogsRequest withTrafficType(TrafficType trafficType)
The type of traffic to log.
trafficType
- The type of traffic to log.TrafficType
public Request<CreateFlowLogsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateFlowLogsRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateFlowLogsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.