Interface AssociateRoleCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create AssociateRole request.
Example to create an instance using the builder pattern
AssociateRoleCreatedMessagePayload associateRoleCreatedMessagePayload = AssociateRoleCreatedMessagePayload.builder()
.associateRole(associateRoleBuilder -> associateRoleBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AssociateRoleCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AssociateRoleCreatedMessagePayloadbuilder
(AssociateRoleCreatedMessagePayload template) create builder for AssociateRoleCreatedMessagePayload instancedeepCopy
(AssociateRoleCreatedMessagePayload template) factory method to create a deep copy of AssociateRoleCreatedMessagePayload@NotNull @Valid AssociateRole
The AssociateRole that was created.of()
factory methodof
(AssociateRoleCreatedMessagePayload template) factory method to create a shallow copy AssociateRoleCreatedMessagePayloadvoid
setAssociateRole
(AssociateRole associateRole) The AssociateRole that was created.static com.fasterxml.jackson.core.type.TypeReference<AssociateRoleCreatedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
ASSOCIATE_ROLE_CREATED
discriminator value for AssociateRoleCreatedMessagePayload- See Also:
-
-
Method Details
-
getAssociateRole
The AssociateRole that was created.
- Returns:
- associateRole
-
setAssociateRole
The AssociateRole that was created.
- Parameters:
associateRole
- value to be set
-
of
factory method- Returns:
- instance of AssociateRoleCreatedMessagePayload
-
of
factory method to create a shallow copy AssociateRoleCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static AssociateRoleCreatedMessagePayload deepCopy(@Nullable AssociateRoleCreatedMessagePayload template) factory method to create a deep copy of AssociateRoleCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRoleCreatedMessagePayload- Returns:
- builder
-
builder
static AssociateRoleCreatedMessagePayloadBuilder builder(AssociateRoleCreatedMessagePayload template) create builder for AssociateRoleCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRoleCreatedMessagePayload
default <T> T withAssociateRoleCreatedMessagePayload(Function<AssociateRoleCreatedMessagePayload, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<AssociateRoleCreatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-