Class BetaMonetaryAmount.Builder
-
- All Implemented Interfaces:
public final class BetaMonetaryAmount.BuilderA builder for BetaMonetaryAmount.
-
-
Method Summary
-
-
Method Detail
-
amount
final BetaMonetaryAmount.Builder amount(String amount)
Amount in minor units of the currency, as an integer decimal string with no leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a number so no float rounding is ever applied.
-
amount
final BetaMonetaryAmount.Builder amount(JsonField<String> amount)
Sets Builder.amount to an arbitrary JSON value.
You should usually call Builder.amount with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
currency
final BetaMonetaryAmount.Builder currency(BetaCurrency currency)
Uppercase ISO-4217 currency code.
USDis the only currency currently supported; the accepted set is closed and grows only when a new currency is priced.
-
currency
final BetaMonetaryAmount.Builder currency(JsonField<BetaCurrency> currency)
Sets Builder.currency to an arbitrary JSON value.
You should usually call Builder.currency with a well-typed BetaCurrency value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaMonetaryAmount.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaMonetaryAmount.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMonetaryAmount.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMonetaryAmount.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMonetaryAmount.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMonetaryAmount build()
Returns an immutable instance of BetaMonetaryAmount.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.amount() .currency()
-
-
-
-