Class AssociateRoleKeyReferenceBuilder
java.lang.Object
com.commercetools.api.models.associate_role.AssociateRoleKeyReferenceBuilder
- All Implemented Interfaces:
Builder<AssociateRoleKeyReference>
public class AssociateRoleKeyReferenceBuilder
extends Object
implements Builder<AssociateRoleKeyReference>
AssociateRoleKeyReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssociateRoleKeyReference associateRoleKeyReference = AssociateRoleKeyReference.builder()
.key("{key}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds AssociateRoleKeyReference with checking for non-null required valuesbuilds AssociateRoleKeyReference without checking for non-null required valuesgetKey()Unique and immutable key of the referenced AssociateRole.Unique and immutable key of the referenced AssociateRole.of()factory method for an instance of AssociateRoleKeyReferenceBuilderof(AssociateRoleKeyReference template) create builder for AssociateRoleKeyReference instance
-
Constructor Details
-
AssociateRoleKeyReferenceBuilder
public AssociateRoleKeyReferenceBuilder()
-
-
Method Details
-
key
Unique and immutable key of the referenced AssociateRole.
- Parameters:
key- value to be set- Returns:
- Builder
-
getKey
Unique and immutable key of the referenced AssociateRole.
- Returns:
- key
-
build
builds AssociateRoleKeyReference with checking for non-null required values- Specified by:
buildin interfaceBuilder<AssociateRoleKeyReference>- Returns:
- AssociateRoleKeyReference
-
buildUnchecked
builds AssociateRoleKeyReference without checking for non-null required values- Returns:
- AssociateRoleKeyReference
-
of
factory method for an instance of AssociateRoleKeyReferenceBuilder- Returns:
- builder
-
of
create builder for AssociateRoleKeyReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-