java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<ExplicitAssortmentModule>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.assortmentmodulev2.ExplicitAssortmentModule
All Implemented Interfaces:
VdmEntitySet

public class ExplicitAssortmentModule extends VdmEntity<ExplicitAssortmentModule> implements VdmEntitySet
Assortment Module

Original entity name from the Odata EDM: ExplicitAssortmentModuleType

  • Field Details

  • Constructor Details

  • Method Details

    • getType

      @Nonnull public Class<ExplicitAssortmentModule> getType()
      Specified by:
      getType in class VdmObject<ExplicitAssortmentModule>
    • setAssortmentModuleUUID

      public void setAssortmentModuleUUID(@Nullable UUID assortmentModuleUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: AssortmentModuleUUID

      Parameters:
      assortmentModuleUUID - Universal Unique Identifier of Assortment
    • setAssortmentModuleName

      public void setAssortmentModuleName(@Nullable String assortmentModuleName)
      Constraints: Not nullable, Maximum length: 100

      Original property name from the Odata EDM: AssortmentModuleName

      Parameters:
      assortmentModuleName - Assortment Module
    • setLastChangeDate

      public void setLastChangeDate(@Nullable LocalDate lastChangeDate)
      Constraints: Nullable

      Original property name from the Odata EDM: LastChangeDate

      Parameters:
      lastChangeDate - The lastChangeDate to set.
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<ExplicitAssortmentModule>
    • getKey

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<ExplicitAssortmentModule>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<ExplicitAssortmentModule>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<ExplicitAssortmentModule>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<ExplicitAssortmentModule>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<ExplicitAssortmentModule>
    • getAssortmentUserIfPresent

      @Nonnull public io.vavr.control.Option<List<ExplicitAssortmentModuleUser>> getAssortmentUserIfPresent()
      Retrieval of associated ExplicitAssortmentModuleUser entities (one to many). This corresponds to the OData navigation property _AssortmentUser.

      If the navigation property for an entity ExplicitAssortmentModule has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _AssortmentUser is already loaded, the result will contain the ExplicitAssortmentModuleUser entities. If not, an Option with result state empty is returned.
    • setAssortmentUser

      public void setAssortmentUser(@Nonnull List<ExplicitAssortmentModuleUser> value)
      Overwrites the list of associated ExplicitAssortmentModuleUser entities for the loaded navigation property _AssortmentUser.

      If the navigation property _AssortmentUser of a queried ExplicitAssortmentModule is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of ExplicitAssortmentModuleUser entities.
    • addAssortmentUser

      public void addAssortmentUser(ExplicitAssortmentModuleUser... entity)
      Adds elements to the list of associated ExplicitAssortmentModuleUser entities. This corresponds to the OData navigation property _AssortmentUser.

      If the navigation property _AssortmentUser of a queried ExplicitAssortmentModule is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of ExplicitAssortmentModuleUser entities.
    • getExclusionIfPresent

      @Nonnull public io.vavr.control.Option<List<ExplctAsstmtMdlUsrProdExclsn>> getExclusionIfPresent()
      Retrieval of associated ExplctAsstmtMdlUsrProdExclsn entities (one to many). This corresponds to the OData navigation property _Exclusion.

      If the navigation property for an entity ExplicitAssortmentModule has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _Exclusion is already loaded, the result will contain the ExplctAsstmtMdlUsrProdExclsn entities. If not, an Option with result state empty is returned.
    • setExclusion

      public void setExclusion(@Nonnull List<ExplctAsstmtMdlUsrProdExclsn> value)
      Overwrites the list of associated ExplctAsstmtMdlUsrProdExclsn entities for the loaded navigation property _Exclusion.

      If the navigation property _Exclusion of a queried ExplicitAssortmentModule is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of ExplctAsstmtMdlUsrProdExclsn entities.
    • addExclusion

      public void addExclusion(ExplctAsstmtMdlUsrProdExclsn... entity)
      Adds elements to the list of associated ExplctAsstmtMdlUsrProdExclsn entities. This corresponds to the OData navigation property _Exclusion.

      If the navigation property _Exclusion of a queried ExplicitAssortmentModule is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of ExplctAsstmtMdlUsrProdExclsn entities.
    • getProductIfPresent

      @Nonnull public io.vavr.control.Option<List<ProductToExplicitAssortmentMdl>> getProductIfPresent()
      Retrieval of associated ProductToExplicitAssortmentMdl entities (one to many). This corresponds to the OData navigation property _Product.

      If the navigation property for an entity ExplicitAssortmentModule has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _Product is already loaded, the result will contain the ProductToExplicitAssortmentMdl entities. If not, an Option with result state empty is returned.
    • setProduct

      public void setProduct(@Nonnull List<ProductToExplicitAssortmentMdl> value)
      Overwrites the list of associated ProductToExplicitAssortmentMdl entities for the loaded navigation property _Product.

      If the navigation property _Product of a queried ExplicitAssortmentModule is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of ProductToExplicitAssortmentMdl entities.
    • addProduct

      public void addProduct(ProductToExplicitAssortmentMdl... entity)
      Adds elements to the list of associated ProductToExplicitAssortmentMdl entities. This corresponds to the OData navigation property _Product.

      If the navigation property _Product of a queried ExplicitAssortmentModule is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of ProductToExplicitAssortmentMdl entities.
    • getVersionIfPresent

      @Nonnull public io.vavr.control.Option<List<ExplicitAssortmentModuleVers>> getVersionIfPresent()
      Retrieval of associated ExplicitAssortmentModuleVers entities (one to many). This corresponds to the OData navigation property _Version.

      If the navigation property for an entity ExplicitAssortmentModule has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _Version is already loaded, the result will contain the ExplicitAssortmentModuleVers entities. If not, an Option with result state empty is returned.
    • setVersion

      public void setVersion(@Nonnull List<ExplicitAssortmentModuleVers> value)
      Overwrites the list of associated ExplicitAssortmentModuleVers entities for the loaded navigation property _Version.

      If the navigation property _Version of a queried ExplicitAssortmentModule is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of ExplicitAssortmentModuleVers entities.
    • addVersion

      public void addVersion(ExplicitAssortmentModuleVers... entity)
      Adds elements to the list of associated ExplicitAssortmentModuleVers entities. This corresponds to the OData navigation property _Version.

      If the navigation property _Version of a queried ExplicitAssortmentModule is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of ExplicitAssortmentModuleVers entities.
    • builder

    • getAssortmentModuleUUID

      @Nullable public UUID getAssortmentModuleUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: AssortmentModuleUUID

      Returns:
      Universal Unique Identifier of Assortment
    • getAssortmentModuleName

      @Nullable public String getAssortmentModuleName()
      Constraints: Not nullable, Maximum length: 100

      Original property name from the Odata EDM: AssortmentModuleName

      Returns:
      Assortment Module
    • getLastChangeDate

      @Nullable public LocalDate getLastChangeDate()
      Constraints: Nullable

      Original property name from the Odata EDM: LastChangeDate

      Returns:
      The lastChangeDate contained in this VdmEntity.
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<ExplicitAssortmentModule>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<ExplicitAssortmentModule>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<ExplicitAssortmentModule>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<ExplicitAssortmentModule>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<ExplicitAssortmentModule>