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

public class CompanySubstanceVarAssgmt extends VdmEntity<CompanySubstanceVarAssgmt> implements VdmEntitySet
Company Substance Variant Assignment

Original entity name from the Odata EDM: CompanySubstanceVarAssgmt_Type

  • Field Details

  • Constructor Details

    • CompanySubstanceVarAssgmt

      public CompanySubstanceVarAssgmt()
    • CompanySubstanceVarAssgmt

      public CompanySubstanceVarAssgmt(@Nullable UUID substanceVarAssgmtUUID, @Nullable UUID companySubstanceUUID, @Nullable UUID listedSubstanceVariantUUID, @Nullable String listedSubstanceVariant, @Nullable CompanySubstance to_CompanySubstance)
  • Method Details

    • getType

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

      public void setSubstanceVarAssgmtUUID(@Nullable UUID substanceVarAssgmtUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SubstanceVarAssgmtUUID

      Parameters:
      substanceVarAssgmtUUID - Substance Variant Assignment
    • setCompanySubstanceUUID

      public void setCompanySubstanceUUID(@Nullable UUID companySubstanceUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: CompanySubstanceUUID

      Parameters:
      companySubstanceUUID - Substance
    • setListedSubstanceVariantUUID

      public void setListedSubstanceVariantUUID(@Nullable UUID listedSubstanceVariantUUID)
      Constraints: Nullable

      Original property name from the Odata EDM: ListedSubstanceVariantUUID

      Parameters:
      listedSubstanceVariantUUID - Listed Substance Variant
    • setListedSubstanceVariant

      public void setListedSubstanceVariant(@Nullable String listedSubstanceVariant)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ListedSubstanceVariant

      Parameters:
      listedSubstanceVariant - Listed Substance
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity CompanySubstanceVarAssgmt 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 _CompanySubstance is already loaded, the result will contain the CompanySubstance entity. If not, an Option with result state empty is returned.
    • setCompanySubstance

      public void setCompanySubstance(CompanySubstance value)
      Overwrites the associated CompanySubstance entity for the loaded navigation property _CompanySubstance.
      Parameters:
      value - New CompanySubstance entity.
    • builder

    • getSubstanceVarAssgmtUUID

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

      Original property name from the Odata EDM: SubstanceVarAssgmtUUID

      Returns:
      Substance Variant Assignment
    • getCompanySubstanceUUID

      @Nullable public UUID getCompanySubstanceUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: CompanySubstanceUUID

      Returns:
      Substance
    • getListedSubstanceVariantUUID

      @Nullable public UUID getListedSubstanceVariantUUID()
      Constraints: Nullable

      Original property name from the Odata EDM: ListedSubstanceVariantUUID

      Returns:
      Listed Substance Variant
    • getListedSubstanceVariant

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

      Original property name from the Odata EDM: ListedSubstanceVariant

      Returns:
      Listed Substance
    • toString

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

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

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

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

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