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

public class ProdSubstnSuccessor extends VdmEntity<ProdSubstnSuccessor> implements VdmEntitySet
Product Substitution Successor

Original entity name from the Odata EDM: ProdSubstnSuccessor_Type

  • Field Details

  • Constructor Details

    • ProdSubstnSuccessor

      public ProdSubstnSuccessor()
    • ProdSubstnSuccessor

      public ProdSubstnSuccessor(@Nullable UUID mDSubstnUUID, @Nullable UUID mDSubstnMasterUUID, @Nullable String mDSubstnObjectType, @Nullable String product, @Nullable String substituteProduct, @Nullable String mDSubstnContextObjectType, @Nullable String plant, @Nullable String mDSubstnContextObjectType2, @Nullable String mDSubstnGroup, @Nullable Integer mDSubstnVersionValue, @Nullable String mDSubstnSet, @Nullable Boolean mDSubstnIsExit, @Nullable Boolean mDSubstnIsLeading, @Nullable Short mDSubstnSequenceValue, @Nullable Short mDSubstnConversionNumerator, @Nullable Short mDSubstnConversionDenominator, @Nullable BigDecimal mDSubstnConversionPercent, @Nullable LocalDate mDSubstnValidityStartDate, @Nullable LocalTime mDSubstnValidityStartTime, @Nullable LocalDate mDSubstnValidityEndDate, @Nullable LocalTime mDSubstnValidityEndTime, @Nullable String timeZoneID, @Nullable String mDSubstnReason, @Nullable String mDSubstnStatus, @Nullable Boolean mDSubstnIsRlvtForATPProd, @Nullable Boolean mDSubstnIsRelevantForESPP, @Nullable String createdByUser, @Nullable OffsetDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable OffsetDateTime lastChangeDateTime, @Nullable ProductSubstitution to_Substitution)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: MDSubstnUUID

      Parameters:
      mDSubstnUUID - Substitution UUID
    • setMDSubstnMasterUUID

      public void setMDSubstnMasterUUID(@Nullable UUID mDSubstnMasterUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnMasterUUID

      Parameters:
      mDSubstnMasterUUID - Parent Substitution UUID
    • setMDSubstnObjectType

      public void setMDSubstnObjectType(@Nullable String mDSubstnObjectType)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: MDSubstnObjectType

      Parameters:
      mDSubstnObjectType - SAP Object Type
    • 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
    • setMDSubstnContextObjectType

      public void setMDSubstnContextObjectType(@Nullable String mDSubstnContextObjectType)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: MDSubstnContextObjectType

      Parameters:
      mDSubstnContextObjectType - Context Object Type
    • setPlant

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

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setMDSubstnContextObjectType2

      public void setMDSubstnContextObjectType2(@Nullable String mDSubstnContextObjectType2)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: MDSubstnContextObjectType2

      Parameters:
      mDSubstnContextObjectType2 - Context Object Type 2
    • 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
    • setMDSubstnVersionValue

      public void setMDSubstnVersionValue(@Nullable Integer mDSubstnVersionValue)
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnVersionValue

      Parameters:
      mDSubstnVersionValue - Substitution Version
    • 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
    • setMDSubstnIsRelevantForESPP

      public void setMDSubstnIsRelevantForESPP(@Nullable Boolean mDSubstnIsRelevantForESPP)
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnIsRelevantForESPP

      Parameters:
      mDSubstnIsRelevantForESPP - eSPP 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
    • getEntityCollection

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

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

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

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

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

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

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

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

      public void setSubstitution(ProductSubstitution value)
      Overwrites the associated ProductSubstitution entity for the loaded navigation property _Substitution.
      Parameters:
      value - New ProductSubstitution entity.
    • builder

      @Nonnull public static ProdSubstnSuccessor.ProdSubstnSuccessorBuilder builder()
    • getMDSubstnUUID

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

      Original property name from the Odata EDM: MDSubstnUUID

      Returns:
      Substitution UUID
    • getMDSubstnMasterUUID

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

      Original property name from the Odata EDM: MDSubstnMasterUUID

      Returns:
      Parent Substitution UUID
    • getMDSubstnObjectType

      @Nullable public String getMDSubstnObjectType()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: MDSubstnObjectType

      Returns:
      SAP Object Type
    • 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
    • getMDSubstnContextObjectType

      @Nullable public String getMDSubstnContextObjectType()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: MDSubstnContextObjectType

      Returns:
      Context Object Type
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getMDSubstnContextObjectType2

      @Nullable public String getMDSubstnContextObjectType2()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: MDSubstnContextObjectType2

      Returns:
      Context Object Type 2
    • getMDSubstnGroup

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

      Original property name from the Odata EDM: MDSubstnGroup

      Returns:
      Group Name
    • getMDSubstnVersionValue

      @Nullable public Integer getMDSubstnVersionValue()
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnVersionValue

      Returns:
      Substitution Version
    • 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
    • getMDSubstnIsRelevantForESPP

      @Nullable public Boolean getMDSubstnIsRelevantForESPP()
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnIsRelevantForESPP

      Returns:
      eSPP 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
    • toString

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

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

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

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

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