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

public class UsageDecisionSelectedCode extends VdmEntity<UsageDecisionSelectedCode> implements VdmEntitySet
Usage Decision Code

Original entity name from the Odata EDM: UsageDecisionSelectedCode_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setSelectedCodeSetPlant(@Nullable String selectedCodeSetPlant)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SelectedCodeSetPlant

      Parameters:
      selectedCodeSetPlant - Plant
    • setSelectedCodeSet

      public void setSelectedCodeSet(@Nullable String selectedCodeSet)
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: SelectedCodeSet

      Parameters:
      selectedCodeSet - Selected Set
    • setUsageDecisionCodeGroup

      public void setUsageDecisionCodeGroup(@Nullable String usageDecisionCodeGroup)
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: UsageDecisionCodeGroup

      Parameters:
      usageDecisionCodeGroup - Code Group
    • setUsageDecisionCode

      public void setUsageDecisionCode(@Nullable String usageDecisionCode)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: UsageDecisionCode

      Parameters:
      usageDecisionCode - Code
    • setInspLotUsageDecisionValuation

      public void setInspLotUsageDecisionValuation(@Nullable String inspLotUsageDecisionValuation)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: InspLotUsageDecisionValuation

      Parameters:
      inspLotUsageDecisionValuation - Code Valuation
    • setInspectionLotQualityScore

      public void setInspectionLotQualityScore(@Nullable Integer inspectionLotQualityScore)
      Constraints: Not nullable

      Original property name from the Odata EDM: InspectionLotQualityScore

      Parameters:
      inspectionLotQualityScore - Quality Score
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity UsageDecisionSelectedCode 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 _SelectedCodeSet is already loaded, the result will contain the UsageDecisionSelectedCodeSet entity. If not, an Option with result state empty is returned.
    • setSelectedCodeSet

      public void setSelectedCodeSet(UsageDecisionSelectedCodeSet value)
      Overwrites the associated UsageDecisionSelectedCodeSet entity for the loaded navigation property _SelectedCodeSet.
      Parameters:
      value - New UsageDecisionSelectedCodeSet entity.
    • getUsageDcsnSeldCodeGrpTxtIfPresent

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

      If the navigation property for an entity UsageDecisionSelectedCode 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 _UsageDcsnSeldCodeGrpTxt is already loaded, the result will contain the UsageDecisionSelectedCodeGroupText entities. If not, an Option with result state empty is returned.
    • setUsageDcsnSeldCodeGrpTxt

      public void setUsageDcsnSeldCodeGrpTxt(@Nonnull List<UsageDecisionSelectedCodeGroupText> value)
      Overwrites the list of associated UsageDecisionSelectedCodeGroupText entities for the loaded navigation property _UsageDcsnSeldCodeGrpTxt.

      If the navigation property _UsageDcsnSeldCodeGrpTxt of a queried UsageDecisionSelectedCode 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 UsageDecisionSelectedCodeGroupText entities.
    • addUsageDcsnSeldCodeGrpTxt

      public void addUsageDcsnSeldCodeGrpTxt(UsageDecisionSelectedCodeGroupText... entity)
      Adds elements to the list of associated UsageDecisionSelectedCodeGroupText entities. This corresponds to the OData navigation property _UsageDcsnSeldCodeGrpTxt.

      If the navigation property _UsageDcsnSeldCodeGrpTxt of a queried UsageDecisionSelectedCode 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 UsageDecisionSelectedCodeGroupText entities.
    • getUsageDcsnSeldCodeTxtIfPresent

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

      If the navigation property for an entity UsageDecisionSelectedCode 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 _UsageDcsnSeldCodeTxt is already loaded, the result will contain the UsageDecisionSelectedCodeText entities. If not, an Option with result state empty is returned.
    • setUsageDcsnSeldCodeTxt

      public void setUsageDcsnSeldCodeTxt(@Nonnull List<UsageDecisionSelectedCodeText> value)
      Overwrites the list of associated UsageDecisionSelectedCodeText entities for the loaded navigation property _UsageDcsnSeldCodeTxt.

      If the navigation property _UsageDcsnSeldCodeTxt of a queried UsageDecisionSelectedCode 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 UsageDecisionSelectedCodeText entities.
    • addUsageDcsnSeldCodeTxt

      public void addUsageDcsnSeldCodeTxt(UsageDecisionSelectedCodeText... entity)
      Adds elements to the list of associated UsageDecisionSelectedCodeText entities. This corresponds to the OData navigation property _UsageDcsnSeldCodeTxt.

      If the navigation property _UsageDcsnSeldCodeTxt of a queried UsageDecisionSelectedCode 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 UsageDecisionSelectedCodeText entities.
    • builder

    • getSelectedCodeSetPlant

      @Nullable public String getSelectedCodeSetPlant()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SelectedCodeSetPlant

      Returns:
      Plant
    • getSelectedCodeSet

      @Nullable public String getSelectedCodeSet()
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: SelectedCodeSet

      Returns:
      Selected Set
    • getUsageDecisionCodeGroup

      @Nullable public String getUsageDecisionCodeGroup()
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: UsageDecisionCodeGroup

      Returns:
      Code Group
    • getUsageDecisionCode

      @Nullable public String getUsageDecisionCode()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: UsageDecisionCode

      Returns:
      Code
    • getInspLotUsageDecisionValuation

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

      Original property name from the Odata EDM: InspLotUsageDecisionValuation

      Returns:
      Code Valuation
    • getInspectionLotQualityScore

      @Nullable public Integer getInspectionLotQualityScore()
      Constraints: Not nullable

      Original property name from the Odata EDM: InspectionLotQualityScore

      Returns:
      Quality Score
    • toString

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

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

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

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

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