Interface CreateNetworkingFlexCostAllocationPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateNetworkingFlexCostAllocationPolicyRequest.Builder,,CreateNetworkingFlexCostAllocationPolicyRequest> Ec2Request.Builder,SdkBuilder<CreateNetworkingFlexCostAllocationPolicyRequest.Builder,,CreateNetworkingFlexCostAllocationPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateNetworkingFlexCostAllocationPolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.description(String description) A description for the policy.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.instanceFcaPolicyDocument(Consumer<InstanceFlexCostAllocationPolicyDocument.Builder> instanceFcaPolicyDocument) The policy document that defines cost allocation for EC2 instances.instanceFcaPolicyDocument(InstanceFlexCostAllocationPolicyDocument instanceFcaPolicyDocument) The policy document that defines cost allocation for EC2 instances.natFcaPolicyDocument(Consumer<NatFlexCostAllocationPolicyDocument.Builder> natFcaPolicyDocument) The policy document that defines cost allocation for NAT gateways.natFcaPolicyDocument(NatFlexCostAllocationPolicyDocument natFcaPolicyDocument) The policy document that defines cost allocation for NAT gateways.networkResourceType(String networkResourceType) The type of network resource that the policy applies to.networkResourceType(FlexCostAllocationNetworkResourceType networkResourceType) The type of network resource that the policy applies to.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.pcxFcaPolicyDocument(Consumer<PcxFlexCostAllocationPolicyDocument.Builder> pcxFcaPolicyDocument) The policy document that defines cost allocation for Amazon VPC peering connections.pcxFcaPolicyDocument(PcxFlexCostAllocationPolicyDocument pcxFcaPolicyDocument) The policy document that defines cost allocation for Amazon VPC peering connections.showBackEnabled(Boolean showBackEnabled) Specifies whether showback reporting is enabled for the policy.tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to assign to the policy.tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to assign to the policy.tagSpecifications(TagSpecification... tagSpecifications) The tags to assign to the policy.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
networkResourceType
CreateNetworkingFlexCostAllocationPolicyRequest.Builder networkResourceType(String networkResourceType) The type of network resource that the policy applies to. This parameter is required. Valid values are
natgw(NAT gateway),pcx(Amazon VPC peering connection), andec2(EC2 instance).Specify the policy document that matches the resource type:
NatFcaPolicyDocumentfornatgw,InstanceFcaPolicyDocumentforec2, orPcxFcaPolicyDocumentforpcx. Don't specify a policy document for a different resource type.- Parameters:
networkResourceType- The type of network resource that the policy applies to. This parameter is required. Valid values arenatgw(NAT gateway),pcx(Amazon VPC peering connection), andec2(EC2 instance).Specify the policy document that matches the resource type:
NatFcaPolicyDocumentfornatgw,InstanceFcaPolicyDocumentforec2, orPcxFcaPolicyDocumentforpcx. Don't specify a policy document for a different resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkResourceType
CreateNetworkingFlexCostAllocationPolicyRequest.Builder networkResourceType(FlexCostAllocationNetworkResourceType networkResourceType) The type of network resource that the policy applies to. This parameter is required. Valid values are
natgw(NAT gateway),pcx(Amazon VPC peering connection), andec2(EC2 instance).Specify the policy document that matches the resource type:
NatFcaPolicyDocumentfornatgw,InstanceFcaPolicyDocumentforec2, orPcxFcaPolicyDocumentforpcx. Don't specify a policy document for a different resource type.- Parameters:
networkResourceType- The type of network resource that the policy applies to. This parameter is required. Valid values arenatgw(NAT gateway),pcx(Amazon VPC peering connection), andec2(EC2 instance).Specify the policy document that matches the resource type:
NatFcaPolicyDocumentfornatgw,InstanceFcaPolicyDocumentforec2, orPcxFcaPolicyDocumentforpcx. Don't specify a policy document for a different resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
natFcaPolicyDocument
CreateNetworkingFlexCostAllocationPolicyRequest.Builder natFcaPolicyDocument(NatFlexCostAllocationPolicyDocument natFcaPolicyDocument) The policy document that defines cost allocation for NAT gateways. Provide this document when
NetworkResourceTypeisnatgw.- Parameters:
natFcaPolicyDocument- The policy document that defines cost allocation for NAT gateways. Provide this document whenNetworkResourceTypeisnatgw.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natFcaPolicyDocument
default CreateNetworkingFlexCostAllocationPolicyRequest.Builder natFcaPolicyDocument(Consumer<NatFlexCostAllocationPolicyDocument.Builder> natFcaPolicyDocument) The policy document that defines cost allocation for NAT gateways. Provide this document when
This is a convenience method that creates an instance of theNetworkResourceTypeisnatgw.NatFlexCostAllocationPolicyDocument.Builderavoiding the need to create one manually viaNatFlexCostAllocationPolicyDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonatFcaPolicyDocument(NatFlexCostAllocationPolicyDocument).- Parameters:
natFcaPolicyDocument- a consumer that will call methods onNatFlexCostAllocationPolicyDocument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceFcaPolicyDocument
CreateNetworkingFlexCostAllocationPolicyRequest.Builder instanceFcaPolicyDocument(InstanceFlexCostAllocationPolicyDocument instanceFcaPolicyDocument) The policy document that defines cost allocation for EC2 instances. Provide this document when
NetworkResourceTypeisec2.- Parameters:
instanceFcaPolicyDocument- The policy document that defines cost allocation for EC2 instances. Provide this document whenNetworkResourceTypeisec2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceFcaPolicyDocument
default CreateNetworkingFlexCostAllocationPolicyRequest.Builder instanceFcaPolicyDocument(Consumer<InstanceFlexCostAllocationPolicyDocument.Builder> instanceFcaPolicyDocument) The policy document that defines cost allocation for EC2 instances. Provide this document when
This is a convenience method that creates an instance of theNetworkResourceTypeisec2.InstanceFlexCostAllocationPolicyDocument.Builderavoiding the need to create one manually viaInstanceFlexCostAllocationPolicyDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceFcaPolicyDocument(InstanceFlexCostAllocationPolicyDocument).- Parameters:
instanceFcaPolicyDocument- a consumer that will call methods onInstanceFlexCostAllocationPolicyDocument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pcxFcaPolicyDocument
CreateNetworkingFlexCostAllocationPolicyRequest.Builder pcxFcaPolicyDocument(PcxFlexCostAllocationPolicyDocument pcxFcaPolicyDocument) The policy document that defines cost allocation for Amazon VPC peering connections. Provide this document when
NetworkResourceTypeispcx.- Parameters:
pcxFcaPolicyDocument- The policy document that defines cost allocation for Amazon VPC peering connections. Provide this document whenNetworkResourceTypeispcx.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pcxFcaPolicyDocument
default CreateNetworkingFlexCostAllocationPolicyRequest.Builder pcxFcaPolicyDocument(Consumer<PcxFlexCostAllocationPolicyDocument.Builder> pcxFcaPolicyDocument) The policy document that defines cost allocation for Amazon VPC peering connections. Provide this document when
This is a convenience method that creates an instance of theNetworkResourceTypeispcx.PcxFlexCostAllocationPolicyDocument.Builderavoiding the need to create one manually viaPcxFlexCostAllocationPolicyDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topcxFcaPolicyDocument(PcxFlexCostAllocationPolicyDocument).- Parameters:
pcxFcaPolicyDocument- a consumer that will call methods onPcxFlexCostAllocationPolicyDocument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
showBackEnabled
Specifies whether showback reporting is enabled for the policy.
Default:
true- Parameters:
showBackEnabled- Specifies whether showback reporting is enabled for the policy.Default:
true- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description for the policy. The description can be up to 1024 characters long.
- Parameters:
description- A description for the policy. The description can be up to 1024 characters long.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateNetworkingFlexCostAllocationPolicyRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to assign to the policy.
- Parameters:
tagSpecifications- The tags to assign to the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateNetworkingFlexCostAllocationPolicyRequest.Builder tagSpecifications(TagSpecification... tagSpecifications) The tags to assign to the policy.
- Parameters:
tagSpecifications- The tags to assign to the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateNetworkingFlexCostAllocationPolicyRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to assign to the policy.
This is a convenience method that creates an instance of theTagSpecification.Builderavoiding the need to create one manually viaTagSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totagSpecifications(List<TagSpecification>).- Parameters:
tagSpecifications- a consumer that will call methods onTagSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
- Parameters:
clientToken- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.- Parameters:
dryRun- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateNetworkingFlexCostAllocationPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateNetworkingFlexCostAllocationPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-