Interface ModifyNetworkingFlexCostAllocationPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ModifyNetworkingFlexCostAllocationPolicyRequest.Builder,,ModifyNetworkingFlexCostAllocationPolicyRequest> Ec2Request.Builder,SdkBuilder<ModifyNetworkingFlexCostAllocationPolicyRequest.Builder,,ModifyNetworkingFlexCostAllocationPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ModifyNetworkingFlexCostAllocationPolicyRequest
-
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.fcaPolicyId(String fcaPolicyId) The ID of the flex cost allocation policy to modify.instanceFcaPolicyDocument(Consumer<InstanceFlexCostAllocationPolicyDocument.Builder> instanceFcaPolicyDocument) The updated policy document that defines cost allocation for EC2 instances.instanceFcaPolicyDocument(InstanceFlexCostAllocationPolicyDocument instanceFcaPolicyDocument) The updated policy document that defines cost allocation for EC2 instances.natFcaPolicyDocument(Consumer<NatFlexCostAllocationPolicyDocument.Builder> natFcaPolicyDocument) The updated policy document that defines cost allocation for NAT gateways.natFcaPolicyDocument(NatFlexCostAllocationPolicyDocument natFcaPolicyDocument) The updated policy document that defines cost allocation for NAT gateways.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 updated policy document that defines cost allocation for Amazon VPC peering connections.pcxFcaPolicyDocument(PcxFlexCostAllocationPolicyDocument pcxFcaPolicyDocument) The updated policy document that defines cost allocation for Amazon VPC peering connections.showBackEnabled(Boolean showBackEnabled) Specifies whether showback reporting is enabled for 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
-
fcaPolicyId
The ID of the flex cost allocation policy to modify. This parameter is required.
- Parameters:
fcaPolicyId- The ID of the flex cost allocation policy to modify. This parameter is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natFcaPolicyDocument
ModifyNetworkingFlexCostAllocationPolicyRequest.Builder natFcaPolicyDocument(NatFlexCostAllocationPolicyDocument natFcaPolicyDocument) The updated policy document that defines cost allocation for NAT gateways.
- Parameters:
natFcaPolicyDocument- The updated policy document that defines cost allocation for NAT gateways.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natFcaPolicyDocument
default ModifyNetworkingFlexCostAllocationPolicyRequest.Builder natFcaPolicyDocument(Consumer<NatFlexCostAllocationPolicyDocument.Builder> natFcaPolicyDocument) The updated policy document that defines cost allocation for NAT gateways.
This is a convenience method that creates an instance of theNatFlexCostAllocationPolicyDocument.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
ModifyNetworkingFlexCostAllocationPolicyRequest.Builder instanceFcaPolicyDocument(InstanceFlexCostAllocationPolicyDocument instanceFcaPolicyDocument) The updated policy document that defines cost allocation for EC2 instances.
- Parameters:
instanceFcaPolicyDocument- The updated policy document that defines cost allocation for EC2 instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceFcaPolicyDocument
default ModifyNetworkingFlexCostAllocationPolicyRequest.Builder instanceFcaPolicyDocument(Consumer<InstanceFlexCostAllocationPolicyDocument.Builder> instanceFcaPolicyDocument) The updated policy document that defines cost allocation for EC2 instances.
This is a convenience method that creates an instance of theInstanceFlexCostAllocationPolicyDocument.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
ModifyNetworkingFlexCostAllocationPolicyRequest.Builder pcxFcaPolicyDocument(PcxFlexCostAllocationPolicyDocument pcxFcaPolicyDocument) The updated policy document that defines cost allocation for Amazon VPC peering connections.
- Parameters:
pcxFcaPolicyDocument- The updated policy document that defines cost allocation for Amazon VPC peering connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pcxFcaPolicyDocument
default ModifyNetworkingFlexCostAllocationPolicyRequest.Builder pcxFcaPolicyDocument(Consumer<PcxFlexCostAllocationPolicyDocument.Builder> pcxFcaPolicyDocument) The updated policy document that defines cost allocation for Amazon VPC peering connections.
This is a convenience method that creates an instance of thePcxFlexCostAllocationPolicyDocument.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. If you omit this parameter, the current setting is unchanged.
- Parameters:
showBackEnabled- Specifies whether showback reporting is enabled for the policy. If you omit this parameter, the current setting is unchanged.- 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.
-
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
ModifyNetworkingFlexCostAllocationPolicyRequest.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
ModifyNetworkingFlexCostAllocationPolicyRequest.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.
-