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

public class DngrsGdsClassfctnModeOfTranspt extends VdmEntity<DngrsGdsClassfctnModeOfTranspt> implements VdmEntitySet
Mode Of Transport Specific Data

Original entity name from the Odata EDM: DngrsGdsClassfctnModeOfTranspt_Type

  • Field Details

  • Constructor Details

    • DngrsGdsClassfctnModeOfTranspt

      public DngrsGdsClassfctnModeOfTranspt()
    • DngrsGdsClassfctnModeOfTranspt

      public DngrsGdsClassfctnModeOfTranspt(@Nullable UUID cmplRqRsltDngrsGdsModeOfTrUUID, @Nullable String product, @Nullable String complianceRequirement, @Nullable String dngrsGoodsModeOfTransport, @Nullable String transportIsAllowed, @Nullable DangerousGoodsClassification to_DangerousGoodsClassification, List<DngrsGdsClassfctnMOTText> to_Text)
  • Method Details

    • getType

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

      public void setCmplRqRsltDngrsGdsModeOfTrUUID(@Nullable UUID cmplRqRsltDngrsGdsModeOfTrUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: CmplRqRsltDngrsGdsModeOfTrUUID

      Parameters:
      cmplRqRsltDngrsGdsModeOfTrUUID - Dangerous Goods Mode of Transport Key
    • 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
    • setDngrsGoodsModeOfTransport

      public void setDngrsGoodsModeOfTransport(@Nullable String dngrsGoodsModeOfTransport)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: DngrsGoodsModeOfTransport

      Parameters:
      dngrsGoodsModeOfTransport - Regulation-Specified Mode of Transport
    • setTransportIsAllowed

      public void setTransportIsAllowed(@Nullable String transportIsAllowed)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TransportIsAllowed

      Parameters:
      transportIsAllowed - Transport Allowed
    • getEntityCollection

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

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

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

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

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

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

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

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

      public void setDangerousGoodsClassification(DangerousGoodsClassification value)
      Overwrites the associated DangerousGoodsClassification entity for the loaded navigation property _DangerousGoodsClassification.
      Parameters:
      value - New DangerousGoodsClassification entity.
    • getTextIfPresent

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

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

      public void setText(@Nonnull List<DngrsGdsClassfctnMOTText> value)
      Overwrites the list of associated DngrsGdsClassfctnMOTText entities for the loaded navigation property _Text.

      If the navigation property _Text of a queried DngrsGdsClassfctnModeOfTranspt 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 DngrsGdsClassfctnMOTText entities.
    • addText

      public void addText(DngrsGdsClassfctnMOTText... entity)
      Adds elements to the list of associated DngrsGdsClassfctnMOTText entities. This corresponds to the OData navigation property _Text.

      If the navigation property _Text of a queried DngrsGdsClassfctnModeOfTranspt 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 DngrsGdsClassfctnMOTText entities.
    • builder

    • getCmplRqRsltDngrsGdsModeOfTrUUID

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

      Original property name from the Odata EDM: CmplRqRsltDngrsGdsModeOfTrUUID

      Returns:
      Dangerous Goods Mode of Transport Key
    • 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
    • getDngrsGoodsModeOfTransport

      @Nullable public String getDngrsGoodsModeOfTransport()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: DngrsGoodsModeOfTransport

      Returns:
      Regulation-Specified Mode of Transport
    • getTransportIsAllowed

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

      Original property name from the Odata EDM: TransportIsAllowed

      Returns:
      Transport Allowed
    • toString

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

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

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

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

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