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

public class SrvcContrItemLongText extends VdmEntity<SrvcContrItemLongText> implements VdmEntitySet
Text of Service Contract Item

Original entity name from the Odata EDM: SrvcContrItemLongText_Type

  • Field Details

  • Constructor Details

    • SrvcContrItemLongText

      public SrvcContrItemLongText()
    • SrvcContrItemLongText

      public SrvcContrItemLongText(@Nullable String serviceContract, @Nullable String serviceContractItem, @Nullable String textObjectType, @Nullable String language, @Nullable String srvcDocLogTextIdentifier, @Nullable String textObjectCategory, @Nullable String srvcDocLongTextMimeType, @Nullable String srvcContrItemLongText, @Nullable String referenceTextObjectCategory, @Nullable String referenceTextObjectType, @Nullable String referenceLongTextKey, @Nullable String referenceServiceObjectType, @Nullable String referenceServiceDocument, @Nullable String referenceServiceDocumentItem, @Nullable OffsetDateTime srvcDocLongTxtCreationDateTime, @Nullable String srvcDocLongTextCreatedByUser, @Nullable OffsetDateTime srvcDocLongTextChangedDateTime, @Nullable String srvcDocLongTextChangedByUser, @Nullable ServiceContractItem to_Item, @Nullable ServiceContract to_ServiceContract)
  • Method Details

    • getType

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

      public void setServiceContract(@Nullable String serviceContract)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ServiceContract

      Parameters:
      serviceContract - Transaction ID
    • setServiceContractItem

      public void setServiceContractItem(@Nullable String serviceContractItem)
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: ServiceContractItem

      Parameters:
      serviceContractItem - Shortened Item Number in Document
    • setTextObjectType

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

      Original property name from the Odata EDM: TextObjectType

      Parameters:
      textObjectType - Text ID
    • 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
    • setSrvcDocLogTextIdentifier

      public void setSrvcDocLogTextIdentifier(@Nullable String srvcDocLogTextIdentifier)
      (Key Field) Constraints: Not nullable, Maximum length: 17

      Original property name from the Odata EDM: SrvcDocLogTextIdentifier

      Parameters:
      srvcDocLogTextIdentifier - Identifier (truncated timestamp) of a log text
    • setTextObjectCategory

      public void setTextObjectCategory(@Nullable String textObjectCategory)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: TextObjectCategory

      Parameters:
      textObjectCategory - Texts: application object
    • setSrvcDocLongTextMimeType

      public void setSrvcDocLongTextMimeType(@Nullable String srvcDocLongTextMimeType)
      Constraints: Not nullable, Maximum length: 127

      Original property name from the Odata EDM: SrvcDocLongTextMimeType

      Parameters:
      srvcDocLongTextMimeType - MIME Type
    • setSrvcContrItemLongText

      public void setSrvcContrItemLongText(@Nullable String srvcContrItemLongText)
      Constraints: Not nullable

      Original property name from the Odata EDM: SrvcContrItemLongText

      Parameters:
      srvcContrItemLongText - Long Text
    • setReferenceTextObjectCategory

      public void setReferenceTextObjectCategory(@Nullable String referenceTextObjectCategory)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ReferenceTextObjectCategory

      Parameters:
      referenceTextObjectCategory - Object of Referenced Text
    • setReferenceTextObjectType

      public void setReferenceTextObjectType(@Nullable String referenceTextObjectType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ReferenceTextObjectType

      Parameters:
      referenceTextObjectType - ID of Referenced Text
    • setReferenceLongTextKey

      public void setReferenceLongTextKey(@Nullable String referenceLongTextKey)
      Constraints: Not nullable, Maximum length: 70

      Original property name from the Odata EDM: ReferenceLongTextKey

      Parameters:
      referenceLongTextKey - Name of Referenced Text
    • setReferenceServiceObjectType

      public void setReferenceServiceObjectType(@Nullable String referenceServiceObjectType)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ReferenceServiceObjectType

      Parameters:
      referenceServiceObjectType - Business Trans. Cat.
    • setReferenceServiceDocument

      public void setReferenceServiceDocument(@Nullable String referenceServiceDocument)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ReferenceServiceDocument

      Parameters:
      referenceServiceDocument - Transaction ID
    • setReferenceServiceDocumentItem

      public void setReferenceServiceDocumentItem(@Nullable String referenceServiceDocumentItem)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: ReferenceServiceDocumentItem

      Parameters:
      referenceServiceDocumentItem - Shortened Item Number in Document
    • setSrvcDocLongTxtCreationDateTime

      public void setSrvcDocLongTxtCreationDateTime(@Nullable OffsetDateTime srvcDocLongTxtCreationDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: SrvcDocLongTxtCreationDateTime

      Parameters:
      srvcDocLongTxtCreationDateTime - Creation timestamp of a text
    • setSrvcDocLongTextCreatedByUser

      public void setSrvcDocLongTextCreatedByUser(@Nullable String srvcDocLongTextCreatedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: SrvcDocLongTextCreatedByUser

      Parameters:
      srvcDocLongTextCreatedByUser - User who created a text
    • setSrvcDocLongTextChangedDateTime

      public void setSrvcDocLongTextChangedDateTime(@Nullable OffsetDateTime srvcDocLongTextChangedDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: SrvcDocLongTextChangedDateTime

      Parameters:
      srvcDocLongTextChangedDateTime - Last change timestamp of a text
    • setSrvcDocLongTextChangedByUser

      public void setSrvcDocLongTextChangedByUser(@Nullable String srvcDocLongTextChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: SrvcDocLongTextChangedByUser

      Parameters:
      srvcDocLongTextChangedByUser - User who last changed a text
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SrvcContrItemLongText 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 _Item is already loaded, the result will contain the ServiceContractItem entity. If not, an Option with result state empty is returned.
    • setItem

      public void setItem(ServiceContractItem value)
      Overwrites the associated ServiceContractItem entity for the loaded navigation property _Item.
      Parameters:
      value - New ServiceContractItem entity.
    • getServiceContractIfPresent

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

      If the navigation property for an entity SrvcContrItemLongText 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 _ServiceContract is already loaded, the result will contain the ServiceContract entity. If not, an Option with result state empty is returned.
    • setServiceContract

      public void setServiceContract(ServiceContract value)
      Overwrites the associated ServiceContract entity for the loaded navigation property _ServiceContract.
      Parameters:
      value - New ServiceContract entity.
    • builder

      @Nonnull public static SrvcContrItemLongText.SrvcContrItemLongTextBuilder builder()
    • getServiceContract

      @Nullable public String getServiceContract()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ServiceContract

      Returns:
      Transaction ID
    • getServiceContractItem

      @Nullable public String getServiceContractItem()
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: ServiceContractItem

      Returns:
      Shortened Item Number in Document
    • getTextObjectType

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

      Original property name from the Odata EDM: TextObjectType

      Returns:
      Text ID
    • getLanguage

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

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getSrvcDocLogTextIdentifier

      @Nullable public String getSrvcDocLogTextIdentifier()
      (Key Field) Constraints: Not nullable, Maximum length: 17

      Original property name from the Odata EDM: SrvcDocLogTextIdentifier

      Returns:
      Identifier (truncated timestamp) of a log text
    • getTextObjectCategory

      @Nullable public String getTextObjectCategory()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: TextObjectCategory

      Returns:
      Texts: application object
    • getSrvcDocLongTextMimeType

      @Nullable public String getSrvcDocLongTextMimeType()
      Constraints: Not nullable, Maximum length: 127

      Original property name from the Odata EDM: SrvcDocLongTextMimeType

      Returns:
      MIME Type
    • getSrvcContrItemLongText

      @Nullable public String getSrvcContrItemLongText()
      Constraints: Not nullable

      Original property name from the Odata EDM: SrvcContrItemLongText

      Returns:
      Long Text
    • getReferenceTextObjectCategory

      @Nullable public String getReferenceTextObjectCategory()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ReferenceTextObjectCategory

      Returns:
      Object of Referenced Text
    • getReferenceTextObjectType

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

      Original property name from the Odata EDM: ReferenceTextObjectType

      Returns:
      ID of Referenced Text
    • getReferenceLongTextKey

      @Nullable public String getReferenceLongTextKey()
      Constraints: Not nullable, Maximum length: 70

      Original property name from the Odata EDM: ReferenceLongTextKey

      Returns:
      Name of Referenced Text
    • getReferenceServiceObjectType

      @Nullable public String getReferenceServiceObjectType()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ReferenceServiceObjectType

      Returns:
      Business Trans. Cat.
    • getReferenceServiceDocument

      @Nullable public String getReferenceServiceDocument()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ReferenceServiceDocument

      Returns:
      Transaction ID
    • getReferenceServiceDocumentItem

      @Nullable public String getReferenceServiceDocumentItem()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: ReferenceServiceDocumentItem

      Returns:
      Shortened Item Number in Document
    • getSrvcDocLongTxtCreationDateTime

      @Nullable public OffsetDateTime getSrvcDocLongTxtCreationDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: SrvcDocLongTxtCreationDateTime

      Returns:
      Creation timestamp of a text
    • getSrvcDocLongTextCreatedByUser

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

      Original property name from the Odata EDM: SrvcDocLongTextCreatedByUser

      Returns:
      User who created a text
    • getSrvcDocLongTextChangedDateTime

      @Nullable public OffsetDateTime getSrvcDocLongTextChangedDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: SrvcDocLongTextChangedDateTime

      Returns:
      Last change timestamp of a text
    • getSrvcDocLongTextChangedByUser

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

      Original property name from the Odata EDM: SrvcDocLongTextChangedByUser

      Returns:
      User who last changed a text
    • toString

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

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

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

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

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