Class AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder
-
- All Implemented Interfaces:
public final class AuthRuleV2UpdateParams.Body.AccountLevelRule.BuilderA builder for AccountLevelRule.
-
-
Method Summary
-
-
Method Detail
-
accountTokens
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder accountTokens(List<String> accountTokens)
Account tokens to which the Auth Rule applies.
-
accountTokens
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder accountTokens(JsonField<List<String>> accountTokens)
Sets Builder.accountTokens to an arbitrary JSON value.
You should usually call Builder.accountTokens with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAccountToken
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder addAccountToken(String accountToken)
Adds a single String to accountTokens.
-
name
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder name(String name)
Auth Rule Name
-
name
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder name(Optional<String> name)
Alias for calling Builder.name with
name.orElse(null).
-
name
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
state
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder state(AuthRuleV2UpdateParams.Body.AccountLevelRule.State state)
The desired state of the Auth Rule.
Note that only deactivating an Auth Rule through this endpoint is supported at this time. If you need to (re-)activate an Auth Rule the /promote endpoint should be used to promote a draft to the currently active version.
-
state
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder state(JsonField<AuthRuleV2UpdateParams.Body.AccountLevelRule.State> state)
Sets Builder.state to an arbitrary JSON value.
You should usually call Builder.state with a well-typed State value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final AuthRuleV2UpdateParams.Body.AccountLevelRule.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final AuthRuleV2UpdateParams.Body.AccountLevelRule build()
Returns an immutable instance of AccountLevelRule.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-