Class SpendSummary.Builder
-
- All Implemented Interfaces:
public final class SpendSummary.BuilderA builder for SpendSummary.
-
-
Method Summary
Modifier and Type Method Description final SpendSummary.Builderactor(SpendSummary.Actor actor)final SpendSummary.Builderactor(JsonField<SpendSummary.Actor> actor)Sets Builder.actor to an arbitrary JSON value. final SpendSummary.Builderactor(SpendLimitUserActor user)Alias for calling actor with Actor.ofUser(user).final SpendSummary.Builderactor(SpendLimitScopedApiKeyActor scopedApiKey)Alias for calling actor with Actor.ofScopedApiKey(scopedApiKey).final SpendSummary.Builderamount(String amount)Effective limit amount as a non-negative integer decimal string in the minor unit of currency(cents for USD).final SpendSummary.Builderamount(Optional<String> amount)Alias for calling Builder.amount with amount.orElse(null).final SpendSummary.Builderamount(JsonField<String> amount)Sets Builder.amount to an arbitrary JSON value. final SpendSummary.Buildercurrency(String currency)ISO 4217 code of the organization's billing currency; the unit for amountandperiod_to_date_spend.final SpendSummary.Buildercurrency(JsonField<String> currency)Sets Builder.currency to an arbitrary JSON value. final SpendSummary.Builderperiod(SpendLimitPeriod period)Period this row's effective limit and spend are reported for. final SpendSummary.Builderperiod(JsonField<SpendLimitPeriod> period)Sets Builder.period to an arbitrary JSON value. final SpendSummary.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 SpendSummary.BuilderperiodToDateSpend(JsonField<String> periodToDateSpend)Sets Builder.periodToDateSpend to an arbitrary JSON value. final SpendSummary.Builderscope(SpendSummary.Scope scope)final SpendSummary.Builderscope(JsonField<SpendSummary.Scope> scope)Sets Builder.scope to an arbitrary JSON value. final SpendSummary.Builderscope(SpendLimitUserScope user)Alias for calling scope with Scope.ofUser(user).final SpendSummary.Builderscope(SpendLimitSeatTierScope seatTier)Alias for calling scope with Scope.ofSeatTier(seatTier).final SpendSummary.Builderscope(SpendLimitRbacGroupScope rbacGroup)Alias for calling scope with Scope.ofRbacGroup(rbacGroup).final SpendSummary.Builderscope(SpendLimitOrganizationServiceScope organizationService)Alias for calling scope with Scope.ofOrganizationService(organizationService).final SpendSummary.Builderscope(SpendLimitOrganizationScope organization)Alias for calling scope with Scope.ofOrganization(organization).final SpendSummary.Builderscope(SpendLimitWorkspaceScope workspace)Alias for calling scope with Scope.ofWorkspace(workspace).final SpendSummary.Builderscope(SpendLimitUsageTierScope usageTier)Alias for calling scope with Scope.ofUsageTier(usageTier).final SpendSummary.Buildersource(SpendSummary.Source source)final SpendSummary.Buildersource(JsonField<SpendSummary.Source> source)Sets Builder.source to an arbitrary JSON value. final SpendSummary.Buildersource(SpendLimitUserScope user)Alias for calling source with Source.ofUser(user).final SpendSummary.Buildersource(SpendLimitSeatTierScope seatTier)Alias for calling source with Source.ofSeatTier(seatTier).final SpendSummary.Buildersource(SpendLimitRbacGroupScope rbacGroup)Alias for calling source with Source.ofRbacGroup(rbacGroup).final SpendSummary.Buildersource(SpendLimitOrganizationServiceScope organizationService)Alias for calling source with Source.ofOrganizationService(organizationService).final SpendSummary.Buildersource(SpendLimitOrganizationScope organization)Alias for calling source with Source.ofOrganization(organization).final SpendSummary.Buildersource(SpendLimitWorkspaceScope workspace)Alias for calling source with Source.ofWorkspace(workspace).final SpendSummary.Buildersource(SpendLimitUsageTierScope usageTier)Alias for calling source with Source.ofUsageTier(usageTier).final SpendSummary.BuilderspendLimitId(String spendLimitId)final SpendSummary.BuilderspendLimitId(JsonField<String> spendLimitId)Sets Builder.spendLimitId to an arbitrary JSON value. final SpendSummary.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final SpendSummary.BuilderscopedApiKeyActor(String scopedApiKeyId)Alias for calling actor with the following: SpendLimitScopedApiKeyActor.builder() .scopedApiKeyId(scopedApiKeyId) .build()final SpendSummary.BuilderuserScope(String userId)Alias for calling scope with the following: SpendLimitUserScope.builder() .userId(userId) .build()final SpendSummary.BuilderseatTierScope(String seatTier)Alias for calling scope with the following: SpendLimitSeatTierScope.builder() .seatTier(seatTier) .build()final SpendSummary.BuilderrbacGroupScope(String rbacGroupId)Alias for calling scope with the following: SpendLimitRbacGroupScope.builder() .rbacGroupId(rbacGroupId) .build()final SpendSummary.BuilderorganizationServiceScope(String service)Alias for calling scope with the following: SpendLimitOrganizationServiceScope.builder() .service(service) .build()final SpendSummary.BuilderworkspaceScope(String workspaceId)Alias for calling scope with the following: SpendLimitWorkspaceScope.builder() .workspaceId(workspaceId) .build()final SpendSummary.BuilderuserSource(String userId)Alias for calling source with the following: SpendLimitUserScope.builder() .userId(userId) .build()final SpendSummary.BuilderseatTierSource(String seatTier)Alias for calling source with the following: SpendLimitSeatTierScope.builder() .seatTier(seatTier) .build()final SpendSummary.BuilderrbacGroupSource(String rbacGroupId)Alias for calling source with the following: SpendLimitRbacGroupScope.builder() .rbacGroupId(rbacGroupId) .build()final SpendSummary.BuilderorganizationServiceSource(String service)Alias for calling source with the following: SpendLimitOrganizationServiceScope.builder() .service(service) .build()final SpendSummary.BuilderworkspaceSource(String workspaceId)Alias for calling source with the following: SpendLimitWorkspaceScope.builder() .workspaceId(workspaceId) .build()final SpendSummary.BuilderputAdditionalProperty(String key, JsonValue value)final SpendSummary.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final SpendSummary.BuilderremoveAdditionalProperty(String key)final SpendSummary.BuilderremoveAllAdditionalProperties(Set<String> keys)final SpendSummarybuild()Returns an immutable instance of SpendSummary. -
-
Method Detail
-
actor
final SpendSummary.Builder actor(SpendSummary.Actor actor)
-
actor
final SpendSummary.Builder actor(JsonField<SpendSummary.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 SpendSummary.Builder actor(SpendLimitUserActor user)
Alias for calling actor with
Actor.ofUser(user).
-
actor
final SpendSummary.Builder actor(SpendLimitScopedApiKeyActor scopedApiKey)
Alias for calling actor with
Actor.ofScopedApiKey(scopedApiKey).
-
amount
final SpendSummary.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 SpendSummary.Builder amount(Optional<String> amount)
Alias for calling Builder.amount with
amount.orElse(null).
-
amount
final SpendSummary.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 SpendSummary.Builder currency(String currency)
ISO 4217 code of the organization's billing currency; the unit for
amountandperiod_to_date_spend.
-
currency
final SpendSummary.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 SpendSummary.Builder period(SpendLimitPeriod period)
Period this row's effective limit and spend are reported for.
-
period
final SpendSummary.Builder period(JsonField<SpendLimitPeriod> period)
Sets Builder.period to an arbitrary JSON value.
You should usually call Builder.period with a well-typed SpendLimitPeriod value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
periodToDateSpend
final SpendSummary.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 SpendSummary.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 SpendSummary.Builder scope(SpendSummary.Scope scope)
-
scope
final SpendSummary.Builder scope(JsonField<SpendSummary.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 SpendSummary.Builder scope(SpendLimitUserScope user)
Alias for calling scope with
Scope.ofUser(user).
-
scope
final SpendSummary.Builder scope(SpendLimitSeatTierScope seatTier)
Alias for calling scope with
Scope.ofSeatTier(seatTier).
-
scope
final SpendSummary.Builder scope(SpendLimitRbacGroupScope rbacGroup)
Alias for calling scope with
Scope.ofRbacGroup(rbacGroup).
-
scope
final SpendSummary.Builder scope(SpendLimitOrganizationServiceScope organizationService)
Alias for calling scope with
Scope.ofOrganizationService(organizationService).
-
scope
final SpendSummary.Builder scope(SpendLimitOrganizationScope organization)
Alias for calling scope with
Scope.ofOrganization(organization).
-
scope
final SpendSummary.Builder scope(SpendLimitWorkspaceScope workspace)
Alias for calling scope with
Scope.ofWorkspace(workspace).
-
scope
final SpendSummary.Builder scope(SpendLimitUsageTierScope usageTier)
Alias for calling scope with
Scope.ofUsageTier(usageTier).
-
source
final SpendSummary.Builder source(SpendSummary.Source source)
-
source
final SpendSummary.Builder source(JsonField<SpendSummary.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 SpendSummary.Builder source(SpendLimitUserScope user)
Alias for calling source with
Source.ofUser(user).
-
source
final SpendSummary.Builder source(SpendLimitSeatTierScope seatTier)
Alias for calling source with
Source.ofSeatTier(seatTier).
-
source
final SpendSummary.Builder source(SpendLimitRbacGroupScope rbacGroup)
Alias for calling source with
Source.ofRbacGroup(rbacGroup).
-
source
final SpendSummary.Builder source(SpendLimitOrganizationServiceScope organizationService)
Alias for calling source with
Source.ofOrganizationService(organizationService).
-
source
final SpendSummary.Builder source(SpendLimitOrganizationScope organization)
Alias for calling source with
Source.ofOrganization(organization).
-
source
final SpendSummary.Builder source(SpendLimitWorkspaceScope workspace)
Alias for calling source with
Source.ofWorkspace(workspace).
-
source
final SpendSummary.Builder source(SpendLimitUsageTierScope usageTier)
Alias for calling source with
Source.ofUsageTier(usageTier).
-
spendLimitId
final SpendSummary.Builder spendLimitId(String spendLimitId)
-
spendLimitId
final SpendSummary.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 SpendSummary.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
scopedApiKeyActor
final SpendSummary.Builder scopedApiKeyActor(String scopedApiKeyId)
Alias for calling actor with the following:
SpendLimitScopedApiKeyActor.builder() .scopedApiKeyId(scopedApiKeyId) .build()
-
userScope
final SpendSummary.Builder userScope(String userId)
Alias for calling scope with the following:
SpendLimitUserScope.builder() .userId(userId) .build()
-
seatTierScope
final SpendSummary.Builder seatTierScope(String seatTier)
Alias for calling scope with the following:
SpendLimitSeatTierScope.builder() .seatTier(seatTier) .build()
-
rbacGroupScope
final SpendSummary.Builder rbacGroupScope(String rbacGroupId)
Alias for calling scope with the following:
SpendLimitRbacGroupScope.builder() .rbacGroupId(rbacGroupId) .build()
-
organizationServiceScope
final SpendSummary.Builder organizationServiceScope(String service)
Alias for calling scope with the following:
SpendLimitOrganizationServiceScope.builder() .service(service) .build()
-
workspaceScope
final SpendSummary.Builder workspaceScope(String workspaceId)
Alias for calling scope with the following:
SpendLimitWorkspaceScope.builder() .workspaceId(workspaceId) .build()
-
userSource
final SpendSummary.Builder userSource(String userId)
Alias for calling source with the following:
SpendLimitUserScope.builder() .userId(userId) .build()
-
seatTierSource
final SpendSummary.Builder seatTierSource(String seatTier)
Alias for calling source with the following:
SpendLimitSeatTierScope.builder() .seatTier(seatTier) .build()
-
rbacGroupSource
final SpendSummary.Builder rbacGroupSource(String rbacGroupId)
Alias for calling source with the following:
SpendLimitRbacGroupScope.builder() .rbacGroupId(rbacGroupId) .build()
-
organizationServiceSource
final SpendSummary.Builder organizationServiceSource(String service)
Alias for calling source with the following:
SpendLimitOrganizationServiceScope.builder() .service(service) .build()
-
workspaceSource
final SpendSummary.Builder workspaceSource(String workspaceId)
Alias for calling source with the following:
SpendLimitWorkspaceScope.builder() .workspaceId(workspaceId) .build()
-
putAdditionalProperty
final SpendSummary.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SpendSummary.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SpendSummary.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SpendSummary.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SpendSummary build()
Returns an immutable instance of SpendSummary.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.actor() .amount() .currency() .period() .periodToDateSpend() .scope() .source() .spendLimitId()
-
-
-
-