Class AssociateRoleKeyReferenceBuilder
java.lang.Object
com.commercetools.importapi.models.common.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()
User-defined unique identifier of the referenced Type.User-defined unique identifier of the referenced Type.of()
factory method for an instance of AssociateRoleKeyReferenceBuilderof
(AssociateRoleKeyReference template) create builder for AssociateRoleKeyReference instance
-
Constructor Details
-
AssociateRoleKeyReferenceBuilder
public AssociateRoleKeyReferenceBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the referenced Type.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the referenced Type.
- Returns:
- key
-
build
builds AssociateRoleKeyReference with checking for non-null required values- Specified by:
build
in 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
-