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

public class SrvcContrPartner extends VdmEntity<SrvcContrPartner> implements VdmEntitySet
Service Contract Partner

Original entity name from the Odata EDM: SrvcContrPartner_Type

  • Field Details

  • Constructor Details

    • SrvcContrPartner

      public SrvcContrPartner()
    • SrvcContrPartner

      public SrvcContrPartner(@Nullable String serviceContract, @Nullable String custMgmtPartnerFunction, @Nullable String custMgmtBusinessPartner, @Nullable String custMgmtPartFunctionCategory, @Nullable Boolean custMgmtPartnerIsMainPartner, @Nullable ServiceContract to_ServiceContract)
  • Method Details

    • getType

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

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

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

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

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

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

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

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

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

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