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

public class TaskCodeText extends VdmEntity<TaskCodeText> implements VdmEntitySet
Task Code Text

Original entity name from the Odata EDM: TaskCodeText_Type

  • Field Details

  • Constructor Details

    • TaskCodeText

      public TaskCodeText()
    • TaskCodeText

      public TaskCodeText(@Nullable String taskCodeGroup, @Nullable String taskCode, @Nullable String language, @Nullable String taskCodeText, @Nullable TaskCode to_TaskCode)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: TaskCodeGroup

      Parameters:
      taskCodeGroup - Group of Task Codes
    • setTaskCode

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

      Original property name from the Odata EDM: TaskCode

      Parameters:
      taskCode - Code for Classification of a Task
    • setLanguage

      public void setLanguage(@Nullable String language)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language Key
    • setTaskCodeText

      public void setTaskCodeText(@Nullable String taskCodeText)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: TaskCodeText

      Parameters:
      taskCodeText - Text for Task Code
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity TaskCodeText 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 _TaskCode is already loaded, the result will contain the TaskCode entity. If not, an Option with result state empty is returned.
    • setTaskCode

      public void setTaskCode(TaskCode value)
      Overwrites the associated TaskCode entity for the loaded navigation property _TaskCode.
      Parameters:
      value - New TaskCode entity.
    • builder

      @Nonnull public static TaskCodeText.TaskCodeTextBuilder builder()
    • getTaskCodeGroup

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

      Original property name from the Odata EDM: TaskCodeGroup

      Returns:
      Group of Task Codes
    • getTaskCode

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

      Original property name from the Odata EDM: TaskCode

      Returns:
      Code for Classification of a Task
    • getLanguage

      @Nullable public String getLanguage()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getTaskCodeText

      @Nullable public String getTaskCodeText()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: TaskCodeText

      Returns:
      Text for Task Code
    • toString

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

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

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

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

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