@Generated(value="software.amazon.awssdk:codegen") public class CreateFlowLogsRequest extends EC2Request implements ToCopyableBuilder<CreateFlowLogsRequest.Builder,CreateFlowLogsRequest>
Contains the parameters for CreateFlowLogs.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateFlowLogsRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateFlowLogsRequest.Builder |
builder() |
String |
clientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
String |
deliverLogsPermissionArn()
The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
logGroupName()
The name of the CloudWatch log group.
|
List<String> |
resourceIds()
One or more subnet, network interface, or VPC IDs.
|
FlowLogsResourceType |
resourceType()
The type of resource on which to create the flow log.
|
String |
resourceTypeString()
The type of resource on which to create the flow log.
|
static Class<? extends CreateFlowLogsRequest.Builder> |
serializableBuilderClass() |
CreateFlowLogsRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
TrafficType |
trafficType()
The type of traffic to log.
|
String |
trafficTypeString()
The type of traffic to log.
|
requestOverrideConfig
copy
public String clientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
public String deliverLogsPermissionArn()
The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.
public String logGroupName()
The name of the CloudWatch log group.
public List<String> resourceIds()
One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
Constraints: Maximum of 1000 resources
public FlowLogsResourceType resourceType()
The type of resource on which to create the flow log.
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return FlowLogsResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from resourceTypeString()
.
FlowLogsResourceType
public String resourceTypeString()
The type of resource on which to create the flow log.
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return FlowLogsResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from resourceTypeString()
.
FlowLogsResourceType
public TrafficType trafficType()
The type of traffic to log.
If the service returns an enum value that is not available in the current SDK version, trafficType
will
return TrafficType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
trafficTypeString()
.
TrafficType
public String trafficTypeString()
The type of traffic to log.
If the service returns an enum value that is not available in the current SDK version, trafficType
will
return TrafficType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
trafficTypeString()
.
TrafficType
public CreateFlowLogsRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateFlowLogsRequest.Builder,CreateFlowLogsRequest>
toBuilder
in class EC2Request
public static CreateFlowLogsRequest.Builder builder()
public static Class<? extends CreateFlowLogsRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.