Interface ProductTailoringResourceIdentifier
- All Superinterfaces:
ResourceIdentifier
,WithKey
ResourceIdentifier to a ProductTailoring.
Example to create an instance using the builder pattern
ProductTailoringResourceIdentifier productTailoringResourceIdentifier = ProductTailoringResourceIdentifier.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTailoringResourceIdentifier -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTailoringResourceIdentifierbuilder
(ProductTailoringResourceIdentifier template) create builder for ProductTailoringResourceIdentifier instancedeepCopy
(ProductTailoringResourceIdentifier template) factory method to create a deep copy of ProductTailoringResourceIdentifiergetId()
Unique identifier of the referenced ProductTailoring.getKey()
User-defined unique identifier of the referenced ProductTailoring.of()
factory methodof
(ProductTailoringResourceIdentifier template) factory method to create a shallow copy ProductTailoringResourceIdentifiervoid
Unique identifier of the referenced ProductTailoring.void
User-defined unique identifier of the referenced ProductTailoring.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringResourceIdentifier>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.ResourceIdentifier
getTypeId, withResourceIdentifier
-
Field Details
-
PRODUCT_TAILORING
discriminator value for ProductTailoringResourceIdentifier- See Also:
-
-
Method Details
-
getId
String getId()Unique identifier of the referenced ProductTailoring. Either
id
orkey
is required.- Specified by:
getId
in interfaceResourceIdentifier
- Returns:
- id
-
getKey
String getKey()User-defined unique identifier of the referenced ProductTailoring. Either
id
orkey
is required.- Specified by:
getKey
in interfaceResourceIdentifier
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setId
Unique identifier of the referenced ProductTailoring. Either
id
orkey
is required.- Specified by:
setId
in interfaceResourceIdentifier
- Parameters:
id
- value to be set
-
setKey
User-defined unique identifier of the referenced ProductTailoring. Either
id
orkey
is required.- Specified by:
setKey
in interfaceResourceIdentifier
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of ProductTailoringResourceIdentifier
-
of
factory method to create a shallow copy ProductTailoringResourceIdentifier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTailoringResourceIdentifier deepCopy(@Nullable ProductTailoringResourceIdentifier template) factory method to create a deep copy of ProductTailoringResourceIdentifier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringResourceIdentifier- Returns:
- builder
-
builder
static ProductTailoringResourceIdentifierBuilder builder(ProductTailoringResourceIdentifier template) create builder for ProductTailoringResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringResourceIdentifier
default <T> T withProductTailoringResourceIdentifier(Function<ProductTailoringResourceIdentifier, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringResourceIdentifier> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-