Class ProductToExplicitAsstmtMdlVers

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

public class ProductToExplicitAsstmtMdlVers extends VdmEntity<ProductToExplicitAsstmtMdlVers> implements VdmEntitySet
Product Assignment to Assortment Module Version

Original entity name from the Odata EDM: ProductToExplicitAsstmtMdlVersType

  • Field Details

  • Constructor Details

    • ProductToExplicitAsstmtMdlVers

      public ProductToExplicitAsstmtMdlVers()
    • ProductToExplicitAsstmtMdlVers

      public ProductToExplicitAsstmtMdlVers(@Nullable UUID assortmentModuleUUID, @Nullable String product, @Nullable LocalDate validityStartDate, @Nullable LocalDate validityEndDate, @Nullable Boolean productIsMandatoryInAssortment, @Nullable LocalDate lastChangeDate, @Nullable String lastChangedByUserName, @Nullable Collection<SAP__Message> _Messages, @Nullable ExplicitAssortmentModuleVers to_ExplicitAssortmentModuleVers)
  • Method Details

    • getType

      @Nonnull public Class<ProductToExplicitAsstmtMdlVers> getType()
      Specified by:
      getType in class VdmObject<ProductToExplicitAsstmtMdlVers>
    • 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
    • setProduct

      public void setProduct(@Nullable String product)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Parameters:
      product - Material Number
    • setValidityStartDate

      public void setValidityStartDate(@Nullable LocalDate validityStartDate)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Product Assignment Valid From
    • setValidityEndDate

      public void setValidityEndDate(@Nullable LocalDate validityEndDate)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - Product Assignment Valid To
    • setProductIsMandatoryInAssortment

      public void setProductIsMandatoryInAssortment(@Nullable Boolean productIsMandatoryInAssortment)
      Constraints: Not nullable

      Original property name from the Odata EDM: ProductIsMandatoryInAssortment

      Parameters:
      productIsMandatoryInAssortment - Product Is Mandatory for Assortment Users
    • 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<ProductToExplicitAsstmtMdlVers>
    • getKey

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

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

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

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

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

      @Nonnull public io.vavr.control.Option<ExplicitAssortmentModuleVers> getExplicitAssortmentModuleVersIfPresent()
      Retrieval of associated ExplicitAssortmentModuleVers entity (one to one). This corresponds to the OData navigation property _ExplicitAssortmentModuleVers.

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

      public void setExplicitAssortmentModuleVers(ExplicitAssortmentModuleVers value)
      Overwrites the associated ExplicitAssortmentModuleVers entity for the loaded navigation property _ExplicitAssortmentModuleVers.
      Parameters:
      value - New ExplicitAssortmentModuleVers entity.
    • 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
    • getProduct

      @Nullable public String getProduct()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Returns:
      Material Number
    • getValidityStartDate

      @Nullable public LocalDate getValidityStartDate()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Product Assignment Valid From
    • getValidityEndDate

      @Nullable public LocalDate getValidityEndDate()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      Product Assignment Valid To
    • getProductIsMandatoryInAssortment

      @Nullable public Boolean getProductIsMandatoryInAssortment()
      Constraints: Not nullable

      Original property name from the Odata EDM: ProductIsMandatoryInAssortment

      Returns:
      Product Is Mandatory for Assortment Users
    • 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<ProductToExplicitAsstmtMdlVers>
    • equals

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

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

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

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