Class ProductToExplicitAssortmentMdl

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

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

Original entity name from the Odata EDM: ProductToExplicitAssortmentMdlType

  • Field Details

  • Constructor Details

    • ProductToExplicitAssortmentMdl

      public ProductToExplicitAssortmentMdl()
    • ProductToExplicitAssortmentMdl

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

    • getType

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

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

      Original property name from the Odata EDM: AssortmentModuleName

      Parameters:
      assortmentModuleName - Assortment Module
    • 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
    • setValidityStartDate

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

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Valid From
    • setValidityEndDate

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

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - Valid To
    • 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<ProductToExplicitAssortmentMdl>
    • getKey

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

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<ProductToExplicitAssortmentMdl>
    • replaceProduct

      @Nonnull public static BoundAction.SingleToSingle<ProductToExplicitAssortmentMdl,ProductToExplicitAssortmentMdl> replaceProduct(@Nonnull String substituteProduct, @Nullable LocalDate validFrom)
      Action that can be applied to any entity object of this class.

      Parameters:
      substituteProduct - Constraints: Not nullable, Maximum length: 40

      Original parameter name from the Odata EDM: SubstituteProduct

      validFrom - Constraints: Nullable

      Original parameter name from the Odata EDM: ValidFrom

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • updateValidity

      @Nonnull public static BoundAction.SingleToSingle<ProductToExplicitAssortmentMdl,ProductToExplicitAssortmentMdl> updateValidity(@Nullable LocalDate validFrom, @Nullable LocalDate validTo)
      Action that can be applied to any entity object of this class.

      Parameters:
      validFrom - Constraints: Nullable

      Original parameter name from the Odata EDM: ValidFrom

      validTo - Constraints: Nullable

      Original parameter name from the Odata EDM: ValidTo

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • 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
    • getAssortmentModuleName

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

      Original property name from the Odata EDM: AssortmentModuleName

      Returns:
      Assortment Module
    • getProductIsMandatoryInAssortment

      @Nullable public Boolean getProductIsMandatoryInAssortment()
      Constraints: Not nullable

      Original property name from the Odata EDM: ProductIsMandatoryInAssortment

      Returns:
      Product Is Mandatory for Assortment Users
    • getValidityStartDate

      @Nullable public LocalDate getValidityStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Valid From
    • getValidityEndDate

      @Nullable public LocalDate getValidityEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      Valid To
    • 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<ProductToExplicitAssortmentMdl>
    • equals

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

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

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

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