Class ProjectImpl

java.lang.Object
com.commercetools.api.models.project.ProjectImpl
All Implemented Interfaces:
Project, WithKey, io.vrap.rmf.base.client.ModelBase

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

    • ProjectImpl

      public ProjectImpl()
      create empty instance
  • Method Details

    • getVersion

      public Long getVersion()

      Current version of the Project.

      Specified by:
      getVersion in interface Project
      Returns:
      version
    • getKey

      public String getKey()

      User-defined unique identifier of the Project.

      Specified by:
      getKey in interface Project
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getName

      public String getName()

      Name of the Project.

      Specified by:
      getName in interface Project
      Returns:
      name
    • getCountries

      public List<String> getCountries()

      Country code of the geographic location.

      Specified by:
      getCountries in interface Project
      Returns:
      countries
    • getCurrencies

      public List<String> getCurrencies()

      Currency code of the country. A Project must have at least one currency.

      Specified by:
      getCurrencies in interface Project
      Returns:
      currencies
    • getLanguages

      public List<String> getLanguages()

      Language of the country. A Project must have at least one language.

      Specified by:
      getLanguages in interface Project
      Returns:
      languages
    • getCreatedAt

      public ZonedDateTime getCreatedAt()

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

      Specified by:
      getCreatedAt in interface Project
      Returns:
      createdAt
    • getTrialUntil

      public String getTrialUntil()

      Date in YYYY-MM format specifying when the trial period for the Project ends. Only present on Projects in trial period.

      Specified by:
      getTrialUntil in interface Project
      Returns:
      trialUntil
    • getMessages

      public MessagesConfiguration getMessages()

      Holds the configuration for the Messages Query feature.

      Specified by:
      getMessages in interface Project
      Returns:
      messages
    • getCarts

      public CartsConfiguration getCarts()

      Holds the configuration for the Carts feature.

      Specified by:
      getCarts in interface Project
      Returns:
      carts
    • getShoppingLists

      public ShoppingListsConfiguration getShoppingLists()

      Holds the configuration for the Shopping Lists feature. This field may not be present on Projects created before January 2020.

      Specified by:
      getShoppingLists in interface Project
      Returns:
      shoppingLists
    • getShippingRateInputType

      public ShippingRateInputType getShippingRateInputType()

      Holds the configuration for the tiered shipping rates feature.

      Specified by:
      getShippingRateInputType in interface Project
      Returns:
      shippingRateInputType
    • getExternalOAuth

      public ExternalOAuth getExternalOAuth()

      Represents a RFC 7662 compliant OAuth 2.0 Token Introspection endpoint.

      Specified by:
      getExternalOAuth in interface Project
      Returns:
      externalOAuth
    • getSearchIndexing

      public SearchIndexingConfiguration getSearchIndexing()

      Controls indexing of resources to be provided on high performance read-only search endpoints.

      Specified by:
      getSearchIndexing in interface Project
      Returns:
      searchIndexing
    • getBusinessUnits

      public BusinessUnitConfiguration getBusinessUnits()

      Holds configuration specific to Business Units.

      Specified by:
      getBusinessUnits in interface Project
      Returns:
      businessUnits
    • setVersion

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

      Current version of the Project.

      Specified by:
      setVersion in interface Project
      Parameters:
      version - value to be set
    • setKey

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

      User-defined unique identifier of the Project.

      Specified by:
      setKey in interface Project
      Parameters:
      key - value to be set
    • setName

      public void setName(String name)
      Description copied from interface: Project

      Name of the Project.

      Specified by:
      setName in interface Project
      Parameters:
      name - value to be set
    • setCountries

      public void setCountries(String... countries)
      Description copied from interface: Project

      Country code of the geographic location.

      Specified by:
      setCountries in interface Project
      Parameters:
      countries - values to be set
    • setCountries

      public void setCountries(List<String> countries)
      Description copied from interface: Project

      Country code of the geographic location.

      Specified by:
      setCountries in interface Project
      Parameters:
      countries - values to be set
    • setCurrencies

      public void setCurrencies(String... currencies)
      Description copied from interface: Project

      Currency code of the country. A Project must have at least one currency.

      Specified by:
      setCurrencies in interface Project
      Parameters:
      currencies - values to be set
    • setCurrencies

      public void setCurrencies(List<String> currencies)
      Description copied from interface: Project

      Currency code of the country. A Project must have at least one currency.

      Specified by:
      setCurrencies in interface Project
      Parameters:
      currencies - values to be set
    • setLanguages

      public void setLanguages(String... languages)
      Description copied from interface: Project

      Language of the country. A Project must have at least one language.

      Specified by:
      setLanguages in interface Project
      Parameters:
      languages - values to be set
    • setLanguages

      public void setLanguages(List<String> languages)
      Description copied from interface: Project

      Language of the country. A Project must have at least one language.

      Specified by:
      setLanguages in interface Project
      Parameters:
      languages - values to be set
    • setCreatedAt

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

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

      Specified by:
      setCreatedAt in interface Project
      Parameters:
      createdAt - value to be set
    • setTrialUntil

      public void setTrialUntil(String trialUntil)
      Description copied from interface: Project

      Date in YYYY-MM format specifying when the trial period for the Project ends. Only present on Projects in trial period.

      Specified by:
      setTrialUntil in interface Project
      Parameters:
      trialUntil - value to be set
    • setMessages

      public void setMessages(MessagesConfiguration messages)
      Description copied from interface: Project

      Holds the configuration for the Messages Query feature.

      Specified by:
      setMessages in interface Project
      Parameters:
      messages - value to be set
    • setCarts

      public void setCarts(CartsConfiguration carts)
      Description copied from interface: Project

      Holds the configuration for the Carts feature.

      Specified by:
      setCarts in interface Project
      Parameters:
      carts - value to be set
    • setShoppingLists

      public void setShoppingLists(ShoppingListsConfiguration shoppingLists)
      Description copied from interface: Project

      Holds the configuration for the Shopping Lists feature. This field may not be present on Projects created before January 2020.

      Specified by:
      setShoppingLists in interface Project
      Parameters:
      shoppingLists - value to be set
    • setShippingRateInputType

      public void setShippingRateInputType(ShippingRateInputType shippingRateInputType)
      Description copied from interface: Project

      Holds the configuration for the tiered shipping rates feature.

      Specified by:
      setShippingRateInputType in interface Project
      Parameters:
      shippingRateInputType - value to be set
    • setExternalOAuth

      public void setExternalOAuth(ExternalOAuth externalOAuth)
      Description copied from interface: Project

      Represents a RFC 7662 compliant OAuth 2.0 Token Introspection endpoint.

      Specified by:
      setExternalOAuth in interface Project
      Parameters:
      externalOAuth - value to be set
    • setSearchIndexing

      public void setSearchIndexing(SearchIndexingConfiguration searchIndexing)
      Description copied from interface: Project

      Controls indexing of resources to be provided on high performance read-only search endpoints.

      Specified by:
      setSearchIndexing in interface Project
      Parameters:
      searchIndexing - value to be set
    • setBusinessUnits

      public void setBusinessUnits(BusinessUnitConfiguration businessUnits)
      Description copied from interface: Project

      Holds configuration specific to Business Units.

      Specified by:
      setBusinessUnits in interface Project
      Parameters:
      businessUnits - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object