Class BetaBillingPolicy.Builder
-
- All Implemented Interfaces:
public final class BetaBillingPolicy.BuilderA builder for BetaBillingPolicy.
-
-
Method Summary
Modifier and Type Method Description final BetaBillingPolicy.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaBillingPolicy.BuilderbillTo(BetaBillTo billTo)Who is billed. final BetaBillingPolicy.BuilderbillTo(JsonField<BetaBillTo> billTo)Sets Builder.billTo to an arbitrary JSON value. final BetaBillingPolicy.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaBillingPolicy.BuilderputAdditionalProperty(String key, JsonValue value)final BetaBillingPolicy.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaBillingPolicy.BuilderremoveAdditionalProperty(String key)final BetaBillingPolicy.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaBillingPolicybuild()Returns an immutable instance of BetaBillingPolicy. -
-
Method Detail
-
type
final BetaBillingPolicy.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("billing_policy")This method is primarily for setting the field to an undocumented or not yet supported value.
-
billTo
final BetaBillingPolicy.Builder billTo(BetaBillTo billTo)
Who is billed.
self, the default, bills your organization, as ifbilling_policywere omitted.user_profilebills the customer behind the user profile the request names; if that customer has not linked an Anthropic organization to the profile, or has not allowed your organization to bill it, the request is rejected rather than billed to you.
-
billTo
final BetaBillingPolicy.Builder billTo(JsonField<BetaBillTo> billTo)
Sets Builder.billTo to an arbitrary JSON value.
You should usually call Builder.billTo with a well-typed BetaBillTo value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaBillingPolicy.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaBillingPolicy.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaBillingPolicy.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaBillingPolicy.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaBillingPolicy.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaBillingPolicy build()
Returns an immutable instance of BetaBillingPolicy.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-