public class CreateFlowLogsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CreateFlowLogsRequest>
Contains the parameters for CreateFlowLogs.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
clientToken
Unique, case-sensitive identifier you provide to ensure the idempotency
of the request.
|
private java.lang.String |
deliverLogsPermissionArn
The ARN for the IAM role that's used to post flow logs to a CloudWatch
Logs log group.
|
private java.lang.String |
logGroupName
The name of the CloudWatch log group.
|
private SdkInternalList<java.lang.String> |
resourceIds
One or more subnet, network interface, or VPC IDs.
|
private java.lang.String |
resourceType
The type of resource on which to create the flow log.
|
private java.lang.String |
trafficType
The type of traffic to log.
|
NOOP
Constructor and Description |
---|
CreateFlowLogsRequest() |
Modifier and Type | Method and Description |
---|---|
CreateFlowLogsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency
of the request.
|
java.lang.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.
|
java.lang.String |
getLogGroupName()
The name of the CloudWatch log group.
|
java.util.List<java.lang.String> |
getResourceIds()
One or more subnet, network interface, or VPC IDs.
|
java.lang.String |
getResourceType()
The type of resource on which to create the flow log.
|
java.lang.String |
getTrafficType()
The type of traffic to log.
|
int |
hashCode() |
void |
setClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency
of the request.
|
void |
setDeliverLogsPermissionArn(java.lang.String deliverLogsPermissionArn)
The ARN for the IAM role that's used to post flow logs to a CloudWatch
Logs log group.
|
void |
setLogGroupName(java.lang.String logGroupName)
The name of the CloudWatch log group.
|
void |
setResourceIds(java.util.Collection<java.lang.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(java.lang.String resourceType)
The type of resource on which to create the flow log.
|
void |
setTrafficType(java.lang.String trafficType)
The type of traffic to log.
|
void |
setTrafficType(TrafficType trafficType)
The type of traffic to log.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateFlowLogsRequest |
withClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency
of the request.
|
CreateFlowLogsRequest |
withDeliverLogsPermissionArn(java.lang.String deliverLogsPermissionArn)
The ARN for the IAM role that's used to post flow logs to a CloudWatch
Logs log group.
|
CreateFlowLogsRequest |
withLogGroupName(java.lang.String logGroupName)
The name of the CloudWatch log group.
|
CreateFlowLogsRequest |
withResourceIds(java.util.Collection<java.lang.String> resourceIds)
One or more subnet, network interface, or VPC IDs.
|
CreateFlowLogsRequest |
withResourceIds(java.lang.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(java.lang.String resourceType)
The type of resource on which to create the flow log.
|
CreateFlowLogsRequest |
withTrafficType(java.lang.String trafficType)
The type of traffic to log.
|
CreateFlowLogsRequest |
withTrafficType(TrafficType trafficType)
The type of traffic to log.
|
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
private SdkInternalList<java.lang.String> resourceIds
One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
private java.lang.String resourceType
The type of resource on which to create the flow log.
private java.lang.String trafficType
The type of traffic to log.
private java.lang.String logGroupName
The name of the CloudWatch log group.
private java.lang.String deliverLogsPermissionArn
The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.
private java.lang.String clientToken
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
public java.util.List<java.lang.String> getResourceIds()
One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
Constraints: Maximum of 1000 resources
public void setResourceIds(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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(java.lang.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 java.lang.String getResourceType()
The type of resource on which to create the flow log.
FlowLogsResourceType
public CreateFlowLogsRequest withResourceType(java.lang.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(java.lang.String trafficType)
The type of traffic to log.
trafficType
- The type of traffic to log.TrafficType
public java.lang.String getTrafficType()
The type of traffic to log.
TrafficType
public CreateFlowLogsRequest withTrafficType(java.lang.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 void setLogGroupName(java.lang.String logGroupName)
The name of the CloudWatch log group.
logGroupName
- The name of the CloudWatch log group.public java.lang.String getLogGroupName()
The name of the CloudWatch log group.
public CreateFlowLogsRequest withLogGroupName(java.lang.String logGroupName)
The name of the CloudWatch log group.
logGroupName
- The name of the CloudWatch log group.public void setDeliverLogsPermissionArn(java.lang.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 java.lang.String getDeliverLogsPermissionArn()
The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.
public CreateFlowLogsRequest withDeliverLogsPermissionArn(java.lang.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 setClientToken(java.lang.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 java.lang.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(java.lang.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 Request<CreateFlowLogsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateFlowLogsRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateFlowLogsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()