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