Class TenantCreateOrReplaceParams.Builder
- java.lang.Object
-
- com.courier.api.resources.tenants.requests.TenantCreateOrReplaceParams.Builder
-
- All Implemented Interfaces:
TenantCreateOrReplaceParams._FinalStage,TenantCreateOrReplaceParams.NameStage
- Enclosing class:
- TenantCreateOrReplaceParams
public static final class TenantCreateOrReplaceParams.Builder extends java.lang.Object implements TenantCreateOrReplaceParams.NameStage, TenantCreateOrReplaceParams._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TenantCreateOrReplaceParams._FinalStagebrandId(java.lang.String brandId)Brand to be used for the account when one is not specified by the send call.TenantCreateOrReplaceParams._FinalStagebrandId(java.util.Optional<java.lang.String> brandId)TenantCreateOrReplaceParamsbuild()TenantCreateOrReplaceParams._FinalStagedefaultPreferences(DefaultPreferences defaultPreferences)Defines the preferences used for the tenant when the user hasn't specified their own.TenantCreateOrReplaceParams._FinalStagedefaultPreferences(java.util.Optional<DefaultPreferences> defaultPreferences)TenantCreateOrReplaceParams.Builderfrom(TenantCreateOrReplaceParams other)TenantCreateOrReplaceParams._FinalStagename(java.lang.String name)Name of the tenant.TenantCreateOrReplaceParams._FinalStageparentTenantId(java.lang.String parentTenantId)Tenant's parent id (if any).TenantCreateOrReplaceParams._FinalStageparentTenantId(java.util.Optional<java.lang.String> parentTenantId)TenantCreateOrReplaceParams._FinalStageproperties(java.util.Map<java.lang.String,java.lang.Object> properties)Arbitrary properties accessible to a template.TenantCreateOrReplaceParams._FinalStageproperties(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> properties)TenantCreateOrReplaceParams._FinalStageuserProfile(java.util.Map<java.lang.String,java.lang.Object> userProfile)A user profile object merged with user profile on send.TenantCreateOrReplaceParams._FinalStageuserProfile(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> userProfile)
-
-
-
Method Detail
-
from
public TenantCreateOrReplaceParams.Builder from(TenantCreateOrReplaceParams other)
- Specified by:
fromin interfaceTenantCreateOrReplaceParams.NameStage
-
name
public TenantCreateOrReplaceParams._FinalStage name(java.lang.String name)
Name of the tenant.
- Specified by:
namein interfaceTenantCreateOrReplaceParams.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
brandId
public TenantCreateOrReplaceParams._FinalStage brandId(java.lang.String brandId)
Brand to be used for the account when one is not specified by the send call.
- Specified by:
brandIdin interfaceTenantCreateOrReplaceParams._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
brandId
public TenantCreateOrReplaceParams._FinalStage brandId(java.util.Optional<java.lang.String> brandId)
- Specified by:
brandIdin interfaceTenantCreateOrReplaceParams._FinalStage
-
userProfile
public TenantCreateOrReplaceParams._FinalStage userProfile(java.util.Map<java.lang.String,java.lang.Object> userProfile)
A user profile object merged with user profile on send.
- Specified by:
userProfilein interfaceTenantCreateOrReplaceParams._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userProfile
public TenantCreateOrReplaceParams._FinalStage userProfile(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> userProfile)
- Specified by:
userProfilein interfaceTenantCreateOrReplaceParams._FinalStage
-
properties
public TenantCreateOrReplaceParams._FinalStage properties(java.util.Map<java.lang.String,java.lang.Object> properties)
Arbitrary properties accessible to a template.
- Specified by:
propertiesin interfaceTenantCreateOrReplaceParams._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
properties
public TenantCreateOrReplaceParams._FinalStage properties(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> properties)
- Specified by:
propertiesin interfaceTenantCreateOrReplaceParams._FinalStage
-
defaultPreferences
public TenantCreateOrReplaceParams._FinalStage defaultPreferences(DefaultPreferences defaultPreferences)
Defines the preferences used for the tenant when the user hasn't specified their own.
- Specified by:
defaultPreferencesin interfaceTenantCreateOrReplaceParams._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
defaultPreferences
public TenantCreateOrReplaceParams._FinalStage defaultPreferences(java.util.Optional<DefaultPreferences> defaultPreferences)
- Specified by:
defaultPreferencesin interfaceTenantCreateOrReplaceParams._FinalStage
-
parentTenantId
public TenantCreateOrReplaceParams._FinalStage parentTenantId(java.lang.String parentTenantId)
Tenant's parent id (if any).
- Specified by:
parentTenantIdin interfaceTenantCreateOrReplaceParams._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentTenantId
public TenantCreateOrReplaceParams._FinalStage parentTenantId(java.util.Optional<java.lang.String> parentTenantId)
- Specified by:
parentTenantIdin interfaceTenantCreateOrReplaceParams._FinalStage
-
build
public TenantCreateOrReplaceParams build()
- Specified by:
buildin interfaceTenantCreateOrReplaceParams._FinalStage
-
-