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

public class CmplRqRsltPCNDets extends VdmEntity<CmplRqRsltPCNDets> implements VdmEntitySet
Poison Center Notification Detail

Original entity name from the Odata EDM: CmplRqRsltPCNDets_Type

  • Field Details

  • Constructor Details

    • CmplRqRsltPCNDets

      public CmplRqRsltPCNDets()
    • CmplRqRsltPCNDets

      public CmplRqRsltPCNDets(@Nullable UUID poisonCtrNotifDetsUUID, @Nullable String pCNUniqueFormulaIdentifier, List<CmplRqRsltPCNCntr> to_PCNCountry, @Nullable CmplRqRsltPCN to_PoisonCenterNotification)
  • Method Details

    • getType

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

      public void setPoisonCtrNotifDetsUUID(@Nullable UUID poisonCtrNotifDetsUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: PoisonCtrNotifDetsUUID

      Parameters:
      poisonCtrNotifDetsUUID - Poison Centre Notification Details UUID
    • setPCNUniqueFormulaIdentifier

      public void setPCNUniqueFormulaIdentifier(@Nullable String pCNUniqueFormulaIdentifier)
      Constraints: Not nullable, Maximum length: 19

      Original property name from the Odata EDM: PCNUniqueFormulaIdentifier

      Parameters:
      pCNUniqueFormulaIdentifier - Unique Formula Identifier for Poison Centre Notification
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity CmplRqRsltPCNDets 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 _PCNCountry is already loaded, the result will contain the CmplRqRsltPCNCntr entities. If not, an Option with result state empty is returned.
    • setPCNCountry

      public void setPCNCountry(@Nonnull List<CmplRqRsltPCNCntr> value)
      Overwrites the list of associated CmplRqRsltPCNCntr entities for the loaded navigation property _PCNCountry.

      If the navigation property _PCNCountry of a queried CmplRqRsltPCNDets 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 CmplRqRsltPCNCntr entities.
    • addPCNCountry

      public void addPCNCountry(CmplRqRsltPCNCntr... entity)
      Adds elements to the list of associated CmplRqRsltPCNCntr entities. This corresponds to the OData navigation property _PCNCountry.

      If the navigation property _PCNCountry of a queried CmplRqRsltPCNDets 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 CmplRqRsltPCNCntr entities.
    • getPoisonCenterNotificationIfPresent

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

      If the navigation property for an entity CmplRqRsltPCNDets 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 _PoisonCenterNotification is already loaded, the result will contain the CmplRqRsltPCN entity. If not, an Option with result state empty is returned.
    • setPoisonCenterNotification

      public void setPoisonCenterNotification(CmplRqRsltPCN value)
      Overwrites the associated CmplRqRsltPCN entity for the loaded navigation property _PoisonCenterNotification.
      Parameters:
      value - New CmplRqRsltPCN entity.
    • builder

      @Nonnull public static CmplRqRsltPCNDets.CmplRqRsltPCNDetsBuilder builder()
    • getPoisonCtrNotifDetsUUID

      @Nullable public UUID getPoisonCtrNotifDetsUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: PoisonCtrNotifDetsUUID

      Returns:
      Poison Centre Notification Details UUID
    • getPCNUniqueFormulaIdentifier

      @Nullable public String getPCNUniqueFormulaIdentifier()
      Constraints: Not nullable, Maximum length: 19

      Original property name from the Odata EDM: PCNUniqueFormulaIdentifier

      Returns:
      Unique Formula Identifier for Poison Centre Notification
    • toString

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

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

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

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

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