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