Interface ReviewReference
- All Superinterfaces:
Identifiable<Review>
,IdentifiableObjHolder<Review>
,Reference
,ReferenceMixin
public interface ReviewReference
extends Reference, Identifiable<Review>, IdentifiableObjHolder<Review>
Reference to a Review.
Example to create an instance using the builder pattern
ReviewReference reviewReference = ReviewReference.builder()
.id("{id}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReviewReferenceBuilder
builder()
builder factory method for ReviewReferencestatic ReviewReferenceBuilder
builder
(ReviewReference template) create builder for ReviewReference instancestatic ReviewReference
deepCopy
(ReviewReference template) factory method to create a deep copy of ReviewReference@NotNull String
getId()
Unique identifier of the referenced Review.@Valid Review
getObj()
Contains the representation of the expanded Review.static ReviewReference
of()
factory methodstatic ReviewReference
of
(ReviewReference template) factory method to create a shallow copy ReviewReferencevoid
Unique identifier of the referenced Review.void
Contains the representation of the expanded Review.static com.fasterxml.jackson.core.type.TypeReference<ReviewReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withReviewReference
(Function<ReviewReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
Methods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
REVIEW
discriminator value for ReviewReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded Review. Only present in responses to requests with Reference Expansion for Reviews.
- Specified by:
getObj
in interfaceIdentifiableObjHolder<Review>
- Returns:
- obj
-
getId
Unique identifier of the referenced Review.
- Specified by:
getId
in interfaceIdentifiable<Review>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
setObj
Contains the representation of the expanded Review. Only present in responses to requests with Reference Expansion for Reviews.
- Parameters:
obj
- value to be set
-
setId
Unique identifier of the referenced Review.
-
of
factory method- Returns:
- instance of ReviewReference
-
of
factory method to create a shallow copy ReviewReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReviewReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReviewReference- Returns:
- builder
-
builder
create builder for ReviewReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReviewReference
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
-