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

public class ProductSubstitution extends VdmEntity<ProductSubstitution> implements VdmEntitySet
Product Substitution

Original entity name from the Odata EDM: ProductSubstitution_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setMDSubstnUUID(@Nullable UUID mDSubstnUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnUUID

      Parameters:
      mDSubstnUUID - Substitution UUID
    • setProduct

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

      Original property name from the Odata EDM: Product

      Parameters:
      product - Product Number
    • setSubstituteProduct

      public void setSubstituteProduct(@Nullable String substituteProduct)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SubstituteProduct

      Parameters:
      substituteProduct - Substitution Substitute
    • setPlant

      public void setPlant(@Nullable String plant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setMDSubstnGroup

      public void setMDSubstnGroup(@Nullable String mDSubstnGroup)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MDSubstnGroup

      Parameters:
      mDSubstnGroup - Group Name
    • setMDSubstnSet

      public void setMDSubstnSet(@Nullable String mDSubstnSet)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MDSubstnSet

      Parameters:
      mDSubstnSet - Substitute: Set of Objects
    • setMDSubstnIsExit

      public void setMDSubstnIsExit(@Nullable Boolean mDSubstnIsExit)
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnIsExit

      Parameters:
      mDSubstnIsExit - Stops Further Substitution in the Chain
    • setMDSubstnIsLeading

      public void setMDSubstnIsLeading(@Nullable Boolean mDSubstnIsLeading)
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnIsLeading

      Parameters:
      mDSubstnIsLeading - Substitution Lead Indicator
    • setMDSubstnSequenceValue

      public void setMDSubstnSequenceValue(@Nullable Short mDSubstnSequenceValue)
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnSequenceValue

      Parameters:
      mDSubstnSequenceValue - Order of Substitutions in the Chain
    • setMDSubstnConversionNumerator

      public void setMDSubstnConversionNumerator(@Nullable Short mDSubstnConversionNumerator)
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnConversionNumerator

      Parameters:
      mDSubstnConversionNumerator - Quantity Conversion: Numerator
    • setMDSubstnConversionDenominator

      public void setMDSubstnConversionDenominator(@Nullable Short mDSubstnConversionDenominator)
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnConversionDenominator

      Parameters:
      mDSubstnConversionDenominator - Quantity Conversion: Denominator
    • setMDSubstnConversionPercent

      public void setMDSubstnConversionPercent(@Nullable BigDecimal mDSubstnConversionPercent)
      Constraints: Not nullable, Precision: 5, Scale: 2

      Original property name from the Odata EDM: MDSubstnConversionPercent

      Parameters:
      mDSubstnConversionPercent - Percentage Value
    • setMDSubstnValidityStartDate

      public void setMDSubstnValidityStartDate(@Nullable LocalDate mDSubstnValidityStartDate)
      Constraints: Nullable

      Original property name from the Odata EDM: MDSubstnValidityStartDate

      Parameters:
      mDSubstnValidityStartDate - Valid From Date
    • setMDSubstnValidityStartTime

      public void setMDSubstnValidityStartTime(@Nullable LocalTime mDSubstnValidityStartTime)
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnValidityStartTime

      Parameters:
      mDSubstnValidityStartTime - Valid From Time
    • setMDSubstnValidityEndDate

      public void setMDSubstnValidityEndDate(@Nullable LocalDate mDSubstnValidityEndDate)
      Constraints: Nullable

      Original property name from the Odata EDM: MDSubstnValidityEndDate

      Parameters:
      mDSubstnValidityEndDate - Valid To Date
    • setMDSubstnValidityEndTime

      public void setMDSubstnValidityEndTime(@Nullable LocalTime mDSubstnValidityEndTime)
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnValidityEndTime

      Parameters:
      mDSubstnValidityEndTime - Valid To Time
    • setTimeZoneID

      public void setTimeZoneID(@Nullable String timeZoneID)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: TimeZoneID

      Parameters:
      timeZoneID - Time Zone
    • setMDSubstnReason

      public void setMDSubstnReason(@Nullable String mDSubstnReason)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MDSubstnReason

      Parameters:
      mDSubstnReason - Reason
    • setMDSubstnStatus

      public void setMDSubstnStatus(@Nullable String mDSubstnStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: MDSubstnStatus

      Parameters:
      mDSubstnStatus - Substitution Status
    • setMDSubstnIsRlvtForATPProd

      public void setMDSubstnIsRlvtForATPProd(@Nullable Boolean mDSubstnIsRlvtForATPProd)
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnIsRlvtForATPProd

      Parameters:
      mDSubstnIsRlvtForATPProd - aATP Relevant
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Created By User
    • setCreationDateTime

      public void setCreationDateTime(@Nullable OffsetDateTime creationDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Substitution Creation Date
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Last Changed By User
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable OffsetDateTime lastChangeDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Substitution Last Changed Date
    • 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<ProductSubstitution>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity ProductSubstitution 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 _Predecessors is already loaded, the result will contain the ProdSubstnPredecessor entities. If not, an Option with result state empty is returned.
    • setPredecessors

      public void setPredecessors(@Nonnull List<ProdSubstnPredecessor> value)
      Overwrites the list of associated ProdSubstnPredecessor entities for the loaded navigation property _Predecessors.

      If the navigation property _Predecessors of a queried ProductSubstitution 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 ProdSubstnPredecessor entities.
    • addPredecessors

      public void addPredecessors(ProdSubstnPredecessor... entity)
      Adds elements to the list of associated ProdSubstnPredecessor entities. This corresponds to the OData navigation property _Predecessors.

      If the navigation property _Predecessors of a queried ProductSubstitution 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 ProdSubstnPredecessor entities.
    • getSuccessorsIfPresent

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

      If the navigation property for an entity ProductSubstitution 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 _Successors is already loaded, the result will contain the ProdSubstnSuccessor entities. If not, an Option with result state empty is returned.
    • setSuccessors

      public void setSuccessors(@Nonnull List<ProdSubstnSuccessor> value)
      Overwrites the list of associated ProdSubstnSuccessor entities for the loaded navigation property _Successors.

      If the navigation property _Successors of a queried ProductSubstitution 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 ProdSubstnSuccessor entities.
    • addSuccessors

      public void addSuccessors(ProdSubstnSuccessor... entity)
      Adds elements to the list of associated ProdSubstnSuccessor entities. This corresponds to the OData navigation property _Successors.

      If the navigation property _Successors of a queried ProductSubstitution 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 ProdSubstnSuccessor entities.
    • builder

      @Nonnull public static ProductSubstitution.ProductSubstitutionBuilder builder()
    • getMDSubstnUUID

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

      Original property name from the Odata EDM: MDSubstnUUID

      Returns:
      Substitution UUID
    • getProduct

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

      Original property name from the Odata EDM: Product

      Returns:
      Product Number
    • getSubstituteProduct

      @Nullable public String getSubstituteProduct()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SubstituteProduct

      Returns:
      Substitution Substitute
    • getPlant

      @Nullable public String getPlant()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getMDSubstnGroup

      @Nullable public String getMDSubstnGroup()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MDSubstnGroup

      Returns:
      Group Name
    • getMDSubstnSet

      @Nullable public String getMDSubstnSet()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MDSubstnSet

      Returns:
      Substitute: Set of Objects
    • getMDSubstnIsExit

      @Nullable public Boolean getMDSubstnIsExit()
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnIsExit

      Returns:
      Stops Further Substitution in the Chain
    • getMDSubstnIsLeading

      @Nullable public Boolean getMDSubstnIsLeading()
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnIsLeading

      Returns:
      Substitution Lead Indicator
    • getMDSubstnSequenceValue

      @Nullable public Short getMDSubstnSequenceValue()
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnSequenceValue

      Returns:
      Order of Substitutions in the Chain
    • getMDSubstnConversionNumerator

      @Nullable public Short getMDSubstnConversionNumerator()
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnConversionNumerator

      Returns:
      Quantity Conversion: Numerator
    • getMDSubstnConversionDenominator

      @Nullable public Short getMDSubstnConversionDenominator()
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnConversionDenominator

      Returns:
      Quantity Conversion: Denominator
    • getMDSubstnConversionPercent

      @Nullable public BigDecimal getMDSubstnConversionPercent()
      Constraints: Not nullable, Precision: 5, Scale: 2

      Original property name from the Odata EDM: MDSubstnConversionPercent

      Returns:
      Percentage Value
    • getMDSubstnValidityStartDate

      @Nullable public LocalDate getMDSubstnValidityStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: MDSubstnValidityStartDate

      Returns:
      Valid From Date
    • getMDSubstnValidityStartTime

      @Nullable public LocalTime getMDSubstnValidityStartTime()
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnValidityStartTime

      Returns:
      Valid From Time
    • getMDSubstnValidityEndDate

      @Nullable public LocalDate getMDSubstnValidityEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: MDSubstnValidityEndDate

      Returns:
      Valid To Date
    • getMDSubstnValidityEndTime

      @Nullable public LocalTime getMDSubstnValidityEndTime()
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnValidityEndTime

      Returns:
      Valid To Time
    • getTimeZoneID

      @Nullable public String getTimeZoneID()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: TimeZoneID

      Returns:
      Time Zone
    • getMDSubstnReason

      @Nullable public String getMDSubstnReason()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MDSubstnReason

      Returns:
      Reason
    • getMDSubstnStatus

      @Nullable public String getMDSubstnStatus()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: MDSubstnStatus

      Returns:
      Substitution Status
    • getMDSubstnIsRlvtForATPProd

      @Nullable public Boolean getMDSubstnIsRlvtForATPProd()
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnIsRlvtForATPProd

      Returns:
      aATP Relevant
    • getCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created By User
    • getCreationDateTime

      @Nullable public OffsetDateTime getCreationDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Substitution Creation Date
    • getLastChangedByUser

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

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Last Changed By User
    • getLastChangeDateTime

      @Nullable public OffsetDateTime getLastChangeDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Substitution Last Changed Date
    • 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<ProductSubstitution>
    • equals

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

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

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

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