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

public class ServiceContrItemRefObject extends VdmEntity<ServiceContrItemRefObject> implements VdmEntitySet
Item Reference Object

Original entity name from the Odata EDM: ServiceContrItemRefObject_Type

  • Field Details

  • Constructor Details

    • ServiceContrItemRefObject

      public ServiceContrItemRefObject()
    • ServiceContrItemRefObject

      public ServiceContrItemRefObject(@Nullable String serviceContract, @Nullable String serviceContractItem, @Nullable String serviceRefObjectSequenceNumber, @Nullable String serialNumber, @Nullable String serviceReferenceEquipment, @Nullable String serviceRefFunctionalLocation, @Nullable String srvcRefFuncLocLabelName, @Nullable String serviceReferenceProduct, @Nullable ServiceContractItem to_Item, @Nullable ServiceContract to_ServiceContract)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ServiceRefObjectSequenceNumber

      Parameters:
      serviceRefObjectSequenceNumber - Reference Object Counter
    • setSerialNumber

      public void setSerialNumber(@Nullable String serialNumber)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SerialNumber

      Parameters:
      serialNumber - Serial Number
    • setServiceReferenceEquipment

      public void setServiceReferenceEquipment(@Nullable String serviceReferenceEquipment)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ServiceReferenceEquipment

      Parameters:
      serviceReferenceEquipment - Equipment Number
    • setServiceRefFunctionalLocation

      public void setServiceRefFunctionalLocation(@Nullable String serviceRefFunctionalLocation)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ServiceRefFunctionalLocation

      Parameters:
      serviceRefFunctionalLocation - Functional Location
    • setSrvcRefFuncLocLabelName

      public void setSrvcRefFuncLocLabelName(@Nullable String srvcRefFuncLocLabelName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SrvcRefFuncLocLabelName

      Parameters:
      srvcRefFuncLocLabelName - Functional Location Label
    • setServiceReferenceProduct

      public void setServiceReferenceProduct(@Nullable String serviceReferenceProduct)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ServiceReferenceProduct

      Parameters:
      serviceReferenceProduct - Material Number
    • getEntityCollection

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

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

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<ServiceContrItemRefObject>
    • 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 ServiceContrItemRefObject 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 ServiceContrItemRefObject 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

    • 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
    • getServiceRefObjectSequenceNumber

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

      Original property name from the Odata EDM: ServiceRefObjectSequenceNumber

      Returns:
      Reference Object Counter
    • getSerialNumber

      @Nullable public String getSerialNumber()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SerialNumber

      Returns:
      Serial Number
    • getServiceReferenceEquipment

      @Nullable public String getServiceReferenceEquipment()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ServiceReferenceEquipment

      Returns:
      Equipment Number
    • getServiceRefFunctionalLocation

      @Nullable public String getServiceRefFunctionalLocation()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ServiceRefFunctionalLocation

      Returns:
      Functional Location
    • getSrvcRefFuncLocLabelName

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

      Original property name from the Odata EDM: SrvcRefFuncLocLabelName

      Returns:
      Functional Location Label
    • getServiceReferenceProduct

      @Nullable public String getServiceReferenceProduct()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ServiceReferenceProduct

      Returns:
      Material Number
    • toString

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

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

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

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

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