Class BetaSpendSummary.Builder
-
- All Implemented Interfaces:
public final class BetaSpendSummary.BuilderA builder for BetaSpendSummary.
-
-
Method Summary
Modifier and Type Method Description final BetaSpendSummary.Builderactor(BetaSpendSummary.Actor actor)final BetaSpendSummary.Builderactor(JsonField<BetaSpendSummary.Actor> actor)Sets Builder.actor to an arbitrary JSON value. final BetaSpendSummary.Builderactor(BetaSpendLimitUserActor user)Alias for calling actor with Actor.ofUser(user).final BetaSpendSummary.Builderactor(BetaSpendLimitScopedApiKeyActor scopedApiKey)Alias for calling actor with Actor.ofScopedApiKey(scopedApiKey).final BetaSpendSummary.Builderamount(String amount)Effective limit amount as a non-negative integer decimal string in the minor unit of currency(cents for USD).final BetaSpendSummary.Builderamount(Optional<String> amount)Alias for calling Builder.amount with amount.orElse(null).final BetaSpendSummary.Builderamount(JsonField<String> amount)Sets Builder.amount to an arbitrary JSON value. final BetaSpendSummary.Buildercurrency(String currency)ISO 4217 code of the organization's billing currency; the unit for amountandperiod_to_date_spend.final BetaSpendSummary.Buildercurrency(JsonField<String> currency)Sets Builder.currency to an arbitrary JSON value. final BetaSpendSummary.Builderperiod(BetaSpendLimitPeriod period)Period this row's effective limit and spend are reported for. final BetaSpendSummary.Builderperiod(JsonField<BetaSpendLimitPeriod> period)Sets Builder.period to an arbitrary JSON value. final BetaSpendSummary.BuilderperiodToDateSpend(String periodToDateSpend)The member's spend so far in the current period, as a non-negative decimal string in the minor unit of currency(cents for USD).final BetaSpendSummary.BuilderperiodToDateSpend(JsonField<String> periodToDateSpend)Sets Builder.periodToDateSpend to an arbitrary JSON value. final BetaSpendSummary.Builderscope(BetaSpendSummary.Scope scope)final BetaSpendSummary.Builderscope(JsonField<BetaSpendSummary.Scope> scope)Sets Builder.scope to an arbitrary JSON value. final BetaSpendSummary.Builderscope(BetaSpendLimitUserScope user)Alias for calling scope with Scope.ofUser(user).final BetaSpendSummary.Builderscope(BetaSpendLimitSeatTierScope seatTier)Alias for calling scope with Scope.ofSeatTier(seatTier).final BetaSpendSummary.Builderscope(BetaSpendLimitRbacGroupScope rbacGroup)Alias for calling scope with Scope.ofRbacGroup(rbacGroup).final BetaSpendSummary.Builderscope(BetaSpendLimitOrganizationServiceScope organizationService)Alias for calling scope with Scope.ofOrganizationService(organizationService).final BetaSpendSummary.Builderscope(BetaSpendLimitOrganizationScope organization)Alias for calling scope with Scope.ofOrganization(organization).final BetaSpendSummary.Builderscope(BetaSpendLimitWorkspaceScope workspace)Alias for calling scope with Scope.ofWorkspace(workspace).final BetaSpendSummary.Builderscope(BetaSpendLimitUsageTierScope usageTier)Alias for calling scope with Scope.ofUsageTier(usageTier).final BetaSpendSummary.Buildersource(BetaSpendSummary.Source source)final BetaSpendSummary.Buildersource(JsonField<BetaSpendSummary.Source> source)Sets Builder.source to an arbitrary JSON value. final BetaSpendSummary.Buildersource(BetaSpendLimitUserScope user)Alias for calling source with Source.ofUser(user).final BetaSpendSummary.Buildersource(BetaSpendLimitSeatTierScope seatTier)Alias for calling source with Source.ofSeatTier(seatTier).final BetaSpendSummary.Buildersource(BetaSpendLimitRbacGroupScope rbacGroup)Alias for calling source with Source.ofRbacGroup(rbacGroup).final BetaSpendSummary.Buildersource(BetaSpendLimitOrganizationServiceScope organizationService)Alias for calling source with Source.ofOrganizationService(organizationService).final BetaSpendSummary.Buildersource(BetaSpendLimitOrganizationScope organization)Alias for calling source with Source.ofOrganization(organization).final BetaSpendSummary.Buildersource(BetaSpendLimitWorkspaceScope workspace)Alias for calling source with Source.ofWorkspace(workspace).final BetaSpendSummary.Buildersource(BetaSpendLimitUsageTierScope usageTier)Alias for calling source with Source.ofUsageTier(usageTier).final BetaSpendSummary.BuilderspendLimitId(String spendLimitId)final BetaSpendSummary.BuilderspendLimitId(JsonField<String> spendLimitId)Sets Builder.spendLimitId to an arbitrary JSON value. final BetaSpendSummary.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaSpendSummary.BuilderscopedApiKeyActor(String scopedApiKeyId)Alias for calling actor with the following: BetaSpendLimitScopedApiKeyActor.builder() .scopedApiKeyId(scopedApiKeyId) .build()final BetaSpendSummary.BuilderuserScope(String userId)Alias for calling scope with the following: BetaSpendLimitUserScope.builder() .userId(userId) .build()final BetaSpendSummary.BuilderseatTierScope(String seatTier)Alias for calling scope with the following: BetaSpendLimitSeatTierScope.builder() .seatTier(seatTier) .build()final BetaSpendSummary.BuilderrbacGroupScope(String rbacGroupId)Alias for calling scope with the following: BetaSpendLimitRbacGroupScope.builder() .rbacGroupId(rbacGroupId) .build()final BetaSpendSummary.BuilderorganizationServiceScope(String service)Alias for calling scope with the following: BetaSpendLimitOrganizationServiceScope.builder() .service(service) .build()final BetaSpendSummary.BuilderworkspaceScope(String workspaceId)Alias for calling scope with the following: BetaSpendLimitWorkspaceScope.builder() .workspaceId(workspaceId) .build()final BetaSpendSummary.BuilderuserSource(String userId)Alias for calling source with the following: BetaSpendLimitUserScope.builder() .userId(userId) .build()final BetaSpendSummary.BuilderseatTierSource(String seatTier)Alias for calling source with the following: BetaSpendLimitSeatTierScope.builder() .seatTier(seatTier) .build()final BetaSpendSummary.BuilderrbacGroupSource(String rbacGroupId)Alias for calling source with the following: BetaSpendLimitRbacGroupScope.builder() .rbacGroupId(rbacGroupId) .build()final BetaSpendSummary.BuilderorganizationServiceSource(String service)Alias for calling source with the following: BetaSpendLimitOrganizationServiceScope.builder() .service(service) .build()final BetaSpendSummary.BuilderworkspaceSource(String workspaceId)Alias for calling source with the following: BetaSpendLimitWorkspaceScope.builder() .workspaceId(workspaceId) .build()final BetaSpendSummary.BuilderputAdditionalProperty(String key, JsonValue value)final BetaSpendSummary.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaSpendSummary.BuilderremoveAdditionalProperty(String key)final BetaSpendSummary.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaSpendSummarybuild()Returns an immutable instance of BetaSpendSummary. -
-
Method Detail
-
actor
final BetaSpendSummary.Builder actor(BetaSpendSummary.Actor actor)
-
actor
final BetaSpendSummary.Builder actor(JsonField<BetaSpendSummary.Actor> actor)
Sets Builder.actor to an arbitrary JSON value.
You should usually call Builder.actor with a well-typed Actor value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
actor
final BetaSpendSummary.Builder actor(BetaSpendLimitUserActor user)
Alias for calling actor with
Actor.ofUser(user).
-
actor
final BetaSpendSummary.Builder actor(BetaSpendLimitScopedApiKeyActor scopedApiKey)
Alias for calling actor with
Actor.ofScopedApiKey(scopedApiKey).
-
amount
final BetaSpendSummary.Builder amount(String amount)
Effective limit amount as a non-negative integer decimal string in the minor unit of
currency(cents for USD).nullmeans no limit applies for this row'speriod— each period resolves independently, so another period may still cap this member.
-
amount
final BetaSpendSummary.Builder amount(Optional<String> amount)
Alias for calling Builder.amount with
amount.orElse(null).
-
amount
final BetaSpendSummary.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 BetaSpendSummary.Builder currency(String currency)
ISO 4217 code of the organization's billing currency; the unit for
amountandperiod_to_date_spend.
-
currency
final BetaSpendSummary.Builder currency(JsonField<String> currency)
Sets Builder.currency to an arbitrary JSON value.
You should usually call Builder.currency with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
period
final BetaSpendSummary.Builder period(BetaSpendLimitPeriod period)
Period this row's effective limit and spend are reported for.
-
period
final BetaSpendSummary.Builder period(JsonField<BetaSpendLimitPeriod> period)
Sets Builder.period to an arbitrary JSON value.
You should usually call Builder.period with a well-typed BetaSpendLimitPeriod value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
periodToDateSpend
final BetaSpendSummary.Builder periodToDateSpend(String periodToDateSpend)
The member's spend so far in the current period, as a non-negative decimal string in the minor unit of
currency(cents for USD). May carry fractional minor units up to three decimal places (e.g."12050.5") — metered usage is not rounded to whole cents. Reads as"0"when the spend reading is temporarily unavailable.
-
periodToDateSpend
final BetaSpendSummary.Builder periodToDateSpend(JsonField<String> periodToDateSpend)
Sets Builder.periodToDateSpend to an arbitrary JSON value.
You should usually call Builder.periodToDateSpend with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
scope
final BetaSpendSummary.Builder scope(BetaSpendSummary.Scope scope)
-
scope
final BetaSpendSummary.Builder scope(JsonField<BetaSpendSummary.Scope> scope)
Sets Builder.scope to an arbitrary JSON value.
You should usually call Builder.scope with a well-typed Scope value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
scope
final BetaSpendSummary.Builder scope(BetaSpendLimitUserScope user)
Alias for calling scope with
Scope.ofUser(user).
-
scope
final BetaSpendSummary.Builder scope(BetaSpendLimitSeatTierScope seatTier)
Alias for calling scope with
Scope.ofSeatTier(seatTier).
-
scope
final BetaSpendSummary.Builder scope(BetaSpendLimitRbacGroupScope rbacGroup)
Alias for calling scope with
Scope.ofRbacGroup(rbacGroup).
-
scope
final BetaSpendSummary.Builder scope(BetaSpendLimitOrganizationServiceScope organizationService)
Alias for calling scope with
Scope.ofOrganizationService(organizationService).
-
scope
final BetaSpendSummary.Builder scope(BetaSpendLimitOrganizationScope organization)
Alias for calling scope with
Scope.ofOrganization(organization).
-
scope
final BetaSpendSummary.Builder scope(BetaSpendLimitWorkspaceScope workspace)
Alias for calling scope with
Scope.ofWorkspace(workspace).
-
scope
final BetaSpendSummary.Builder scope(BetaSpendLimitUsageTierScope usageTier)
Alias for calling scope with
Scope.ofUsageTier(usageTier).
-
source
final BetaSpendSummary.Builder source(BetaSpendSummary.Source source)
-
source
final BetaSpendSummary.Builder source(JsonField<BetaSpendSummary.Source> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed Source value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final BetaSpendSummary.Builder source(BetaSpendLimitUserScope user)
Alias for calling source with
Source.ofUser(user).
-
source
final BetaSpendSummary.Builder source(BetaSpendLimitSeatTierScope seatTier)
Alias for calling source with
Source.ofSeatTier(seatTier).
-
source
final BetaSpendSummary.Builder source(BetaSpendLimitRbacGroupScope rbacGroup)
Alias for calling source with
Source.ofRbacGroup(rbacGroup).
-
source
final BetaSpendSummary.Builder source(BetaSpendLimitOrganizationServiceScope organizationService)
Alias for calling source with
Source.ofOrganizationService(organizationService).
-
source
final BetaSpendSummary.Builder source(BetaSpendLimitOrganizationScope organization)
Alias for calling source with
Source.ofOrganization(organization).
-
source
final BetaSpendSummary.Builder source(BetaSpendLimitWorkspaceScope workspace)
Alias for calling source with
Source.ofWorkspace(workspace).
-
source
final BetaSpendSummary.Builder source(BetaSpendLimitUsageTierScope usageTier)
Alias for calling source with
Source.ofUsageTier(usageTier).
-
spendLimitId
final BetaSpendSummary.Builder spendLimitId(String spendLimitId)
-
spendLimitId
final BetaSpendSummary.Builder spendLimitId(JsonField<String> spendLimitId)
Sets Builder.spendLimitId to an arbitrary JSON value.
You should usually call Builder.spendLimitId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaSpendSummary.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
scopedApiKeyActor
final BetaSpendSummary.Builder scopedApiKeyActor(String scopedApiKeyId)
Alias for calling actor with the following:
BetaSpendLimitScopedApiKeyActor.builder() .scopedApiKeyId(scopedApiKeyId) .build()
-
userScope
final BetaSpendSummary.Builder userScope(String userId)
Alias for calling scope with the following:
BetaSpendLimitUserScope.builder() .userId(userId) .build()
-
seatTierScope
final BetaSpendSummary.Builder seatTierScope(String seatTier)
Alias for calling scope with the following:
BetaSpendLimitSeatTierScope.builder() .seatTier(seatTier) .build()
-
rbacGroupScope
final BetaSpendSummary.Builder rbacGroupScope(String rbacGroupId)
Alias for calling scope with the following:
BetaSpendLimitRbacGroupScope.builder() .rbacGroupId(rbacGroupId) .build()
-
organizationServiceScope
final BetaSpendSummary.Builder organizationServiceScope(String service)
Alias for calling scope with the following:
BetaSpendLimitOrganizationServiceScope.builder() .service(service) .build()
-
workspaceScope
final BetaSpendSummary.Builder workspaceScope(String workspaceId)
Alias for calling scope with the following:
BetaSpendLimitWorkspaceScope.builder() .workspaceId(workspaceId) .build()
-
userSource
final BetaSpendSummary.Builder userSource(String userId)
Alias for calling source with the following:
BetaSpendLimitUserScope.builder() .userId(userId) .build()
-
seatTierSource
final BetaSpendSummary.Builder seatTierSource(String seatTier)
Alias for calling source with the following:
BetaSpendLimitSeatTierScope.builder() .seatTier(seatTier) .build()
-
rbacGroupSource
final BetaSpendSummary.Builder rbacGroupSource(String rbacGroupId)
Alias for calling source with the following:
BetaSpendLimitRbacGroupScope.builder() .rbacGroupId(rbacGroupId) .build()
-
organizationServiceSource
final BetaSpendSummary.Builder organizationServiceSource(String service)
Alias for calling source with the following:
BetaSpendLimitOrganizationServiceScope.builder() .service(service) .build()
-
workspaceSource
final BetaSpendSummary.Builder workspaceSource(String workspaceId)
Alias for calling source with the following:
BetaSpendLimitWorkspaceScope.builder() .workspaceId(workspaceId) .build()
-
putAdditionalProperty
final BetaSpendSummary.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaSpendSummary.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaSpendSummary.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaSpendSummary.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaSpendSummary build()
Returns an immutable instance of BetaSpendSummary.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.actor() .amount() .currency() .period() .periodToDateSpend() .scope() .source() .spendLimitId()
-
-
-
-