Class CustomObjectReferenceImpl
java.lang.Object
com.commercetools.api.models.custom_object.CustomObjectReferenceImpl
- All Implemented Interfaces:
Reference
,ReferenceMixin
,CustomObjectReference
,Identifiable<CustomObject>
,io.vrap.rmf.base.client.ModelBase
public class CustomObjectReferenceImpl
extends Object
implements CustomObjectReference, io.vrap.rmf.base.client.ModelBase
Reference to a CustomObject.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.custom_object.CustomObjectReference
KEY_VALUE_DOCUMENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Unique identifier of the referenced CustomObject.getObj()
Contains the representation of the expanded CustomObject.Type of referenced resource.int
hashCode()
void
Unique identifier of the referenced CustomObject.void
setObj
(CustomObject obj) Contains the representation of the expanded CustomObject.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.custom_object.CustomObjectReference
withCustomObjectReference
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.common.Reference
withReference
Methods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Constructor Details
-
CustomObjectReferenceImpl
public CustomObjectReferenceImpl()create empty instance
-
-
Method Details
-
getTypeId
Type of referenced resource.
- Specified by:
getTypeId
in interfaceReference
- Specified by:
getTypeId
in interfaceReferenceMixin
- Returns:
- typeId
-
getId
Unique identifier of the referenced CustomObject.
- Specified by:
getId
in interfaceCustomObjectReference
- Specified by:
getId
in interfaceIdentifiable<CustomObject>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
getObj
Contains the representation of the expanded CustomObject. Only present in responses to requests with Reference Expansion for CustomObjects.
- Specified by:
getObj
in interfaceCustomObjectReference
- Returns:
- obj
-
setId
Description copied from interface:CustomObjectReference
Unique identifier of the referenced CustomObject.
- Specified by:
setId
in interfaceCustomObjectReference
- Specified by:
setId
in interfaceReference
- Parameters:
id
- value to be set
-
setObj
Description copied from interface:CustomObjectReference
Contains the representation of the expanded CustomObject. Only present in responses to requests with Reference Expansion for CustomObjects.
- Specified by:
setObj
in interfaceCustomObjectReference
- Parameters:
obj
- value to be set
-
equals
-
hashCode
public int hashCode()
-