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