Class AssociateRoleLabelBuilder
java.lang.Object
com.commercetools.history.models.label.AssociateRoleLabelBuilder
- All Implemented Interfaces:
Builder<AssociateRoleLabel>
AssociateRoleLabelBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssociateRoleLabel associateRoleLabel = AssociateRoleLabel.builder()
.key("{key}")
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AssociateRoleLabel with checking for non-null required valuesbuilds AssociateRoleLabel without checking for non-null required valuesgetKey()
User-defined unique identifier of the Associate Role.getName()
Name of the Associate Role.User-defined unique identifier of the Associate Role.Name of the Associate Role.static AssociateRoleLabelBuilder
of()
factory method for an instance of AssociateRoleLabelBuilderstatic AssociateRoleLabelBuilder
of
(AssociateRoleLabel template) create builder for AssociateRoleLabel instance
-
Constructor Details
-
AssociateRoleLabelBuilder
public AssociateRoleLabelBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the Associate Role.
- Parameters:
key
- value to be set- Returns:
- Builder
-
name
Name of the Associate Role.
- Parameters:
name
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the Associate Role.
- Returns:
- key
-
getName
Name of the Associate Role.
- Returns:
- name
-
build
builds AssociateRoleLabel with checking for non-null required values- Specified by:
build
in interfaceBuilder<AssociateRoleLabel>
- Returns:
- AssociateRoleLabel
-
buildUnchecked
builds AssociateRoleLabel without checking for non-null required values- Returns:
- AssociateRoleLabel
-
of
factory method for an instance of AssociateRoleLabelBuilder- Returns:
- builder
-
of
create builder for AssociateRoleLabel instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-