Class ServiceCancellationReason
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ServiceCancellationReason_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ServiceCancellationReason instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ServiceCancellationReason>Selector for all available fields of ServiceCancellationReason.static final SimpleProperty.String<ServiceCancellationReason>static final SimpleProperty.String<ServiceCancellationReason>Use with available request builders to apply the _SrvcCancellationReasonText navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionServiceCancellationReason(String serviceContrCancellationReason, String serviceContrCanclnReasonName, List<SrvcCancellationReasonText> to_SrvcCancellationReasonText) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated SrvcCancellationReasonText entities.builder()protected booleanbooleanprotected voidprotected Stringprotected Stringprotected ODataEntityKeygetKey()(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 40io.vavr.control.Option<List<SrvcCancellationReasonText>>Retrieval of associated SrvcCancellationReasonText entities (one to many).getType()inthashCode()voidsetServiceContrCancellationReason(String serviceContrCancellationReason) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetServiceContrCanclnReasonName(String serviceContrCanclnReasonName) Constraints: Not nullable, Maximum length: 40voidOverwrites the list of associated SrvcCancellationReasonText entities for the loaded navigation property _SrvcCancellationReasonText.toString()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 ServiceCancellationReason. -
SERVICE_CONTR_CANCELLATION_REASON
public static final SimpleProperty.String<ServiceCancellationReason> SERVICE_CONTR_CANCELLATION_REASON -
SERVICE_CONTR_CANCLN_REASON_NAME
public static final SimpleProperty.String<ServiceCancellationReason> SERVICE_CONTR_CANCLN_REASON_NAME -
TO__SRVC_CANCELLATION_REASON_TEXT
public static final NavigationProperty.Collection<ServiceCancellationReason,SrvcCancellationReasonText> TO__SRVC_CANCELLATION_REASON_TEXTUse with available request builders to apply the _SrvcCancellationReasonText navigation property to query operations.
-
-
Constructor Details
-
ServiceCancellationReason
public ServiceCancellationReason() -
ServiceCancellationReason
public ServiceCancellationReason(@Nullable String serviceContrCancellationReason, @Nullable String serviceContrCanclnReasonName, List<SrvcCancellationReasonText> to_SrvcCancellationReasonText)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ServiceCancellationReason>
-
setServiceContrCancellationReason
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ServiceContrCancellationReason
- Parameters:
serviceContrCancellationReason- CRM Service : Reason for Cancellation
-
setServiceContrCanclnReasonName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ServiceContrCanclnReasonName
- Parameters:
serviceContrCanclnReasonName- Description (40 Characters)
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ServiceCancellationReason>
-
getKey
- Overrides:
getKeyin classVdmObject<ServiceCancellationReason>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ServiceCancellationReason>
-
fromMap
- Overrides:
fromMapin classVdmObject<ServiceCancellationReason>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ServiceCancellationReason>
-
getSrvcCancellationReasonTextIfPresent
@Nonnull public io.vavr.control.Option<List<SrvcCancellationReasonText>> getSrvcCancellationReasonTextIfPresent()Retrieval of associated SrvcCancellationReasonText entities (one to many). This corresponds to the OData navigation property _SrvcCancellationReasonText.If the navigation property for an entity ServiceCancellationReason 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 _SrvcCancellationReasonText is already loaded, the
result will contain the SrvcCancellationReasonText entities. If not, an
Optionwith result stateemptyis returned.
-
setSrvcCancellationReasonText
Overwrites the list of associated SrvcCancellationReasonText entities for the loaded navigation property _SrvcCancellationReasonText.If the navigation property _SrvcCancellationReasonText of a queried ServiceCancellationReason 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 SrvcCancellationReasonText entities.
-
addSrvcCancellationReasonText
Adds elements to the list of associated SrvcCancellationReasonText entities. This corresponds to the OData navigation property _SrvcCancellationReasonText.If the navigation property _SrvcCancellationReasonText of a queried ServiceCancellationReason 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 SrvcCancellationReasonText entities.
-
builder
-
getServiceContrCancellationReason
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ServiceContrCancellationReason
- Returns:
- CRM Service : Reason for Cancellation
-
getServiceContrCanclnReasonName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ServiceContrCanclnReasonName
- Returns:
- Description (40 Characters)
-
toString
- Overrides:
toStringin classVdmObject<ServiceCancellationReason>
-
equals
- Overrides:
equalsin classVdmEntity<ServiceCancellationReason>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ServiceCancellationReason>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ServiceCancellationReason>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ServiceCancellationReason>
-