Class ExtensionImpl

java.lang.Object
com.commercetools.api.models.extension.ExtensionImpl
All Implemented Interfaces:
BaseResource, DomainResource<Extension>, Extension, Identifiable<Extension>, Versioned<Extension>, WithKey, io.vrap.rmf.base.client.ModelBase

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

    • ExtensionImpl

      public ExtensionImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Extension.

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

      public Long getVersion()

      Current version of the Extension.

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

      public ZonedDateTime getCreatedAt()

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

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

      public ZonedDateTime getLastModifiedAt()

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

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

      public LastModifiedBy getLastModifiedBy()

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

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

      public CreatedBy getCreatedBy()

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

      Specified by:
      getCreatedBy in interface Extension
      Returns:
      createdBy
    • getKey

      public String getKey()

      User-defined unique identifier of the Extension.

      Specified by:
      getKey in interface Extension
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getDestination

      public ExtensionDestination getDestination()

      The configuration for the Extension, including its type, location and authentication details.

      Specified by:
      getDestination in interface Extension
      Returns:
      destination
    • getTriggers

      public List<ExtensionTrigger> getTriggers()

      Describes what triggers the Extension.

      Specified by:
      getTriggers in interface Extension
      Returns:
      triggers
    • getTimeoutInMs

      public Integer getTimeoutInMs()

      Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

      Specified by:
      getTimeoutInMs in interface Extension
      Returns:
      timeoutInMs
    • setId

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

      Unique identifier of the Extension.

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

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

      Current version of the Extension.

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

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

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

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

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

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

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

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

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

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

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

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

      Specified by:
      setCreatedBy in interface Extension
      Parameters:
      createdBy - value to be set
    • setKey

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

      User-defined unique identifier of the Extension.

      Specified by:
      setKey in interface Extension
      Parameters:
      key - value to be set
    • setDestination

      public void setDestination(ExtensionDestination destination)
      Description copied from interface: Extension

      The configuration for the Extension, including its type, location and authentication details.

      Specified by:
      setDestination in interface Extension
      Parameters:
      destination - value to be set
    • setTriggers

      public void setTriggers(ExtensionTrigger... triggers)
      Description copied from interface: Extension

      Describes what triggers the Extension.

      Specified by:
      setTriggers in interface Extension
      Parameters:
      triggers - values to be set
    • setTriggers

      public void setTriggers(List<ExtensionTrigger> triggers)
      Description copied from interface: Extension

      Describes what triggers the Extension.

      Specified by:
      setTriggers in interface Extension
      Parameters:
      triggers - values to be set
    • setTimeoutInMs

      public void setTimeoutInMs(Integer timeoutInMs)
      Description copied from interface: Extension

      Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

      Specified by:
      setTimeoutInMs in interface Extension
      Parameters:
      timeoutInMs - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object