Interface ZoneReference
- All Superinterfaces:
Identifiable<Zone>
,IdentifiableObjHolder<Zone>
,Reference
,ReferenceMixin
Reference to a Zone.
Example to create an instance using the builder pattern
ZoneReference zoneReference = ZoneReference.builder()
.id("{id}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZoneReferenceBuilder
builder()
builder factory method for ZoneReferencestatic ZoneReferenceBuilder
builder
(ZoneReference template) create builder for ZoneReference instancestatic ZoneReference
deepCopy
(ZoneReference template) factory method to create a deep copy of ZoneReference@NotNull String
getId()
Unique identifier of the referenced Zone.@Valid Zone
getObj()
Contains the representation of the expanded Zone.static ZoneReference
of()
factory methodstatic ZoneReference
of
(ZoneReference template) factory method to create a shallow copy ZoneReferencevoid
Unique identifier of the referenced Zone.void
Contains the representation of the expanded Zone.static com.fasterxml.jackson.core.type.TypeReference<ZoneReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withZoneReference
(Function<ZoneReference, 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
-
ZONE
discriminator value for ZoneReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded Zone. Only present in responses to requests with Reference Expansion for Zones.
- Specified by:
getObj
in interfaceIdentifiableObjHolder<Zone>
- Returns:
- obj
-
getId
Unique identifier of the referenced Zone.
- Specified by:
getId
in interfaceIdentifiable<Zone>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
setObj
Contains the representation of the expanded Zone. Only present in responses to requests with Reference Expansion for Zones.
- Parameters:
obj
- value to be set
-
setId
Unique identifier of the referenced Zone.
-
of
factory method- Returns:
- instance of ZoneReference
-
of
factory method to create a shallow copy ZoneReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ZoneReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ZoneReference- Returns:
- builder
-
builder
create builder for ZoneReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withZoneReference
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
-