Interface ReviewResourceIdentifier
- All Superinterfaces:
Identifiable<Review>
,ResourceIdentifier
,WithKey
- All Known Implementing Classes:
ReviewResourceIdentifierImpl
ResourceIdentifier to a Review.
Example to create an instance using the builder pattern
ReviewResourceIdentifier reviewResourceIdentifier = ReviewResourceIdentifier.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ReviewResourceIdentifierbuilder
(ReviewResourceIdentifier template) create builder for ReviewResourceIdentifier instancestatic ReviewResourceIdentifier
deepCopy
(ReviewResourceIdentifier template) factory method to create a deep copy of ReviewResourceIdentifiergetId()
Unique identifier of the referenced Review.getKey()
User-defined unique identifier of the referenced Review.static ReviewResourceIdentifier
of()
factory methodstatic ReviewResourceIdentifier
of
(ReviewResourceIdentifier template) factory method to create a shallow copy ReviewResourceIdentifiervoid
Unique identifier of the referenced Review.void
User-defined unique identifier of the referenced Review.static com.fasterxml.jackson.core.type.TypeReference<ReviewResourceIdentifier>
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
-
REVIEW
discriminator value for ReviewResourceIdentifier- See Also:
-
-
Method Details
-
getId
String getId()Unique identifier of the referenced Review. Either
id
orkey
is required.- Specified by:
getId
in interfaceIdentifiable<Review>
- Specified by:
getId
in interfaceResourceIdentifier
- Returns:
- id
-
getKey
String getKey()User-defined unique identifier of the referenced Review. Either
id
orkey
is required.- Specified by:
getKey
in interfaceResourceIdentifier
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setId
Unique identifier of the referenced Review. Either
id
orkey
is required.- Specified by:
setId
in interfaceResourceIdentifier
- Parameters:
id
- value to be set
-
setKey
User-defined unique identifier of the referenced Review. Either
id
orkey
is required.- Specified by:
setKey
in interfaceResourceIdentifier
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of ReviewResourceIdentifier
-
of
factory method to create a shallow copy ReviewResourceIdentifier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReviewResourceIdentifier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReviewResourceIdentifier- Returns:
- builder
-
builder
create builder for ReviewResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReviewResourceIdentifier
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-