Interface PutThirdPartyCostRequest.Builder
- All Superinterfaces:
AppMonetizationRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<PutThirdPartyCostRequest.Builder,,PutThirdPartyCostRequest> SdkBuilder<PutThirdPartyCostRequest.Builder,,PutThirdPartyCostRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutThirdPartyCostRequest
-
Method Summary
Modifier and TypeMethodDescriptionA flat monthly amount as a decimal string (for example, "12.50").The ID of the app the cost belongs to.clientToken(String clientToken) AWS App Monetization does not use this value for this operation.The ID of the cost.The currency of the amount.The currency of the amount.description(String description) A free-form description of the cost.effectiveFrom(String effectiveFrom) First month (YYYY-MM) the cost applies in.effectiveTo(String effectiveTo) Last month (YYYY-MM) the cost applies in.How often the cost recurs.frequency(ThirdPartyCostFrequency frequency) How often the cost recurs.A human-readable label for the cost (for example, "Anthropic API").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.services.appmonetization.model.AppMonetizationRequest.Builder
buildMethods 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.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
appId
The ID of the app the cost belongs to.
- Parameters:
appId- The ID of the app the cost belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costId
The ID of the cost. Omit it to create a new cost, or supply an existing cost ID to update that cost in place.
- Parameters:
costId- The ID of the cost. Omit it to create a new cost, or supply an existing cost ID to update that cost in place.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
label
A human-readable label for the cost (for example, "Anthropic API").
- Parameters:
label- A human-readable label for the cost (for example, "Anthropic API").- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amount
A flat monthly amount as a decimal string (for example, "12.50").
- Parameters:
amount- A flat monthly amount as a decimal string (for example, "12.50").- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
frequency
How often the cost recurs. MONTHLY is the only value today.
- Parameters:
frequency- How often the cost recurs. MONTHLY is the only value today.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
frequency
How often the cost recurs. MONTHLY is the only value today.
- Parameters:
frequency- How often the cost recurs. MONTHLY is the only value today.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currency
The currency of the amount. Defaults to USD when omitted (USD is the only supported currency).
- Parameters:
currency- The currency of the amount. Defaults to USD when omitted (USD is the only supported currency).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currency
The currency of the amount. Defaults to USD when omitted (USD is the only supported currency).
- Parameters:
currency- The currency of the amount. Defaults to USD when omitted (USD is the only supported currency).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A free-form description of the cost.
- Parameters:
description- A free-form description of the cost.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effectiveFrom
First month (YYYY-MM) the cost applies in. Absent means the cost has no start month.
- Parameters:
effectiveFrom- First month (YYYY-MM) the cost applies in. Absent means the cost has no start month.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effectiveTo
Last month (YYYY-MM) the cost applies in. Absent means the cost has no end month. When both are present, effectiveFrom must not be after effectiveTo.
- Parameters:
effectiveTo- Last month (YYYY-MM) the cost applies in. Absent means the cost has no end month. When both are present, effectiveFrom must not be after effectiveTo.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
AWS App Monetization does not use this value for this operation. To retry without creating a duplicate cost, pass the
costIdreturned by the first call.- Parameters:
clientToken- AWS App Monetization does not use this value for this operation. To retry without creating a duplicate cost, pass thecostIdreturned by the first call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutThirdPartyCostRequest.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
PutThirdPartyCostRequest.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.
-