Class AssociateRoleResourceIdentifierBuilder
java.lang.Object
com.commercetools.api.models.associate_role.AssociateRoleResourceIdentifierBuilder
- All Implemented Interfaces:
Builder<AssociateRoleResourceIdentifier>
public class AssociateRoleResourceIdentifierBuilder
extends Object
implements Builder<AssociateRoleResourceIdentifier>
AssociateRoleResourceIdentifierBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssociateRoleResourceIdentifier associateRoleResourceIdentifier = AssociateRoleResourceIdentifier.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AssociateRoleResourceIdentifier with checking for non-null required valuesbuilds AssociateRoleResourceIdentifier without checking for non-null required valuesgetId()
Unique identifier of the referenced AssociateRole.getKey()
Unique key of the referenced AssociateRole.Unique identifier of the referenced AssociateRole.Unique key of the referenced AssociateRole.of()
factory method for an instance of AssociateRoleResourceIdentifierBuilderof
(AssociateRoleResourceIdentifier template) create builder for AssociateRoleResourceIdentifier instance
-
Constructor Details
-
AssociateRoleResourceIdentifierBuilder
public AssociateRoleResourceIdentifierBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced AssociateRole. Required if
key
is absent.- Parameters:
id
- value to be set- Returns:
- Builder
-
key
Unique key of the referenced AssociateRole. Required if
id
is absent.- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced AssociateRole. Required if
key
is absent.- Returns:
- id
-
getKey
Unique key of the referenced AssociateRole. Required if
id
is absent.- Returns:
- key
-
build
builds AssociateRoleResourceIdentifier with checking for non-null required values- Specified by:
build
in interfaceBuilder<AssociateRoleResourceIdentifier>
- Returns:
- AssociateRoleResourceIdentifier
-
buildUnchecked
builds AssociateRoleResourceIdentifier without checking for non-null required values- Returns:
- AssociateRoleResourceIdentifier
-
of
factory method for an instance of AssociateRoleResourceIdentifierBuilder- Returns:
- builder
-
of
create builder for AssociateRoleResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-