Interface FlexCostAllocationPolicyVersion.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FlexCostAllocationPolicyVersion.Builder,,FlexCostAllocationPolicyVersion> SdkBuilder<FlexCostAllocationPolicyVersion.Builder,,FlexCostAllocationPolicyVersion> SdkPojo
- Enclosing class:
FlexCostAllocationPolicyVersion
-
Method Summary
Modifier and TypeMethodDescriptionThe date and time when this version of the policy was created.description(String description) The description of this version of the policy.expectedEffectiveAt(Instant expectedEffectiveAt) The date and time when this version of the policy is expected to apply to network traffic.fcaPolicyId(String fcaPolicyId) The ID of the policy.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.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) Indicates whether showback reporting is enabled for this version of the policy.The version number.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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 policy.
- Parameters:
fcaPolicyId- The ID of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
The version number.
- Parameters:
version- The version number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkResourceType
The type of network resource that the policy applies to.
- Parameters:
networkResourceType- The type of network resource that the policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkResourceType
FlexCostAllocationPolicyVersion.Builder networkResourceType(FlexCostAllocationNetworkResourceType networkResourceType) The type of network resource that the policy applies to.
- Parameters:
networkResourceType- The type of network resource that the policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
natFcaPolicyDocument
FlexCostAllocationPolicyVersion.Builder natFcaPolicyDocument(NatFlexCostAllocationPolicyDocument natFcaPolicyDocument) The policy document that defines cost allocation for NAT gateways.
- Parameters:
natFcaPolicyDocument- The 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 FlexCostAllocationPolicyVersion.Builder natFcaPolicyDocument(Consumer<NatFlexCostAllocationPolicyDocument.Builder> natFcaPolicyDocument) The 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
FlexCostAllocationPolicyVersion.Builder instanceFcaPolicyDocument(InstanceFlexCostAllocationPolicyDocument instanceFcaPolicyDocument) The policy document that defines cost allocation for EC2 instances.
- Parameters:
instanceFcaPolicyDocument- The 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 FlexCostAllocationPolicyVersion.Builder instanceFcaPolicyDocument(Consumer<InstanceFlexCostAllocationPolicyDocument.Builder> instanceFcaPolicyDocument) The 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
FlexCostAllocationPolicyVersion.Builder pcxFcaPolicyDocument(PcxFlexCostAllocationPolicyDocument pcxFcaPolicyDocument) The policy document that defines cost allocation for Amazon VPC peering connections.
- Parameters:
pcxFcaPolicyDocument- The 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 FlexCostAllocationPolicyVersion.Builder pcxFcaPolicyDocument(Consumer<PcxFlexCostAllocationPolicyDocument.Builder> pcxFcaPolicyDocument) The 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
Indicates whether showback reporting is enabled for this version of the policy.
- Parameters:
showBackEnabled- Indicates whether showback reporting is enabled for this version of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of this version of the policy.
- Parameters:
description- The description of this version of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedEffectiveAt
The date and time when this version of the policy is expected to apply to network traffic.
- Parameters:
expectedEffectiveAt- The date and time when this version of the policy is expected to apply to network traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The date and time when this version of the policy was created.
- Parameters:
createdAt- The date and time when this version of the policy was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-