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

public class UsageDecisionSelectedCodeSet extends VdmEntity<UsageDecisionSelectedCodeSet> implements VdmEntitySet
Selected Set

Original entity name from the Odata EDM: UsageDecisionSelectedCodeSet_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setInspectionSelectedSetStatus(@Nullable String inspectionSelectedSetStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: InspectionSelectedSetStatus

      Parameters:
      inspectionSelectedSetStatus - Status of Master Record
    • setSelectedCodeSetDfltCodeGroup

      public void setSelectedCodeSetDfltCodeGroup(@Nullable String selectedCodeSetDfltCodeGroup)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: SelectedCodeSetDfltCodeGroup

      Parameters:
      selectedCodeSetDfltCodeGroup - Default Code Group
    • setSelectedCodeSetDefaultCode

      public void setSelectedCodeSetDefaultCode(@Nullable String selectedCodeSetDefaultCode)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SelectedCodeSetDefaultCode

      Parameters:
      selectedCodeSetDefaultCode - Default Code
    • getEntityCollection

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

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

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

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

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

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

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

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

      public void setSelectedCodeSetText(@Nonnull List<UsageDecisionSelectedCodeSetText> value)
      Overwrites the list of associated UsageDecisionSelectedCodeSetText entities for the loaded navigation property _SelectedCodeSetText.

      If the navigation property _SelectedCodeSetText of a queried UsageDecisionSelectedCodeSet 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 UsageDecisionSelectedCodeSetText entities.
    • addSelectedCodeSetText

      public void addSelectedCodeSetText(UsageDecisionSelectedCodeSetText... entity)
      Adds elements to the list of associated UsageDecisionSelectedCodeSetText entities. This corresponds to the OData navigation property _SelectedCodeSetText.

      If the navigation property _SelectedCodeSetText of a queried UsageDecisionSelectedCodeSet 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 UsageDecisionSelectedCodeSetText entities.
    • getSelectedSetCodeIfPresent

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

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

      public void setSelectedSetCode(@Nonnull List<UsageDecisionSelectedCode> value)
      Overwrites the list of associated UsageDecisionSelectedCode entities for the loaded navigation property _SelectedSetCode.

      If the navigation property _SelectedSetCode of a queried UsageDecisionSelectedCodeSet 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 UsageDecisionSelectedCode entities.
    • addSelectedSetCode

      public void addSelectedSetCode(UsageDecisionSelectedCode... entity)
      Adds elements to the list of associated UsageDecisionSelectedCode entities. This corresponds to the OData navigation property _SelectedSetCode.

      If the navigation property _SelectedSetCode of a queried UsageDecisionSelectedCodeSet 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 UsageDecisionSelectedCode 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
    • getInspectionSelectedSetStatus

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

      Original property name from the Odata EDM: InspectionSelectedSetStatus

      Returns:
      Status of Master Record
    • getSelectedCodeSetDfltCodeGroup

      @Nullable public String getSelectedCodeSetDfltCodeGroup()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: SelectedCodeSetDfltCodeGroup

      Returns:
      Default Code Group
    • getSelectedCodeSetDefaultCode

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

      Original property name from the Odata EDM: SelectedCodeSetDefaultCode

      Returns:
      Default Code
    • toString

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

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

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

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

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