Interface FlexCostAllocationPolicyDescription.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FlexCostAllocationPolicyDescription.Builder,,FlexCostAllocationPolicyDescription> SdkBuilder<FlexCostAllocationPolicyDescription.Builder,,FlexCostAllocationPolicyDescription> SdkPojo
- Enclosing class:
FlexCostAllocationPolicyDescription
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) The description of the policy.fcaPolicyArn(String fcaPolicyArn) The Amazon Resource Name (ARN) of the policy.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.latestVersion(Integer latestVersion) The number of the latest version of the policy.The entity that manages the policy.The entity that manages the policy.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.ownerAccount(String ownerAccount) The ID of the account that owns the policy.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.policyCreatedAt(Instant policyCreatedAt) The date and time when the policy was created.showBackEnabled(Boolean showBackEnabled) Indicates whether showback reporting is enabled for the policy.tags(Collection<Tag> tags) The tags assigned to the policy.tags(Consumer<Tag.Builder>... tags) The tags assigned to the policy.The tags assigned to the policy.The date and time when the policy was last updated.versionExpectedEffectiveAt(Instant versionExpectedEffectiveAt) The date and time when the latest version of the policy is expected to apply to network traffic.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.
-
fcaPolicyArn
The Amazon Resource Name (ARN) of the policy.
- Parameters:
fcaPolicyArn- The Amazon Resource Name (ARN) of the policy.- 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
FlexCostAllocationPolicyDescription.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
FlexCostAllocationPolicyDescription.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 FlexCostAllocationPolicyDescription.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
FlexCostAllocationPolicyDescription.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 FlexCostAllocationPolicyDescription.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
FlexCostAllocationPolicyDescription.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 FlexCostAllocationPolicyDescription.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 the policy.
- Parameters:
showBackEnabled- Indicates whether showback reporting is enabled for the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerAccount
The ID of the account that owns the policy.
- Parameters:
ownerAccount- The ID of the account that owns the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the policy.
- Parameters:
description- The description of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestVersion
The number of the latest version of the policy.
- Parameters:
latestVersion- The number of the latest version of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionExpectedEffectiveAt
FlexCostAllocationPolicyDescription.Builder versionExpectedEffectiveAt(Instant versionExpectedEffectiveAt) The date and time when the latest version of the policy is expected to apply to network traffic. The policy configuration in this response is from the latest version.
- Parameters:
versionExpectedEffectiveAt- The date and time when the latest version of the policy is expected to apply to network traffic. The policy configuration in this response is from the latest version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyCreatedAt
The date and time when the policy was created.
- Parameters:
policyCreatedAt- The date and time when the policy was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The date and time when the policy was last updated.
- Parameters:
updatedAt- The date and time when the policy was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedBy
The entity that manages the policy. Valid values are:
-
account- The account that owns the policy created it. -
declarative-policy- An Amazon Web Services Organizations declarative policy created the policy. You can't modify or delete the policy.
- Parameters:
managedBy- The entity that manages the policy. Valid values are:-
account- The account that owns the policy created it. -
declarative-policy- An Amazon Web Services Organizations declarative policy created the policy. You can't modify or delete the policy.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
managedBy
The entity that manages the policy. Valid values are:
-
account- The account that owns the policy created it. -
declarative-policy- An Amazon Web Services Organizations declarative policy created the policy. You can't modify or delete the policy.
- Parameters:
managedBy- The entity that manages the policy. Valid values are:-
account- The account that owns the policy created it. -
declarative-policy- An Amazon Web Services Organizations declarative policy created the policy. You can't modify or delete the policy.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
tags
The tags assigned to the policy.
- Parameters:
tags- The tags assigned to the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags assigned to the policy.
- Parameters:
tags- The tags assigned to the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags assigned to the policy.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-