Class CustomObjectImpl

java.lang.Object
com.commercetools.api.models.custom_object.CustomObjectImpl
All Implemented Interfaces:
BaseResource, CustomObject, CustomObjectMixin, DomainResource<CustomObject>, Identifiable<CustomObject>, Referencable<CustomObject>, Versioned<CustomObject>, io.vrap.rmf.base.client.ModelBase

public class CustomObjectImpl extends Object implements CustomObject, io.vrap.rmf.base.client.ModelBase
CustomObject
  • Constructor Details

    • CustomObjectImpl

      public CustomObjectImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the CustomObject.

      Specified by:
      getId in interface BaseResource
      Specified by:
      getId in interface CustomObject
      Specified by:
      getId in interface DomainResource<CustomObject>
      Specified by:
      getId in interface Identifiable<CustomObject>
      Specified by:
      getId in interface Versioned<CustomObject>
      Returns:
      id
    • getVersion

      public Long getVersion()

      Current version of the CustomObject.

      Specified by:
      getVersion in interface BaseResource
      Specified by:
      getVersion in interface CustomObject
      Specified by:
      getVersion in interface DomainResource<CustomObject>
      Specified by:
      getVersion in interface Versioned<CustomObject>
      Returns:
      version
    • getCreatedAt

      public ZonedDateTime getCreatedAt()

      Date and time (UTC) the CustomObject was initially created.

      Specified by:
      getCreatedAt in interface BaseResource
      Specified by:
      getCreatedAt in interface CustomObject
      Returns:
      createdAt
    • getLastModifiedAt

      public ZonedDateTime getLastModifiedAt()

      Date and time (UTC) the CustomObject was last updated.

      Specified by:
      getLastModifiedAt in interface BaseResource
      Specified by:
      getLastModifiedAt in interface CustomObject
      Returns:
      lastModifiedAt
    • getLastModifiedBy

      public LastModifiedBy getLastModifiedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getLastModifiedBy in interface CustomObject
      Returns:
      lastModifiedBy
    • getCreatedBy

      public CreatedBy getCreatedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getCreatedBy in interface CustomObject
      Returns:
      createdBy
    • getContainer

      public String getContainer()

      Namespace to group CustomObjects.

      Specified by:
      getContainer in interface CustomObject
      Returns:
      container
    • getKey

      public String getKey()

      User-defined unique identifier of the CustomObject within the defined container.

      Specified by:
      getKey in interface CustomObject
      Returns:
      key
    • getValue

      public Object 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 interface CustomObject
      Returns:
      value
    • setId

      public void setId(String id)
      Description copied from interface: CustomObject

      Unique identifier of the CustomObject.

      Specified by:
      setId in interface BaseResource
      Specified by:
      setId in interface CustomObject
      Parameters:
      id - value to be set
    • setVersion

      public void setVersion(Long version)
      Description copied from interface: CustomObject

      Current version of the CustomObject.

      Specified by:
      setVersion in interface BaseResource
      Specified by:
      setVersion in interface CustomObject
      Parameters:
      version - value to be set
    • setCreatedAt

      public void setCreatedAt(ZonedDateTime createdAt)
      Description copied from interface: CustomObject

      Date and time (UTC) the CustomObject was initially created.

      Specified by:
      setCreatedAt in interface BaseResource
      Specified by:
      setCreatedAt in interface CustomObject
      Parameters:
      createdAt - value to be set
    • setLastModifiedAt

      public void setLastModifiedAt(ZonedDateTime lastModifiedAt)
      Description copied from interface: CustomObject

      Date and time (UTC) the CustomObject was last updated.

      Specified by:
      setLastModifiedAt in interface BaseResource
      Specified by:
      setLastModifiedAt in interface CustomObject
      Parameters:
      lastModifiedAt - value to be set
    • setLastModifiedBy

      public void setLastModifiedBy(LastModifiedBy lastModifiedBy)
      Description copied from interface: CustomObject

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setLastModifiedBy in interface CustomObject
      Parameters:
      lastModifiedBy - value to be set
    • setCreatedBy

      public void setCreatedBy(CreatedBy createdBy)
      Description copied from interface: CustomObject

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setCreatedBy in interface CustomObject
      Parameters:
      createdBy - value to be set
    • setContainer

      public void setContainer(String container)
      Description copied from interface: CustomObject

      Namespace to group CustomObjects.

      Specified by:
      setContainer in interface CustomObject
      Parameters:
      container - value to be set
    • setKey

      public void setKey(String key)
      Description copied from interface: CustomObject

      User-defined unique identifier of the CustomObject within the defined container.

      Specified by:
      setKey in interface CustomObject
      Parameters:
      key - value to be set
    • setValue

      public void setValue(Object value)
      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 interface CustomObject
      Parameters:
      value - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object