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

public class ServiceCancellationParty extends VdmEntity<ServiceCancellationParty> implements VdmEntitySet
Service Cancellation Party

Original entity name from the Odata EDM: ServiceCancellationParty_Type

  • Field Details

  • Constructor Details

    • ServiceCancellationParty

      public ServiceCancellationParty()
    • ServiceCancellationParty

      public ServiceCancellationParty(@Nullable String serviceContractCanclnParty, @Nullable String serviceContrCanclnPartyName, List<ServiceCancellationPartyText> to_ServiceCancellationPartyText)
  • Method Details

    • getType

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

      public void setServiceContractCanclnParty(@Nullable String serviceContractCanclnParty)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ServiceContractCanclnParty

      Parameters:
      serviceContractCanclnParty - Cancelling Party
    • setServiceContrCanclnPartyName

      public void setServiceContrCanclnPartyName(@Nullable String serviceContrCanclnPartyName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ServiceContrCanclnPartyName

      Parameters:
      serviceContrCanclnPartyName - Description (40 Characters)
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ServiceCancellationParty 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 _ServiceCancellationPartyText is already loaded, the result will contain the ServiceCancellationPartyText entities. If not, an Option with result state empty is returned.
    • setServiceCancellationPartyText

      public void setServiceCancellationPartyText(@Nonnull List<ServiceCancellationPartyText> value)
      Overwrites the list of associated ServiceCancellationPartyText entities for the loaded navigation property _ServiceCancellationPartyText.

      If the navigation property _ServiceCancellationPartyText of a queried ServiceCancellationParty 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 ServiceCancellationPartyText entities.
    • addServiceCancellationPartyText

      public void addServiceCancellationPartyText(ServiceCancellationPartyText... entity)
      Adds elements to the list of associated ServiceCancellationPartyText entities. This corresponds to the OData navigation property _ServiceCancellationPartyText.

      If the navigation property _ServiceCancellationPartyText of a queried ServiceCancellationParty 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 ServiceCancellationPartyText entities.
    • builder

    • getServiceContractCanclnParty

      @Nullable public String getServiceContractCanclnParty()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ServiceContractCanclnParty

      Returns:
      Cancelling Party
    • getServiceContrCanclnPartyName

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

      Original property name from the Odata EDM: ServiceContrCanclnPartyName

      Returns:
      Description (40 Characters)
    • toString

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

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

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

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

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