Class CustomObjectDraftImpl

java.lang.Object
com.commercetools.api.models.custom_object.CustomObjectDraftImpl
All Implemented Interfaces:
CustomObjectDraft, io.vrap.rmf.base.client.Draft<CustomObjectDraft>, io.vrap.rmf.base.client.ModelBase

public class CustomObjectDraftImpl extends Object implements CustomObjectDraft, io.vrap.rmf.base.client.ModelBase
CustomObjectDraft
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Namespace to group CustomObjects.
    User-defined unique identifier of the CustomObject within the defined container.
    JSON standard types Number, String, Boolean, Array, Object, and common API data types.
    Current version of the CustomObject.
    int
     
    void
    setContainer(String container)
    Namespace to group CustomObjects.
    void
    User-defined unique identifier of the CustomObject within the defined container.
    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

      public String getContainer()

      Namespace to group CustomObjects.

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

      public String getKey()

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

      Specified by:
      getKey in interface CustomObjectDraft
      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 CustomObjectDraft
      Returns:
      value
    • getVersion

      public Long getVersion()

      Current version of the CustomObject.

      Specified by:
      getVersion in interface CustomObjectDraft
      Returns:
      version
    • setContainer

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

      Namespace to group CustomObjects.

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

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

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

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

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

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

      Current version of the CustomObject.

      Specified by:
      setVersion in interface CustomObjectDraft
      Parameters:
      version - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object