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