Class CustomObjectDraftImpl
- All Implemented Interfaces:
CustomObjectDraft
,io.vrap.rmf.base.client.Draft<CustomObjectDraft>
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Namespace to group CustomObjects.getKey()
User-defined unique identifier of the CustomObject within the definedcontainer
.getValue()
JSON standard types Number, String, Boolean, Array, Object, and common API data types.Current version of the CustomObject.int
hashCode()
void
setContainer
(String container) Namespace to group CustomObjects.void
User-defined unique identifier of the CustomObject within the definedcontainer
.void
JSON standard types Number, String, Boolean, Array, Object, and common API data types.void
setVersion
(Long version) Current version of the 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.CustomObjectDraft
withCustomObjectDraft
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CustomObjectDraftImpl
public CustomObjectDraftImpl()create empty instance
-
-
Method Details
-
getContainer
Namespace to group CustomObjects.
- Specified by:
getContainer
in interfaceCustomObjectDraft
- Returns:
- container
-
getKey
User-defined unique identifier of the CustomObject within the defined
container
.- Specified by:
getKey
in interfaceCustomObjectDraft
- Returns:
- key
-
getValue
JSON standard types Number, String, Boolean, Array, Object, and common API data types. For values of type Reference the integrity of the data is not guaranteed. If the referenced object is deleted, the API does not delete the corresponding reference to it and the
value
points to a non-existing object in such case.- Specified by:
getValue
in interfaceCustomObjectDraft
- Returns:
- value
-
getVersion
Current version of the CustomObject.
- Specified by:
getVersion
in interfaceCustomObjectDraft
- Returns:
- version
-
setContainer
Description copied from interface:CustomObjectDraft
Namespace to group CustomObjects.
- Specified by:
setContainer
in interfaceCustomObjectDraft
- Parameters:
container
- value to be set
-
setKey
Description copied from interface:CustomObjectDraft
User-defined unique identifier of the CustomObject within the defined
container
.- Specified by:
setKey
in interfaceCustomObjectDraft
- Parameters:
key
- value to be set
-
setValue
Description copied from interface:CustomObjectDraft
JSON standard types Number, String, Boolean, Array, Object, and common API data types. For values of type Reference the integrity of the data is not guaranteed. If the referenced object is deleted, the API does not delete the corresponding reference to it and the
value
points to a non-existing object in such case.- Specified by:
setValue
in interfaceCustomObjectDraft
- Parameters:
value
- value to be set
-
setVersion
Description copied from interface:CustomObjectDraft
Current version of the CustomObject.
- Specified by:
setVersion
in interfaceCustomObjectDraft
- Parameters:
version
- value to be set
-
equals
-
hashCode
-