Class SrvcCancellationReasonText
java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<SrvcCancellationReasonText>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.servicecancellationreason.SrvcCancellationReasonText
- All Implemented Interfaces:
VdmEntitySet
public class SrvcCancellationReasonText
extends VdmEntity<SrvcCancellationReasonText>
implements VdmEntitySet
Service Cancellation Reason Text
Original entity name from the Odata EDM: SrvcCancellationReasonText_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of SrvcCancellationReasonText instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<SrvcCancellationReasonText>Selector for all available fields of SrvcCancellationReasonText.static final SimpleProperty.String<SrvcCancellationReasonText>static final SimpleProperty.String<SrvcCancellationReasonText>static final SimpleProperty.String<SrvcCancellationReasonText>Use with available request builders to apply the _ServiceCancellationReason 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
ConstructorsConstructorDescriptionSrvcCancellationReasonText(String serviceContrCancellationReason, String language, String serviceContrCanclnReasonName, ServiceCancellationReason to_ServiceCancellationReason) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanprotected voidprotected Stringprotected Stringprotected ODataEntityKeygetKey()(Key Field) Constraints: Not nullable, Maximum length: 2io.vavr.control.Option<ServiceCancellationReason>Retrieval of associated ServiceCancellationReason entity (one to one).(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 40getType()inthashCode()voidsetLanguage(String language) (Key Field) Constraints: Not nullable, Maximum length: 2voidOverwrites the associated ServiceCancellationReason entity for the loaded navigation property _ServiceCancellationReason.voidsetServiceContrCancellationReason(String serviceContrCancellationReason) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetServiceContrCanclnReasonName(String serviceContrCanclnReasonName) Constraints: Not nullable, Maximum length: 40toString()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 SrvcCancellationReasonText. -
SERVICE_CONTR_CANCELLATION_REASON
public static final SimpleProperty.String<SrvcCancellationReasonText> SERVICE_CONTR_CANCELLATION_REASON -
LANGUAGE
-
SERVICE_CONTR_CANCLN_REASON_NAME
public static final SimpleProperty.String<SrvcCancellationReasonText> SERVICE_CONTR_CANCLN_REASON_NAME -
TO__SERVICE_CANCELLATION_REASON
public static final NavigationProperty.Single<SrvcCancellationReasonText,ServiceCancellationReason> TO__SERVICE_CANCELLATION_REASONUse with available request builders to apply the _ServiceCancellationReason navigation property to query operations.
-
-
Constructor Details
-
SrvcCancellationReasonText
public SrvcCancellationReasonText() -
SrvcCancellationReasonText
public SrvcCancellationReasonText(@Nullable String serviceContrCancellationReason, @Nullable String language, @Nullable String serviceContrCanclnReasonName, @Nullable ServiceCancellationReason to_ServiceCancellationReason)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<SrvcCancellationReasonText>
-
setServiceContrCancellationReason
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ServiceContrCancellationReason
- Parameters:
serviceContrCancellationReason- CRM Service : Reason for Cancellation
-
setLanguage
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: Language
- Parameters:
language- Language Key of Description
-
setServiceContrCanclnReasonName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ServiceContrCanclnReasonName
- Parameters:
serviceContrCanclnReasonName- Description (40 Characters)
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<SrvcCancellationReasonText>
-
getKey
- Overrides:
getKeyin classVdmObject<SrvcCancellationReasonText>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<SrvcCancellationReasonText>
-
fromMap
- Overrides:
fromMapin classVdmObject<SrvcCancellationReasonText>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<SrvcCancellationReasonText>
-
getServiceCancellationReasonIfPresent
@Nonnull public io.vavr.control.Option<ServiceCancellationReason> getServiceCancellationReasonIfPresent()Retrieval of associated ServiceCancellationReason entity (one to one). This corresponds to the OData navigation property _ServiceCancellationReason.If the navigation property for an entity SrvcCancellationReasonText 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 _ServiceCancellationReason is already loaded, the
result will contain the ServiceCancellationReason entity. If not, an
Optionwith result stateemptyis returned.
-
setServiceCancellationReason
Overwrites the associated ServiceCancellationReason entity for the loaded navigation property _ServiceCancellationReason.- Parameters:
value- New ServiceCancellationReason entity.
-
builder
-
getServiceContrCancellationReason
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ServiceContrCancellationReason
- Returns:
- CRM Service : Reason for Cancellation
-
getLanguage
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: Language
- Returns:
- Language Key of Description
-
getServiceContrCanclnReasonName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ServiceContrCanclnReasonName
- Returns:
- Description (40 Characters)
-
toString
- Overrides:
toStringin classVdmObject<SrvcCancellationReasonText>
-
equals
- Overrides:
equalsin classVdmEntity<SrvcCancellationReasonText>
-
canEqual
- Overrides:
canEqualin classVdmEntity<SrvcCancellationReasonText>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<SrvcCancellationReasonText>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<SrvcCancellationReasonText>
-