Class CustomObjectImpl
- All Implemented Interfaces:
BaseResource
,CustomObject
,CustomObjectMixin
,DomainResource<CustomObject>
,Identifiable<CustomObject>
,Referencable<CustomObject>
,Versioned<CustomObject>
,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.Date and time (UTC) the CustomObject was initially created.Present on resources created after 1 February 2019 except for events not tracked.getId()
Unique identifier of the CustomObject.getKey()
User-defined unique identifier of the CustomObject within the definedcontainer
.Date and time (UTC) the CustomObject was last updated.Present on resources created after 1 February 2019 except for events not tracked.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
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the CustomObject was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
Unique identifier of the CustomObject.void
User-defined unique identifier of the CustomObject within the definedcontainer
.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the CustomObject was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.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.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.custom_object.CustomObject
withCustomObject
Methods inherited from interface com.commercetools.api.models.custom_object.CustomObjectMixin
toReference
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CustomObjectImpl
public CustomObjectImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the CustomObject.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceCustomObject
- Specified by:
getId
in interfaceDomainResource<CustomObject>
- Specified by:
getId
in interfaceIdentifiable<CustomObject>
- Specified by:
getId
in interfaceVersioned<CustomObject>
- Returns:
- id
-
getVersion
Current version of the CustomObject.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceCustomObject
- Specified by:
getVersion
in interfaceDomainResource<CustomObject>
- Specified by:
getVersion
in interfaceVersioned<CustomObject>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the CustomObject was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceCustomObject
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the CustomObject was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceCustomObject
- Returns:
- lastModifiedAt
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceCustomObject
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceCustomObject
- Returns:
- createdBy
-
getContainer
Namespace to group CustomObjects.
- Specified by:
getContainer
in interfaceCustomObject
- Returns:
- container
-
getKey
User-defined unique identifier of the CustomObject within the defined
container
.- Specified by:
getKey
in interfaceCustomObject
- 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 interfaceCustomObject
- Returns:
- value
-
setId
Description copied from interface:CustomObject
Unique identifier of the CustomObject.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceCustomObject
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:CustomObject
Current version of the CustomObject.
- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceCustomObject
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:CustomObject
Date and time (UTC) the CustomObject was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceCustomObject
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:CustomObject
Date and time (UTC) the CustomObject was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceCustomObject
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
Description copied from interface:CustomObject
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setLastModifiedBy
in interfaceCustomObject
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Description copied from interface:CustomObject
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceCustomObject
- Parameters:
createdBy
- value to be set
-
setContainer
Description copied from interface:CustomObject
Namespace to group CustomObjects.
- Specified by:
setContainer
in interfaceCustomObject
- Parameters:
container
- value to be set
-
setKey
Description copied from interface:CustomObject
User-defined unique identifier of the CustomObject within the defined
container
.- Specified by:
setKey
in interfaceCustomObject
- Parameters:
key
- value to be set
-
setValue
Description copied from interface:CustomObject
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 interfaceCustomObject
- Parameters:
value
- value to be set
-
equals
-
hashCode
public int hashCode()
-