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

public class DangerousGoodsClassification extends VdmEntity<DangerousGoodsClassification> implements VdmEntitySet
Dangerous Goods Classification

Original entity name from the Odata EDM: DangerousGoodsClassification_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setCmplRqRsltUUID(@Nullable UUID cmplRqRsltUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: CmplRqRsltUUID

      Parameters:
      cmplRqRsltUUID - Compliance Assessment UUID
    • setProduct

      public void setProduct(@Nullable String product)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Parameters:
      product - Product Number
    • setComplianceRequirement

      public void setComplianceRequirement(@Nullable String complianceRequirement)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ComplianceRequirement

      Parameters:
      complianceRequirement - Compliance Requirement
    • setCmplRqVers

      public void setCmplRqVers(@Nullable String cmplRqVers)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: CmplRqVers

      Parameters:
      cmplRqVers - Compliance Requirement Version ID
    • setCmplRqVersName

      public void setCmplRqVersName(@Nullable String cmplRqVersName)
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: CmplRqVersName

      Parameters:
      cmplRqVersName - Compliance Requirement Name
    • setProductIsNoDangerousGood

      public void setProductIsNoDangerousGood(@Nullable Boolean productIsNoDangerousGood)
      Constraints: Not nullable

      Original property name from the Odata EDM: ProductIsNoDangerousGood

      Parameters:
      productIsNoDangerousGood - Product Is No Dangerous Good
    • setProdCmplncDngrsGdsIdnNmbrType

      public void setProdCmplncDngrsGdsIdnNmbrType(@Nullable String prodCmplncDngrsGdsIdnNmbrType)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ProdCmplncDngrsGdsIdnNmbrType

      Parameters:
      prodCmplncDngrsGdsIdnNmbrType - Dangerous Goods Identfication Number Prefix
    • setProdCmplncDngrsGdsIdnNmbr

      public void setProdCmplncDngrsGdsIdnNmbr(@Nullable String prodCmplncDngrsGdsIdnNmbr)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ProdCmplncDngrsGdsIdnNmbr

      Parameters:
      prodCmplncDngrsGdsIdnNmbr - Dangerous Goods Identification Number
    • setDngrsGdsMainAndSubRiskText

      public void setDngrsGdsMainAndSubRiskText(@Nullable String dngrsGdsMainAndSubRiskText)
      Constraints: Not nullable, Maximum length: 132

      Original property name from the Odata EDM: DngrsGdsMainAndSubRiskText

      Parameters:
      dngrsGdsMainAndSubRiskText - Dangerous Goods Main And Subrisk
    • setIMDGEmSchedSpill

      public void setIMDGEmSchedSpill(@Nullable String iMDGEmSchedSpill)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: IMDGEmSchedSpill

      Parameters:
      iMDGEmSchedSpill - IMDG EmS Code for Spill
    • setIMDGEmSchedSpillIsUnderlined

      public void setIMDGEmSchedSpillIsUnderlined(@Nullable String iMDGEmSchedSpillIsUnderlined)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: IMDGEmSchedSpillIsUnderlined

      Parameters:
      iMDGEmSchedSpillIsUnderlined - IMDG EmS Code for Spill Is Underlined
    • setIMDGEmSchedFire

      public void setIMDGEmSchedFire(@Nullable String iMDGEmSchedFire)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: IMDGEmSchedFire

      Parameters:
      iMDGEmSchedFire - IMDG EmS Code for FIRE
    • setIMDGEmSchedFireIsUnderlined

      public void setIMDGEmSchedFireIsUnderlined(@Nullable String iMDGEmSchedFireIsUnderlined)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: IMDGEmSchedFireIsUnderlined

      Parameters:
      iMDGEmSchedFireIsUnderlined - IMDG EmS Code for Fire Is Underlined
    • setEmergencyResponseGuidebookCode

      public void setEmergencyResponseGuidebookCode(@Nullable String emergencyResponseGuidebookCode)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: EmergencyResponseGuidebookCode

      Parameters:
      emergencyResponseGuidebookCode - Emergency Response Guidebook Code
    • setInitialEmergencyRspGuideCode

      public void setInitialEmergencyRspGuideCode(@Nullable String initialEmergencyRspGuideCode)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: InitialEmergencyRspGuideCode

      Parameters:
      initialEmergencyRspGuideCode - Initial Emergency Response Guide Code
    • setAU_ADGEmgyRspGuidebookCode

      public void setAU_ADGEmgyRspGuidebookCode(@Nullable String aU_ADGEmgyRspGuidebookCode)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: AU_ADGEmgyRspGuidebookCode

      Parameters:
      aU_ADGEmgyRspGuidebookCode - Australian Emergency Response Guidebook
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity DangerousGoodsClassification 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 _HandlingLabel is already loaded, the result will contain the DngrsGdsClassfctnHandlingLabel entities. If not, an Option with result state empty is returned.
    • setHandlingLabel

      public void setHandlingLabel(@Nonnull List<DngrsGdsClassfctnHandlingLabel> value)
      Overwrites the list of associated DngrsGdsClassfctnHandlingLabel entities for the loaded navigation property _HandlingLabel.

      If the navigation property _HandlingLabel of a queried DangerousGoodsClassification 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 DngrsGdsClassfctnHandlingLabel entities.
    • addHandlingLabel

      public void addHandlingLabel(DngrsGdsClassfctnHandlingLabel... entity)
      Adds elements to the list of associated DngrsGdsClassfctnHandlingLabel entities. This corresponds to the OData navigation property _HandlingLabel.

      If the navigation property _HandlingLabel of a queried DangerousGoodsClassification 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 DngrsGdsClassfctnHandlingLabel entities.
    • getHazardLabelIfPresent

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

      If the navigation property for an entity DangerousGoodsClassification 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 _HazardLabel is already loaded, the result will contain the DngrsGdsClassfctnHazardLabel entities. If not, an Option with result state empty is returned.
    • setHazardLabel

      public void setHazardLabel(@Nonnull List<DngrsGdsClassfctnHazardLabel> value)
      Overwrites the list of associated DngrsGdsClassfctnHazardLabel entities for the loaded navigation property _HazardLabel.

      If the navigation property _HazardLabel of a queried DangerousGoodsClassification 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 DngrsGdsClassfctnHazardLabel entities.
    • addHazardLabel

      public void addHazardLabel(DngrsGdsClassfctnHazardLabel... entity)
      Adds elements to the list of associated DngrsGdsClassfctnHazardLabel entities. This corresponds to the OData navigation property _HazardLabel.

      If the navigation property _HazardLabel of a queried DangerousGoodsClassification 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 DngrsGdsClassfctnHazardLabel entities.
    • getModeOfTransportIfPresent

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

      If the navigation property for an entity DangerousGoodsClassification 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 _ModeOfTransport is already loaded, the result will contain the DngrsGdsClassfctnModeOfTranspt entities. If not, an Option with result state empty is returned.
    • setModeOfTransport

      public void setModeOfTransport(@Nonnull List<DngrsGdsClassfctnModeOfTranspt> value)
      Overwrites the list of associated DngrsGdsClassfctnModeOfTranspt entities for the loaded navigation property _ModeOfTransport.

      If the navigation property _ModeOfTransport of a queried DangerousGoodsClassification 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 DngrsGdsClassfctnModeOfTranspt entities.
    • addModeOfTransport

      public void addModeOfTransport(DngrsGdsClassfctnModeOfTranspt... entity)
      Adds elements to the list of associated DngrsGdsClassfctnModeOfTranspt entities. This corresponds to the OData navigation property _ModeOfTransport.

      If the navigation property _ModeOfTransport of a queried DangerousGoodsClassification 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 DngrsGdsClassfctnModeOfTranspt entities.
    • getDangerousGoodsDescriptions

      @Nonnull public static BoundFunction.CollectionToCollection<DangerousGoodsClassification,GetDangerousGoodsDescriptionResult_Type> getDangerousGoodsDescriptions(@Nonnull String product, @Nonnull String departureCountry, @Nonnull String destinationCountry, @Nonnull String outputScenario, @Nonnull BigDecimal shippedQuantityInOrderQtyUnit, @Nonnull String orderQuantityUnit, @Nonnull String dngrsGoodsModeOfTransport)
      Function that can be applied to a collection of entities of this class.

      Parameters:
      product - Constraints: Not nullable, Maximum length: 40

      Original parameter name from the Odata EDM: Product

      shippedQuantityInOrderQtyUnit - Constraints: Not nullable, Precision: 15, Scale: 3

      Original parameter name from the Odata EDM: ShippedQuantityInOrderQtyUnit

      departureCountry - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: DepartureCountry

      orderQuantityUnit - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: OrderQuantityUnit

      dngrsGoodsModeOfTransport - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: DngrsGoodsModeOfTransport

      destinationCountry - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: DestinationCountry

      outputScenario - Constraints: Not nullable, Maximum length: 32

      Original parameter name from the Odata EDM: OutputScenario

      Returns:
      Function object prepared with the given parameters to be applied to a collection of entities of this class.

      To execute it use the service.forEntity(entity).applyFunction(thisFunction) API.
    • builder

    • getCmplRqRsltUUID

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

      Original property name from the Odata EDM: CmplRqRsltUUID

      Returns:
      Compliance Assessment UUID
    • getProduct

      @Nullable public String getProduct()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Returns:
      Product Number
    • getComplianceRequirement

      @Nullable public String getComplianceRequirement()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ComplianceRequirement

      Returns:
      Compliance Requirement
    • getCmplRqVers

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

      Original property name from the Odata EDM: CmplRqVers

      Returns:
      Compliance Requirement Version ID
    • getCmplRqVersName

      @Nullable public String getCmplRqVersName()
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: CmplRqVersName

      Returns:
      Compliance Requirement Name
    • getProductIsNoDangerousGood

      @Nullable public Boolean getProductIsNoDangerousGood()
      Constraints: Not nullable

      Original property name from the Odata EDM: ProductIsNoDangerousGood

      Returns:
      Product Is No Dangerous Good
    • getProdCmplncDngrsGdsIdnNmbrType

      @Nullable public String getProdCmplncDngrsGdsIdnNmbrType()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ProdCmplncDngrsGdsIdnNmbrType

      Returns:
      Dangerous Goods Identfication Number Prefix
    • getProdCmplncDngrsGdsIdnNmbr

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

      Original property name from the Odata EDM: ProdCmplncDngrsGdsIdnNmbr

      Returns:
      Dangerous Goods Identification Number
    • getDngrsGdsMainAndSubRiskText

      @Nullable public String getDngrsGdsMainAndSubRiskText()
      Constraints: Not nullable, Maximum length: 132

      Original property name from the Odata EDM: DngrsGdsMainAndSubRiskText

      Returns:
      Dangerous Goods Main And Subrisk
    • getIMDGEmSchedSpill

      @Nullable public String getIMDGEmSchedSpill()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: IMDGEmSchedSpill

      Returns:
      IMDG EmS Code for Spill
    • getIMDGEmSchedSpillIsUnderlined

      @Nullable public String getIMDGEmSchedSpillIsUnderlined()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: IMDGEmSchedSpillIsUnderlined

      Returns:
      IMDG EmS Code for Spill Is Underlined
    • getIMDGEmSchedFire

      @Nullable public String getIMDGEmSchedFire()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: IMDGEmSchedFire

      Returns:
      IMDG EmS Code for FIRE
    • getIMDGEmSchedFireIsUnderlined

      @Nullable public String getIMDGEmSchedFireIsUnderlined()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: IMDGEmSchedFireIsUnderlined

      Returns:
      IMDG EmS Code for Fire Is Underlined
    • getEmergencyResponseGuidebookCode

      @Nullable public String getEmergencyResponseGuidebookCode()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: EmergencyResponseGuidebookCode

      Returns:
      Emergency Response Guidebook Code
    • getInitialEmergencyRspGuideCode

      @Nullable public String getInitialEmergencyRspGuideCode()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: InitialEmergencyRspGuideCode

      Returns:
      Initial Emergency Response Guide Code
    • getAU_ADGEmgyRspGuidebookCode

      @Nullable public String getAU_ADGEmgyRspGuidebookCode()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: AU_ADGEmgyRspGuidebookCode

      Returns:
      Australian Emergency Response Guidebook
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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