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

public class SrvcContrItemPartner extends VdmEntity<SrvcContrItemPartner> implements VdmEntitySet
Partner of Service Contract Item

Original entity name from the Odata EDM: SrvcContrItemPartner_Type

  • Field Details

  • Constructor Details

    • SrvcContrItemPartner

      public SrvcContrItemPartner()
    • SrvcContrItemPartner

      public SrvcContrItemPartner(@Nullable String serviceContract, @Nullable String serviceContractItem, @Nullable String custMgmtPartnerFunction, @Nullable String custMgmtBusinessPartner, @Nullable String custMgmtPartFunctionCategory, @Nullable Boolean custMgmtPartnerIsMainPartner, @Nullable ServiceContractItem to_Item, @Nullable ServiceContract to_ServiceContract)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: CustMgmtPartnerFunction

      Parameters:
      custMgmtPartnerFunction - The custMgmtPartnerFunction to set.
    • setCustMgmtBusinessPartner

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

      Original property name from the Odata EDM: CustMgmtBusinessPartner

      Parameters:
      custMgmtBusinessPartner - Business Partner Number
    • setCustMgmtPartFunctionCategory

      public void setCustMgmtPartFunctionCategory(@Nullable String custMgmtPartFunctionCategory)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CustMgmtPartFunctionCategory

      Parameters:
      custMgmtPartFunctionCategory - Partner Function Category
    • setCustMgmtPartnerIsMainPartner

      public void setCustMgmtPartnerIsMainPartner(@Nullable Boolean custMgmtPartnerIsMainPartner)
      Constraints: Not nullable

      Original property name from the Odata EDM: CustMgmtPartnerIsMainPartner

      Parameters:
      custMgmtPartnerIsMainPartner - Main Partner (For Ambiguous Partner Functions)
    • getEntityCollection

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

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

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

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

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

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

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

      Original property name from the Odata EDM: CustMgmtPartnerFunction

      Returns:
      The custMgmtPartnerFunction contained in this VdmEntity.
    • getCustMgmtBusinessPartner

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

      Original property name from the Odata EDM: CustMgmtBusinessPartner

      Returns:
      Business Partner Number
    • getCustMgmtPartFunctionCategory

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

      Original property name from the Odata EDM: CustMgmtPartFunctionCategory

      Returns:
      Partner Function Category
    • getCustMgmtPartnerIsMainPartner

      @Nullable public Boolean getCustMgmtPartnerIsMainPartner()
      Constraints: Not nullable

      Original property name from the Odata EDM: CustMgmtPartnerIsMainPartner

      Returns:
      Main Partner (For Ambiguous Partner Functions)
    • toString

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

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

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

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

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