Class AttributeReferenceBuilder
java.lang.Object
com.commercetools.api.models.attribute_group.AttributeReferenceBuilder
- All Implemented Interfaces:
Builder<AttributeReference>
AttributeReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeReference attributeReference = AttributeReference.builder()
.key("{key}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds AttributeReference with checking for non-null required valuesbuilds AttributeReference without checking for non-null required valuesgetKey()The Attribute'snameas given in its AttributeDefinition.The Attribute'snameas given in its AttributeDefinition.static AttributeReferenceBuilderof()factory method for an instance of AttributeReferenceBuilderstatic AttributeReferenceBuilderof(AttributeReference template) create builder for AttributeReference instance
-
Constructor Details
-
AttributeReferenceBuilder
public AttributeReferenceBuilder()
-
-
Method Details
-
key
The Attribute's
nameas given in its AttributeDefinition.- Parameters:
key- value to be set- Returns:
- Builder
-
getKey
The Attribute's
nameas given in its AttributeDefinition.- Returns:
- key
-
build
builds AttributeReference with checking for non-null required values- Specified by:
buildin interfaceBuilder<AttributeReference>- Returns:
- AttributeReference
-
buildUnchecked
builds AttributeReference without checking for non-null required values- Returns:
- AttributeReference
-
of
factory method for an instance of AttributeReferenceBuilder- Returns:
- builder
-
of
create builder for AttributeReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-