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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AttributeReference with checking for non-null required valuesbuilds AttributeReference without checking for non-null required valuesgetKey()
The Attribute'sname
as given in its AttributeDefinition.The Attribute'sname
as given in its AttributeDefinition.static AttributeReferenceBuilder
of()
factory method for an instance of AttributeReferenceBuilderstatic AttributeReferenceBuilder
of
(AttributeReference template) create builder for AttributeReference instance
-
Constructor Details
-
AttributeReferenceBuilder
public AttributeReferenceBuilder()
-
-
Method Details
-
key
The Attribute's
name
as given in its AttributeDefinition.- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
The Attribute's
name
as given in its AttributeDefinition.- Returns:
- key
-
build
builds AttributeReference with checking for non-null required values- Specified by:
build
in 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
-