Interface AssociateNetworkingFlexCostAllocationPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AssociateNetworkingFlexCostAllocationPolicyRequest.Builder,,AssociateNetworkingFlexCostAllocationPolicyRequest> Ec2Request.Builder,SdkBuilder<AssociateNetworkingFlexCostAllocationPolicyRequest.Builder,,AssociateNetworkingFlexCostAllocationPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
AssociateNetworkingFlexCostAllocationPolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.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 associate.networkResourceIds(String... networkResourceIds) The IDs of the network resources to associate with the policy.networkResourceIds(Collection<String> networkResourceIds) The IDs of the network resources to associate with the policy.networkResourceScope(Consumer<FlexCostAllocationNetworkResourceScope.Builder> networkResourceScope) The scope of network resources to associate with the policy.networkResourceScope(FlexCostAllocationNetworkResourceScope networkResourceScope) The scope of network resources to associate with the policy.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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 associate. This parameter is required.
- Parameters:
fcaPolicyId- The ID of the flex cost allocation policy to associate. This parameter is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkResourceIds
AssociateNetworkingFlexCostAllocationPolicyRequest.Builder networkResourceIds(Collection<String> networkResourceIds) The IDs of the network resources to associate with the policy. You can specify from 1 to 20 resource IDs.
You must specify
NetworkResourceIds,NetworkResourceScope, or both. A request can include at most 20 distinct resources in total.- Parameters:
networkResourceIds- The IDs of the network resources to associate with the policy. You can specify from 1 to 20 resource IDs.You must specify
NetworkResourceIds,NetworkResourceScope, or both. A request can include at most 20 distinct resources in total.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkResourceIds
AssociateNetworkingFlexCostAllocationPolicyRequest.Builder networkResourceIds(String... networkResourceIds) The IDs of the network resources to associate with the policy. You can specify from 1 to 20 resource IDs.
You must specify
NetworkResourceIds,NetworkResourceScope, or both. A request can include at most 20 distinct resources in total.- Parameters:
networkResourceIds- The IDs of the network resources to associate with the policy. You can specify from 1 to 20 resource IDs.You must specify
NetworkResourceIds,NetworkResourceScope, or both. A request can include at most 20 distinct resources in total.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkResourceScope
AssociateNetworkingFlexCostAllocationPolicyRequest.Builder networkResourceScope(FlexCostAllocationNetworkResourceScope networkResourceScope) The scope of network resources to associate with the policy. Use a scope to associate the policy with the resources in an account, Amazon VPC, or subnet.
You must specify
NetworkResourceScope,NetworkResourceIds, or both.- Parameters:
networkResourceScope- The scope of network resources to associate with the policy. Use a scope to associate the policy with the resources in an account, Amazon VPC, or subnet.You must specify
NetworkResourceScope,NetworkResourceIds, or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkResourceScope
default AssociateNetworkingFlexCostAllocationPolicyRequest.Builder networkResourceScope(Consumer<FlexCostAllocationNetworkResourceScope.Builder> networkResourceScope) The scope of network resources to associate with the policy. Use a scope to associate the policy with the resources in an account, Amazon VPC, or subnet.
You must specify
This is a convenience method that creates an instance of theNetworkResourceScope,NetworkResourceIds, or both.FlexCostAllocationNetworkResourceScope.Builderavoiding the need to create one manually viaFlexCostAllocationNetworkResourceScope.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworkResourceScope(FlexCostAllocationNetworkResourceScope).- Parameters:
networkResourceScope- a consumer that will call methods onFlexCostAllocationNetworkResourceScope.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
AssociateNetworkingFlexCostAllocationPolicyRequest.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
AssociateNetworkingFlexCostAllocationPolicyRequest.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.
-