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

public class ServiceContractTemplate extends VdmEntity<ServiceContractTemplate> implements VdmEntitySet
Service Contact Template

Original entity name from the Odata EDM: ServiceContractTemplate_Type

  • Field Details

  • Constructor Details

    • ServiceContractTemplate

      public ServiceContractTemplate()
    • ServiceContractTemplate

      public ServiceContractTemplate(@Nullable String serviceContractTemplate, @Nullable String serviceObjectType, @Nullable String serviceContractTemplateType, @Nullable String srvcContrTmplDescription, @Nullable String language, @Nullable OffsetDateTime serviceDocCreationDateTime, @Nullable OffsetDateTime serviceDocChangedDateTime, @Nullable String serviceDocumentCreatedByUser, @Nullable String serviceDocumentChangedByUser, @Nullable LocalDate postingDate, @Nullable OffsetDateTime srvcContrTmplValdtyStrtDteTime, @Nullable OffsetDateTime srvcContrTmplValdtyEndDateTime, @Nullable BigDecimal srvcContrDuration, @Nullable String srvcContrDurationUnitSAPCode, @Nullable String srvcContrDurationUnitISOCode, @Nullable String srvcContrTmplStatus, @Nullable Boolean srvcContrTmplHasError, @Nullable Boolean srvcContrTmplIsNew, @Nullable Boolean srvcContrTmplIsInProcess, @Nullable Boolean srvcContrTmplIsReleased, @Nullable Boolean srvcContrTmplIsCompleted, @Nullable String respEmployeeBusinessPartnerId, @Nullable String purchaseOrderByCustomer, @Nullable LocalDate customerPurchaseOrderDate, List<ServiceContractTemplateItem> to_Item, List<SrvcContrTmplLongText> to_LongText)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ServiceContractTemplate

      Parameters:
      serviceContractTemplate - Transaction ID
    • setServiceObjectType

      public void setServiceObjectType(@Nullable String serviceObjectType)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ServiceObjectType

      Parameters:
      serviceObjectType - Business Trans. Cat.
    • setServiceContractTemplateType

      public void setServiceContractTemplateType(@Nullable String serviceContractTemplateType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ServiceContractTemplateType

      Parameters:
      serviceContractTemplateType - Business Transaction Type
    • setSrvcContrTmplDescription

      public void setSrvcContrTmplDescription(@Nullable String srvcContrTmplDescription)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SrvcContrTmplDescription

      Parameters:
      srvcContrTmplDescription - Transaction Description
    • setLanguage

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

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language Key of Description
    • setServiceDocCreationDateTime

      public void setServiceDocCreationDateTime(@Nullable OffsetDateTime serviceDocCreationDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: ServiceDocCreationDateTime

      Parameters:
      serviceDocCreationDateTime - Created At
    • setServiceDocChangedDateTime

      public void setServiceDocChangedDateTime(@Nullable OffsetDateTime serviceDocChangedDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: ServiceDocChangedDateTime

      Parameters:
      serviceDocChangedDateTime - Changed At
    • setServiceDocumentCreatedByUser

      public void setServiceDocumentCreatedByUser(@Nullable String serviceDocumentCreatedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ServiceDocumentCreatedByUser

      Parameters:
      serviceDocumentCreatedByUser - User that Created the Transaction
    • setServiceDocumentChangedByUser

      public void setServiceDocumentChangedByUser(@Nullable String serviceDocumentChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ServiceDocumentChangedByUser

      Parameters:
      serviceDocumentChangedByUser - Transaction Last Changed By
    • setPostingDate

      public void setPostingDate(@Nullable LocalDate postingDate)
      Constraints: Nullable

      Original property name from the Odata EDM: PostingDate

      Parameters:
      postingDate - Posting Date for a Business Transaction
    • setSrvcContrTmplValdtyStrtDteTime

      public void setSrvcContrTmplValdtyStrtDteTime(@Nullable OffsetDateTime srvcContrTmplValdtyStrtDteTime)
      Constraints: Nullable

      Original property name from the Odata EDM: SrvcContrTmplValdtyStrtDteTime

      Parameters:
      srvcContrTmplValdtyStrtDteTime - Template Start Date
    • setSrvcContrTmplValdtyEndDateTime

      public void setSrvcContrTmplValdtyEndDateTime(@Nullable OffsetDateTime srvcContrTmplValdtyEndDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: SrvcContrTmplValdtyEndDateTime

      Parameters:
      srvcContrTmplValdtyEndDateTime - Template End Date
    • setSrvcContrDuration

      public void setSrvcContrDuration(@Nullable BigDecimal srvcContrDuration)
      Constraints: Not nullable, Precision: 13

      Original property name from the Odata EDM: SrvcContrDuration

      Parameters:
      srvcContrDuration - Numerical Value of Duration
    • setSrvcContrDurationUnitSAPCode

      public void setSrvcContrDurationUnitSAPCode(@Nullable String srvcContrDurationUnitSAPCode)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SrvcContrDurationUnitSAPCode

      Parameters:
      srvcContrDurationUnitSAPCode - Base Unit of Measure
    • setSrvcContrDurationUnitISOCode

      public void setSrvcContrDurationUnitISOCode(@Nullable String srvcContrDurationUnitISOCode)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SrvcContrDurationUnitISOCode

      Parameters:
      srvcContrDurationUnitISOCode - ISO Code for Unit of Measurement
    • setSrvcContrTmplStatus

      public void setSrvcContrTmplStatus(@Nullable String srvcContrTmplStatus)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SrvcContrTmplStatus

      Parameters:
      srvcContrTmplStatus - Life Cycle Status
    • setSrvcContrTmplHasError

      public void setSrvcContrTmplHasError(@Nullable Boolean srvcContrTmplHasError)
      Constraints: Not nullable

      Original property name from the Odata EDM: SrvcContrTmplHasError

      Parameters:
      srvcContrTmplHasError - Checkbox
    • setSrvcContrTmplIsNew

      public void setSrvcContrTmplIsNew(@Nullable Boolean srvcContrTmplIsNew)
      Constraints: Not nullable

      Original property name from the Odata EDM: SrvcContrTmplIsNew

      Parameters:
      srvcContrTmplIsNew - Checkbox
    • setSrvcContrTmplIsInProcess

      public void setSrvcContrTmplIsInProcess(@Nullable Boolean srvcContrTmplIsInProcess)
      Constraints: Not nullable

      Original property name from the Odata EDM: SrvcContrTmplIsInProcess

      Parameters:
      srvcContrTmplIsInProcess - Checkbox
    • setSrvcContrTmplIsReleased

      public void setSrvcContrTmplIsReleased(@Nullable Boolean srvcContrTmplIsReleased)
      Constraints: Not nullable

      Original property name from the Odata EDM: SrvcContrTmplIsReleased

      Parameters:
      srvcContrTmplIsReleased - Checkbox
    • setSrvcContrTmplIsCompleted

      public void setSrvcContrTmplIsCompleted(@Nullable Boolean srvcContrTmplIsCompleted)
      Constraints: Not nullable

      Original property name from the Odata EDM: SrvcContrTmplIsCompleted

      Parameters:
      srvcContrTmplIsCompleted - Checkbox
    • setRespEmployeeBusinessPartnerId

      public void setRespEmployeeBusinessPartnerId(@Nullable String respEmployeeBusinessPartnerId)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: RespEmployeeBusinessPartnerId

      Parameters:
      respEmployeeBusinessPartnerId - Employee Responsible
    • setPurchaseOrderByCustomer

      public void setPurchaseOrderByCustomer(@Nullable String purchaseOrderByCustomer)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: PurchaseOrderByCustomer

      Parameters:
      purchaseOrderByCustomer - Sold-To Party's External Reference Number
    • setCustomerPurchaseOrderDate

      public void setCustomerPurchaseOrderDate(@Nullable LocalDate customerPurchaseOrderDate)
      Constraints: Nullable

      Original property name from the Odata EDM: CustomerPurchaseOrderDate

      Parameters:
      customerPurchaseOrderDate - Reference Document Date
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ServiceContractTemplate 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 ServiceContractTemplateItem entities. If not, an Option with result state empty is returned.
    • setItem

      public void setItem(@Nonnull List<ServiceContractTemplateItem> value)
      Overwrites the list of associated ServiceContractTemplateItem entities for the loaded navigation property _Item.

      If the navigation property _Item of a queried ServiceContractTemplate 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 ServiceContractTemplateItem entities.
    • addItem

      public void addItem(ServiceContractTemplateItem... entity)
      Adds elements to the list of associated ServiceContractTemplateItem entities. This corresponds to the OData navigation property _Item.

      If the navigation property _Item of a queried ServiceContractTemplate 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 ServiceContractTemplateItem entities.
    • getLongTextIfPresent

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

      If the navigation property for an entity ServiceContractTemplate 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 _LongText is already loaded, the result will contain the SrvcContrTmplLongText entities. If not, an Option with result state empty is returned.
    • setLongText

      public void setLongText(@Nonnull List<SrvcContrTmplLongText> value)
      Overwrites the list of associated SrvcContrTmplLongText entities for the loaded navigation property _LongText.

      If the navigation property _LongText of a queried ServiceContractTemplate 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 SrvcContrTmplLongText entities.
    • addLongText

      public void addLongText(SrvcContrTmplLongText... entity)
      Adds elements to the list of associated SrvcContrTmplLongText entities. This corresponds to the OData navigation property _LongText.

      If the navigation property _LongText of a queried ServiceContractTemplate 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 SrvcContrTmplLongText entities.
    • builder

    • getServiceContractTemplate

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

      Original property name from the Odata EDM: ServiceContractTemplate

      Returns:
      Transaction ID
    • getServiceObjectType

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

      Original property name from the Odata EDM: ServiceObjectType

      Returns:
      Business Trans. Cat.
    • getServiceContractTemplateType

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

      Original property name from the Odata EDM: ServiceContractTemplateType

      Returns:
      Business Transaction Type
    • getSrvcContrTmplDescription

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

      Original property name from the Odata EDM: SrvcContrTmplDescription

      Returns:
      Transaction Description
    • getLanguage

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

      Original property name from the Odata EDM: Language

      Returns:
      Language Key of Description
    • getServiceDocCreationDateTime

      @Nullable public OffsetDateTime getServiceDocCreationDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: ServiceDocCreationDateTime

      Returns:
      Created At
    • getServiceDocChangedDateTime

      @Nullable public OffsetDateTime getServiceDocChangedDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: ServiceDocChangedDateTime

      Returns:
      Changed At
    • getServiceDocumentCreatedByUser

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

      Original property name from the Odata EDM: ServiceDocumentCreatedByUser

      Returns:
      User that Created the Transaction
    • getServiceDocumentChangedByUser

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

      Original property name from the Odata EDM: ServiceDocumentChangedByUser

      Returns:
      Transaction Last Changed By
    • getPostingDate

      @Nullable public LocalDate getPostingDate()
      Constraints: Nullable

      Original property name from the Odata EDM: PostingDate

      Returns:
      Posting Date for a Business Transaction
    • getSrvcContrTmplValdtyStrtDteTime

      @Nullable public OffsetDateTime getSrvcContrTmplValdtyStrtDteTime()
      Constraints: Nullable

      Original property name from the Odata EDM: SrvcContrTmplValdtyStrtDteTime

      Returns:
      Template Start Date
    • getSrvcContrTmplValdtyEndDateTime

      @Nullable public OffsetDateTime getSrvcContrTmplValdtyEndDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: SrvcContrTmplValdtyEndDateTime

      Returns:
      Template End Date
    • getSrvcContrDuration

      @Nullable public BigDecimal getSrvcContrDuration()
      Constraints: Not nullable, Precision: 13

      Original property name from the Odata EDM: SrvcContrDuration

      Returns:
      Numerical Value of Duration
    • getSrvcContrDurationUnitSAPCode

      @Nullable public String getSrvcContrDurationUnitSAPCode()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SrvcContrDurationUnitSAPCode

      Returns:
      Base Unit of Measure
    • getSrvcContrDurationUnitISOCode

      @Nullable public String getSrvcContrDurationUnitISOCode()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SrvcContrDurationUnitISOCode

      Returns:
      ISO Code for Unit of Measurement
    • getSrvcContrTmplStatus

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

      Original property name from the Odata EDM: SrvcContrTmplStatus

      Returns:
      Life Cycle Status
    • getSrvcContrTmplHasError

      @Nullable public Boolean getSrvcContrTmplHasError()
      Constraints: Not nullable

      Original property name from the Odata EDM: SrvcContrTmplHasError

      Returns:
      Checkbox
    • getSrvcContrTmplIsNew

      @Nullable public Boolean getSrvcContrTmplIsNew()
      Constraints: Not nullable

      Original property name from the Odata EDM: SrvcContrTmplIsNew

      Returns:
      Checkbox
    • getSrvcContrTmplIsInProcess

      @Nullable public Boolean getSrvcContrTmplIsInProcess()
      Constraints: Not nullable

      Original property name from the Odata EDM: SrvcContrTmplIsInProcess

      Returns:
      Checkbox
    • getSrvcContrTmplIsReleased

      @Nullable public Boolean getSrvcContrTmplIsReleased()
      Constraints: Not nullable

      Original property name from the Odata EDM: SrvcContrTmplIsReleased

      Returns:
      Checkbox
    • getSrvcContrTmplIsCompleted

      @Nullable public Boolean getSrvcContrTmplIsCompleted()
      Constraints: Not nullable

      Original property name from the Odata EDM: SrvcContrTmplIsCompleted

      Returns:
      Checkbox
    • getRespEmployeeBusinessPartnerId

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

      Original property name from the Odata EDM: RespEmployeeBusinessPartnerId

      Returns:
      Employee Responsible
    • getPurchaseOrderByCustomer

      @Nullable public String getPurchaseOrderByCustomer()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: PurchaseOrderByCustomer

      Returns:
      Sold-To Party's External Reference Number
    • getCustomerPurchaseOrderDate

      @Nullable public LocalDate getCustomerPurchaseOrderDate()
      Constraints: Nullable

      Original property name from the Odata EDM: CustomerPurchaseOrderDate

      Returns:
      Reference Document Date
    • toString

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

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

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

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

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