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

public class ExplicitAssortmentModuleVers extends VdmEntity<ExplicitAssortmentModuleVers> implements VdmEntitySet
Assortment Module Version

Original entity name from the Odata EDM: ExplicitAssortmentModuleVersType

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setAssortmentModuleVersionUUID(@Nullable UUID assortmentModuleVersionUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: AssortmentModuleVersionUUID

      Parameters:
      assortmentModuleVersionUUID - Universal Unique Identifier of Assortment Module Version
    • 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
    • setValidityStartDate

      public void setValidityStartDate(@Nullable LocalDate validityStartDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Validity Start Date of an Assortment Module Version
    • setValidityEndDate

      public void setValidityEndDate(@Nullable LocalDate validityEndDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - Validity End Date of an Assortment Module Version
    • setLastChangeDate

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

      Original property name from the Odata EDM: LastChangeDate

      Parameters:
      lastChangeDate - The lastChangeDate to set.
    • setLastChangedByUserName

      public void setLastChangedByUserName(@Nullable String lastChangedByUserName)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUserName

      Parameters:
      lastChangedByUserName - User Name of the User Who Last Changed an Object
    • 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<ExplicitAssortmentModuleVers>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity ExplicitAssortmentModuleVers 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 ProductToExplicitAsstmtMdlVers entities. If not, an Option with result state empty is returned.
    • setProduct

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

      If the navigation property _Product of a queried ExplicitAssortmentModuleVers 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 ProductToExplicitAsstmtMdlVers entities.
    • addProduct

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

      If the navigation property _Product of a queried ExplicitAssortmentModuleVers 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 ProductToExplicitAsstmtMdlVers entities.
    • getTextIfPresent

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

      If the navigation property for an entity ExplicitAssortmentModuleVers 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 _Text is already loaded, the result will contain the AssortmentModuleVersionText entities. If not, an Option with result state empty is returned.
    • setText

      public void setText(@Nonnull List<AssortmentModuleVersionText> value)
      Overwrites the list of associated AssortmentModuleVersionText entities for the loaded navigation property _Text.

      If the navigation property _Text of a queried ExplicitAssortmentModuleVers 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 AssortmentModuleVersionText entities.
    • addText

      public void addText(AssortmentModuleVersionText... entity)
      Adds elements to the list of associated AssortmentModuleVersionText entities. This corresponds to the OData navigation property _Text.

      If the navigation property _Text of a queried ExplicitAssortmentModuleVers 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 AssortmentModuleVersionText entities.
    • builder

    • getAssortmentModuleVersionUUID

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

      Original property name from the Odata EDM: AssortmentModuleVersionUUID

      Returns:
      Universal Unique Identifier of Assortment Module Version
    • getAssortmentModuleName

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

      Original property name from the Odata EDM: AssortmentModuleName

      Returns:
      Assortment Module
    • getValidityStartDate

      @Nullable public LocalDate getValidityStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Validity Start Date of an Assortment Module Version
    • getValidityEndDate

      @Nullable public LocalDate getValidityEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      Validity End Date of an Assortment Module Version
    • getLastChangeDate

      @Nullable public LocalDate getLastChangeDate()
      Constraints: Nullable

      Original property name from the Odata EDM: LastChangeDate

      Returns:
      The lastChangeDate contained in this VdmEntity.
    • getLastChangedByUserName

      @Nullable public String getLastChangedByUserName()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUserName

      Returns:
      User Name of the User Who Last Changed an Object
    • 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<ExplicitAssortmentModuleVers>
    • equals

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

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

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

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