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

public class CmplRqRsltPCNCntr extends VdmEntity<CmplRqRsltPCNCntr> implements VdmEntitySet
Poison Center Notification Country

Original entity name from the Odata EDM: CmplRqRsltPCNCntr_Type

  • Field Details

  • Constructor Details

    • CmplRqRsltPCNCntr

      public CmplRqRsltPCNCntr()
    • CmplRqRsltPCNCntr

      public CmplRqRsltPCNCntr(@Nullable UUID poisonCtrNotifCntrsUUID, @Nullable String country, @Nullable CmplRqRsltPCNDets to_PCNDetail, @Nullable CmplRqRsltPCN to_PoisonCenterNotification)
  • Method Details

    • getType

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

      public void setPoisonCtrNotifCntrsUUID(@Nullable UUID poisonCtrNotifCntrsUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: PoisonCtrNotifCntrsUUID

      Parameters:
      poisonCtrNotifCntrsUUID - Poison Centre Notification Countries UUID
    • setCountry

      public void setCountry(@Nullable String country)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Country

      Parameters:
      country - Country/Region
    • getEntityCollection

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

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

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

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

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

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

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

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

      public void setPCNDetail(CmplRqRsltPCNDets value)
      Overwrites the associated CmplRqRsltPCNDets entity for the loaded navigation property _PCNDetail.
      Parameters:
      value - New CmplRqRsltPCNDets entity.
    • 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 CmplRqRsltPCNCntr 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 CmplRqRsltPCNCntr.CmplRqRsltPCNCntrBuilder builder()
    • getPoisonCtrNotifCntrsUUID

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

      Original property name from the Odata EDM: PoisonCtrNotifCntrsUUID

      Returns:
      Poison Centre Notification Countries UUID
    • getCountry

      @Nullable public String getCountry()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Country

      Returns:
      Country/Region
    • toString

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

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

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

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

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