Class Tenant
-
- All Implemented Interfaces:
public final class Tenant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTenant.BuilderA builder for Tenant.
public final classTenant.PropertiesArbitrary properties accessible to a template.
public final classTenant.UserProfileA user profile object merged with user profile on send.
-
Method Summary
Modifier and Type Method Description final Stringid()Id of the tenant. final Stringname()Name of the tenant. final Optional<String>brandId()Brand to be used for the account when one is not specified by the send call. final Optional<DefaultPreferences>defaultPreferences()Defines the preferences used for the account when the user hasn't specified their own. final Optional<String>parentTenantId()Tenant's parent id (if any). final Optional<Tenant.Properties>properties()Arbitrary properties accessible to a template. final Optional<Tenant.UserProfile>userProfile()A user profile object merged with user profile on send. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_brandId()Returns the raw JSON value of brandId. final JsonField<DefaultPreferences>_defaultPreferences()Returns the raw JSON value of defaultPreferences. final JsonField<String>_parentTenantId()Returns the raw JSON value of parentTenantId. final JsonField<Tenant.Properties>_properties()Returns the raw JSON value of properties. final JsonField<Tenant.UserProfile>_userProfile()Returns the raw JSON value of userProfile. final Map<String, JsonValue>_additionalProperties()final Tenant.BuildertoBuilder()final Tenantvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Tenant.Builderbuilder()Returns a mutable builder for constructing an instance of Tenant. -
-
Method Detail
-
brandId
final Optional<String> brandId()
Brand to be used for the account when one is not specified by the send call.
-
defaultPreferences
final Optional<DefaultPreferences> defaultPreferences()
Defines the preferences used for the account when the user hasn't specified their own.
-
parentTenantId
final Optional<String> parentTenantId()
Tenant's parent id (if any).
-
properties
final Optional<Tenant.Properties> properties()
Arbitrary properties accessible to a template.
-
userProfile
final Optional<Tenant.UserProfile> userProfile()
A user profile object merged with user profile on send.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_brandId
final JsonField<String> _brandId()
Returns the raw JSON value of brandId.
Unlike brandId, this method doesn't throw if the JSON field has an unexpected type.
-
_defaultPreferences
final JsonField<DefaultPreferences> _defaultPreferences()
Returns the raw JSON value of defaultPreferences.
Unlike defaultPreferences, this method doesn't throw if the JSON field has an unexpected type.
-
_parentTenantId
final JsonField<String> _parentTenantId()
Returns the raw JSON value of parentTenantId.
Unlike parentTenantId, this method doesn't throw if the JSON field has an unexpected type.
-
_properties
final JsonField<Tenant.Properties> _properties()
Returns the raw JSON value of properties.
Unlike properties, this method doesn't throw if the JSON field has an unexpected type.
-
_userProfile
final JsonField<Tenant.UserProfile> _userProfile()
Returns the raw JSON value of userProfile.
Unlike userProfile, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Tenant.Builder toBuilder()
-
validate
final Tenant 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 Tenant.Builder builder()
Returns a mutable builder for constructing an instance of Tenant.
The following fields are required:
.id() .name()
-
-
-
-