Class UserTenantAssociation.Builder
- java.lang.Object
-
- com.courier.api.resources.commons.types.UserTenantAssociation.Builder
-
- All Implemented Interfaces:
UserTenantAssociation._FinalStage,UserTenantAssociation.TenantIdStage
- Enclosing class:
- UserTenantAssociation
public static final class UserTenantAssociation.Builder extends java.lang.Object implements UserTenantAssociation.TenantIdStage, UserTenantAssociation._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserTenantAssociationbuild()UserTenantAssociation.Builderfrom(UserTenantAssociation other)UserTenantAssociation._FinalStageprofile(java.util.Map<java.lang.String,java.lang.Object> profile)Additional metadata to be applied to a user profile when used in a tenant contextUserTenantAssociation._FinalStageprofile(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> profile)UserTenantAssociation._FinalStagetenantId(java.lang.String tenantId)Tenant ID for the assocation between tenant and userUserTenantAssociation._FinalStagetype(java.lang.String type)UserTenantAssociation._FinalStagetype(java.util.Optional<java.lang.String> type)UserTenantAssociation._FinalStageuserId(java.lang.String userId)User ID for the assocation between tenant and userUserTenantAssociation._FinalStageuserId(java.util.Optional<java.lang.String> userId)
-
-
-
Method Detail
-
from
public UserTenantAssociation.Builder from(UserTenantAssociation other)
- Specified by:
fromin interfaceUserTenantAssociation.TenantIdStage
-
tenantId
public UserTenantAssociation._FinalStage tenantId(java.lang.String tenantId)
Tenant ID for the assocation between tenant and user
- Specified by:
tenantIdin interfaceUserTenantAssociation.TenantIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
profile
public UserTenantAssociation._FinalStage profile(java.util.Map<java.lang.String,java.lang.Object> profile)
Additional metadata to be applied to a user profile when used in a tenant context
- Specified by:
profilein interfaceUserTenantAssociation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
profile
public UserTenantAssociation._FinalStage profile(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> profile)
- Specified by:
profilein interfaceUserTenantAssociation._FinalStage
-
type
public UserTenantAssociation._FinalStage type(java.lang.String type)
- Specified by:
typein interfaceUserTenantAssociation._FinalStage
-
type
public UserTenantAssociation._FinalStage type(java.util.Optional<java.lang.String> type)
- Specified by:
typein interfaceUserTenantAssociation._FinalStage
-
userId
public UserTenantAssociation._FinalStage userId(java.lang.String userId)
User ID for the assocation between tenant and user
- Specified by:
userIdin interfaceUserTenantAssociation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userId
public UserTenantAssociation._FinalStage userId(java.util.Optional<java.lang.String> userId)
- Specified by:
userIdin interfaceUserTenantAssociation._FinalStage
-
build
public UserTenantAssociation build()
- Specified by:
buildin interfaceUserTenantAssociation._FinalStage
-
-