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

public class ServiceContractItemProductList extends VdmEntity<ServiceContractItemProductList> implements VdmEntitySet
Product in Item Product List

Original entity name from the Odata EDM: ServiceContractItemProductList_Type

  • Field Details

  • Constructor Details

    • ServiceContractItemProductList

      public ServiceContractItemProductList()
    • ServiceContractItemProductList

      public ServiceContractItemProductList(@Nullable String serviceContractTemplate, @Nullable String serviceContractTemplateItem, @Nullable String serviceProductListItem, @Nullable String srvcContrProdListProduct, @Nullable ServiceContractTemplateItem to_Item, @Nullable ServiceContractTemplate to_ServiceContractTemplate)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ServiceContractTemplateItem

      Parameters:
      serviceContractTemplateItem - Shortened Item Number in Document
    • setServiceProductListItem

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

      Original property name from the Odata EDM: ServiceProductListItem

      Parameters:
      serviceProductListItem - Counter for CRMS4D_ORDPRP_I product list
    • setSrvcContrProdListProduct

      public void setSrvcContrProdListProduct(@Nullable String srvcContrProdListProduct)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SrvcContrProdListProduct

      Parameters:
      srvcContrProdListProduct - Material Number
    • getEntityCollection

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

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

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

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

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

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

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

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

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

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

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

      public void setServiceContractTemplate(ServiceContractTemplate value)
      Overwrites the associated ServiceContractTemplate entity for the loaded navigation property _ServiceContractTemplate.
      Parameters:
      value - New ServiceContractTemplate entity.
    • 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
    • getServiceContractTemplateItem

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

      Original property name from the Odata EDM: ServiceContractTemplateItem

      Returns:
      Shortened Item Number in Document
    • getServiceProductListItem

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

      Original property name from the Odata EDM: ServiceProductListItem

      Returns:
      Counter for CRMS4D_ORDPRP_I product list
    • getSrvcContrProdListProduct

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

      Original property name from the Odata EDM: SrvcContrProdListProduct

      Returns:
      Material Number
    • toString

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

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

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

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

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