Class DngrsGdsClassfctnModeOfTranspt
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: DngrsGdsClassfctnModeOfTranspt_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of DngrsGdsClassfctnModeOfTranspt instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<DngrsGdsClassfctnModeOfTranspt>Selector for all available fields of DngrsGdsClassfctnModeOfTranspt.static final SimpleProperty.Guid<DngrsGdsClassfctnModeOfTranspt>static final SimpleProperty.String<DngrsGdsClassfctnModeOfTranspt>static final SimpleProperty.String<DngrsGdsClassfctnModeOfTranspt>static final SimpleProperty.String<DngrsGdsClassfctnModeOfTranspt>Use with available request builders to apply the _DangerousGoodsClassification navigation property to query operations.Use with available request builders to apply the _Text navigation property to query operations.static final SimpleProperty.String<DngrsGdsClassfctnModeOfTranspt>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionDngrsGdsClassfctnModeOfTranspt(UUID cmplRqRsltDngrsGdsModeOfTrUUID, String product, String complianceRequirement, String dngrsGoodsModeOfTransport, String transportIsAllowed, DangerousGoodsClassification to_DangerousGoodsClassification, List<DngrsGdsClassfctnMOTText> to_Text) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddText(DngrsGdsClassfctnMOTText... entity) Adds elements to the list of associated DngrsGdsClassfctnMOTText entities.builder()protected booleanbooleanprotected void(Key Field) Constraints: Not nullableConstraints: Not nullable, Maximum length: 30io.vavr.control.Option<DangerousGoodsClassification>Retrieval of associated DangerousGoodsClassification entity (one to one).protected StringConstraints: Not nullable, Maximum length: 10protected Stringprotected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 18io.vavr.control.Option<List<DngrsGdsClassfctnMOTText>>Retrieval of associated DngrsGdsClassfctnMOTText entities (one to many).Constraints: Not nullable, Maximum length: 1getType()inthashCode()voidsetCmplRqRsltDngrsGdsModeOfTrUUID(UUID cmplRqRsltDngrsGdsModeOfTrUUID) (Key Field) Constraints: Not nullablevoidsetComplianceRequirement(String complianceRequirement) Constraints: Not nullable, Maximum length: 30voidOverwrites the associated DangerousGoodsClassification entity for the loaded navigation property _DangerousGoodsClassification.voidsetDngrsGoodsModeOfTransport(String dngrsGoodsModeOfTransport) Constraints: Not nullable, Maximum length: 10voidsetProduct(String product) Constraints: Not nullable, Maximum length: 18voidsetText(List<DngrsGdsClassfctnMOTText> value) Overwrites the list of associated DngrsGdsClassfctnMOTText entities for the loaded navigation property _Text.voidsetTransportIsAllowed(String transportIsAllowed) Constraints: Not nullable, Maximum length: 1toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of DngrsGdsClassfctnModeOfTranspt. -
CMPL_RQ_RSLT_DNGRS_GDS_MODE_OF_TR_UUID
public static final SimpleProperty.Guid<DngrsGdsClassfctnModeOfTranspt> CMPL_RQ_RSLT_DNGRS_GDS_MODE_OF_TR_UUID -
PRODUCT
-
COMPLIANCE_REQUIREMENT
-
DNGRS_GOODS_MODE_OF_TRANSPORT
public static final SimpleProperty.String<DngrsGdsClassfctnModeOfTranspt> DNGRS_GOODS_MODE_OF_TRANSPORT -
TRANSPORT_IS_ALLOWED
-
TO__DANGEROUS_GOODS_CLASSIFICATION
public static final NavigationProperty.Single<DngrsGdsClassfctnModeOfTranspt,DangerousGoodsClassification> TO__DANGEROUS_GOODS_CLASSIFICATIONUse with available request builders to apply the _DangerousGoodsClassification navigation property to query operations. -
TO__TEXT
public static final NavigationProperty.Collection<DngrsGdsClassfctnModeOfTranspt,DngrsGdsClassfctnMOTText> TO__TEXTUse with available request builders to apply the _Text navigation property to query operations.
-
-
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
- Specified by:
getTypein classVdmObject<DngrsGdsClassfctnModeOfTranspt>
-
setCmplRqRsltDngrsGdsModeOfTrUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: CmplRqRsltDngrsGdsModeOfTrUUID
- Parameters:
cmplRqRsltDngrsGdsModeOfTrUUID- Dangerous Goods Mode of Transport Key
-
setProduct
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Parameters:
product- Product Number
-
setComplianceRequirement
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: ComplianceRequirement
- Parameters:
complianceRequirement- Compliance Requirement
-
setDngrsGoodsModeOfTransport
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: DngrsGoodsModeOfTransport
- Parameters:
dngrsGoodsModeOfTransport- Regulation-Specified Mode of Transport
-
setTransportIsAllowed
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: TransportIsAllowed
- Parameters:
transportIsAllowed- Transport Allowed
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<DngrsGdsClassfctnModeOfTranspt>
-
getKey
- Overrides:
getKeyin classVdmObject<DngrsGdsClassfctnModeOfTranspt>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<DngrsGdsClassfctnModeOfTranspt>
-
fromMap
- Overrides:
fromMapin classVdmObject<DngrsGdsClassfctnModeOfTranspt>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<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
Optionresult state will beempty.- Returns:
- If the information for navigation property _DangerousGoodsClassification is already loaded, the
result will contain the DangerousGoodsClassification entity. If not, an
Optionwith result stateemptyis returned.
-
setDangerousGoodsClassification
Overwrites the associated DangerousGoodsClassification entity for the loaded navigation property _DangerousGoodsClassification.- Parameters:
value- New DangerousGoodsClassification entity.
-
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
Optionresult state will beempty.- Returns:
- If the information for navigation property _Text is already loaded, the result will contain the
DngrsGdsClassfctnMOTText entities. If not, an
Optionwith result stateemptyis returned.
-
setText
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
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
@Nonnull public static DngrsGdsClassfctnModeOfTranspt.DngrsGdsClassfctnModeOfTransptBuilder builder() -
getCmplRqRsltDngrsGdsModeOfTrUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: CmplRqRsltDngrsGdsModeOfTrUUID
- Returns:
- Dangerous Goods Mode of Transport Key
-
getProduct
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Returns:
- Product Number
-
getComplianceRequirement
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: ComplianceRequirement
- Returns:
- Compliance Requirement
-
getDngrsGoodsModeOfTransport
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: DngrsGoodsModeOfTransport
- Returns:
- Regulation-Specified Mode of Transport
-
getTransportIsAllowed
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: TransportIsAllowed
- Returns:
- Transport Allowed
-
toString
- Overrides:
toStringin classVdmObject<DngrsGdsClassfctnModeOfTranspt>
-
equals
- Overrides:
equalsin classVdmEntity<DngrsGdsClassfctnModeOfTranspt>
-
canEqual
- Overrides:
canEqualin classVdmEntity<DngrsGdsClassfctnModeOfTranspt>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<DngrsGdsClassfctnModeOfTranspt>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<DngrsGdsClassfctnModeOfTranspt>
-