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