Class AttributeTypeBuilder
java.lang.Object
com.commercetools.history.models.common.AttributeTypeBuilder
- All Implemented Interfaces:
Builder<AttributeType>
AttributeTypeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeType attributeType = AttributeType.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AttributeType with checking for non-null required valuesbuilds AttributeType without checking for non-null required valuesgetName()
value of name}set the value to the namestatic AttributeTypeBuilder
of()
factory method for an instance of AttributeTypeBuilderstatic AttributeTypeBuilder
of
(AttributeType template) create builder for AttributeType instance
-
Constructor Details
-
AttributeTypeBuilder
public AttributeTypeBuilder()
-
-
Method Details
-
name
set the value to the name- Parameters:
name
- value to be set- Returns:
- Builder
-
getName
value of name}- Returns:
- name
-
build
builds AttributeType with checking for non-null required values- Specified by:
build
in interfaceBuilder<AttributeType>
- Returns:
- AttributeType
-
buildUnchecked
builds AttributeType without checking for non-null required values- Returns:
- AttributeType
-
of
factory method for an instance of AttributeTypeBuilder- Returns:
- builder
-
of
create builder for AttributeType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-