Interface AssociateRole
- All Superinterfaces:
BaseResource,Identifiable<AssociateRole>
Example to create an instance using the builder pattern
AssociateRole associateRole = AssociateRole.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.key("{key}")
.buyerAssignable(true)
.plusPermissions(permissionsBuilder -> permissionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssociateRoleBuilderbuilder()builder factory method for AssociateRolestatic AssociateRoleBuilderbuilder(AssociateRole template) create builder for AssociateRole instancecopyDeep()static AssociateRoledeepCopy(AssociateRole template) factory method to create a deep copy of AssociateRole@NotNull BooleanWhether the AssociateRole can be assigned to an Associate by a buyer.@NotNull ZonedDateTimeDate and time (UTC) the AssociateRole was initially created.@Valid CreatedByIDs and references that created the AssociateRole.@Valid CustomFieldsCustom Fields for the AssociateRole.@NotNull StringgetId()Unique identifier of the AssociateRole.@NotNull StringgetKey()User-defined unique and immutable identifier of the AssociateRole.@NotNull ZonedDateTimeDate and time (UTC) the AssociateRole was last updated.@Valid LastModifiedByIDs and references that last modified the AssociateRole.getName()Name of the AssociateRole.@NotNull List<Permission>List of Permissions for the AssociateRole.@NotNull LongCurrent version of the AssociateRole.static AssociateRoleof()factory methodstatic AssociateRoleof(AssociateRole template) factory method to create a shallow copy AssociateRolevoidsetBuyerAssignable(Boolean buyerAssignable) Whether the AssociateRole can be assigned to an Associate by a buyer.voidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the AssociateRole was initially created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the AssociateRole.voidsetCustom(CustomFields custom) Custom Fields for the AssociateRole.voidUnique identifier of the AssociateRole.voidUser-defined unique and immutable identifier of the AssociateRole.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the AssociateRole was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the AssociateRole.voidName of the AssociateRole.voidsetPermissions(Permission... permissions) List of Permissions for the AssociateRole.voidsetPermissions(List<Permission> permissions) List of Permissions for the AssociateRole.voidsetVersion(Long version) Current version of the AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRole>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAssociateRole(Function<AssociateRole, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
-
Method Details
-
getId
Unique identifier of the AssociateRole.
- Specified by:
getIdin interfaceBaseResource- Specified by:
getIdin interfaceIdentifiable<AssociateRole>- Returns:
- id
-
getVersion
Current version of the AssociateRole.
- Specified by:
getVersionin interfaceBaseResource- Returns:
- version
-
getCreatedAt
Date and time (UTC) the AssociateRole was initially created.
- Specified by:
getCreatedAtin interfaceBaseResource- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the AssociateRole was last updated.
- Specified by:
getLastModifiedAtin interfaceBaseResource- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the AssociateRole.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the AssociateRole.
- Returns:
- createdBy
-
getKey
User-defined unique and immutable identifier of the AssociateRole.
- Returns:
- key
-
getBuyerAssignable
Whether the AssociateRole can be assigned to an Associate by a buyer. If false, the AssociateRole can only be assigned using the general endpoint.
- Returns:
- buyerAssignable
-
getName
String getName()Name of the AssociateRole.
- Returns:
- name
-
getPermissions
List of Permissions for the AssociateRole.
- Returns:
- permissions
-
getCustom
Custom Fields for the AssociateRole.
- Returns:
- custom
-
setId
Unique identifier of the AssociateRole.
- Specified by:
setIdin interfaceBaseResource- Parameters:
id- value to be set
-
setVersion
Current version of the AssociateRole.
- Specified by:
setVersionin interfaceBaseResource- Parameters:
version- value to be set
-
setCreatedAt
Date and time (UTC) the AssociateRole was initially created.
- Specified by:
setCreatedAtin interfaceBaseResource- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) the AssociateRole was last updated.
- Specified by:
setLastModifiedAtin interfaceBaseResource- Parameters:
lastModifiedAt- value to be set
-
setLastModifiedBy
IDs and references that last modified the AssociateRole.
- Parameters:
lastModifiedBy- value to be set
-
setCreatedBy
IDs and references that created the AssociateRole.
- Parameters:
createdBy- value to be set
-
setKey
User-defined unique and immutable identifier of the AssociateRole.
- Parameters:
key- value to be set
-
setBuyerAssignable
Whether the AssociateRole can be assigned to an Associate by a buyer. If false, the AssociateRole can only be assigned using the general endpoint.
- Parameters:
buyerAssignable- value to be set
-
setName
Name of the AssociateRole.
- Parameters:
name- value to be set
-
setPermissions
List of Permissions for the AssociateRole.
- Parameters:
permissions- values to be set
-
setPermissions
List of Permissions for the AssociateRole.
- Parameters:
permissions- values to be set
-
setCustom
Custom Fields for the AssociateRole.
- Parameters:
custom- value to be set
-
of
factory method- Returns:
- instance of AssociateRole
-
of
factory method to create a shallow copy AssociateRole- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AssociateRole copyDeep()- Specified by:
copyDeepin interfaceBaseResource
-
deepCopy
factory method to create a deep copy of AssociateRole- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRole- Returns:
- builder
-
builder
create builder for AssociateRole instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRole
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-