Class SpendLimitUserScope
-
- All Implemented Interfaces:
public final class SpendLimitUserScopeScope selecting a single member of the organization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSpendLimitUserScope.BuilderA builder for SpendLimitUserScope.
-
Method Summary
Modifier and Type Method Description final StringuserId()Tagged ID of the member the spend limit applies to. final JsonValue_type()Scope type. final JsonField<String>_userId()Returns the raw JSON value of userId. final Map<String, JsonValue>_additionalProperties()final SpendLimitUserScope.BuildertoBuilder()final SpendLimitUserScopevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SpendLimitUserScope.Builderbuilder()Returns a mutable builder for constructing an instance of SpendLimitUserScope. final static SpendLimitUserScopeof(String userId)Returns an immutable instance of SpendLimitUserScope with the required userId set to the given value. -
-
Method Detail
-
_type
final JsonValue _type()
Scope type. Always
userfor this scope.Expected to always return the following:
JsonValue.from("user")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_userId
final JsonField<String> _userId()
Returns the raw JSON value of userId.
Unlike userId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SpendLimitUserScope.Builder toBuilder()
-
validate
final SpendLimitUserScope validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static SpendLimitUserScope.Builder builder()
Returns a mutable builder for constructing an instance of SpendLimitUserScope.
The following fields are required:
.userId()
-
of
final static SpendLimitUserScope of(String userId)
Returns an immutable instance of SpendLimitUserScope with the required userId set to the given value.
-
-
-
-