Class Attachment
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmMediaEntity<Attachment>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.ehsincidentcreate.Attachment
Attachment
Original entity name from the Odata EDM: Attachment
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttachmentSelectableSelector for all available fields of Attachment.static final AttachmentField<UUID>Use with available fluent helpers to apply the AttachmentDocumentUUID field to query operations.static final AttachmentField<String>Use with available fluent helpers to apply the FileName field to query operations.static final AttachmentField<String>Use with available fluent helpers to apply the MimeType field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) static Attachment.AttachmentBuilderbuilder()protected booleanbooleanstatic <T,DomainT>
AttachmentField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> AttachmentField<T>Use with available fluent helpers to apply an extension field to query operations.protected void(Key Field) Constraints: Not nullableprotected Stringprotected StringConstraints: Not nullable, Maximum length: 255getKey()Constraints: Not nullable, Maximum length: 128getType()inthashCode()voidsetAttachmentDocumentUUID(UUID attachmentDocumentUUID) (Key Field) Constraints: Not nullablevoidsetFileName(String fileName) Constraints: Not nullable, Maximum length: 255voidsetMimeType(String mimeType) Constraints: Not nullable, Maximum length: 128protected voidsetServicePathForFetch(String servicePathForFetch) toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmMediaEntity
fetchMediaStreamMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfNavigationProperties
-
Field Details
-
ALL_FIELDS
Selector for all available fields of Attachment. -
ATTACHMENT_DOCUMENT_UUID
Use with available fluent helpers to apply the AttachmentDocumentUUID field to query operations. -
MIME_TYPE
Use with available fluent helpers to apply the MimeType field to query operations. -
FILE_NAME
Use with available fluent helpers to apply the FileName field to query operations.
-
-
Constructor Details
-
Attachment
public Attachment() -
Attachment
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<Attachment>
-
setAttachmentDocumentUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: AttachmentDocumentUUID
- Parameters:
attachmentDocumentUUID- Attachment Global Identification
-
setMimeType
Constraints: Not nullable, Maximum length: 128Original property name from the Odata EDM: MimeType
- Parameters:
mimeType- Attachment MIME Type
-
setFileName
Constraints: Not nullable, Maximum length: 255Original property name from the Odata EDM: FileName
- Parameters:
fileName- Attachment File Name
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<Attachment>
-
getKey
- Overrides:
getKeyin classVdmObject<Attachment>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<Attachment>
-
fromMap
- Overrides:
fromMapin classVdmObject<Attachment>
-
field
@Nonnull public static <T> AttachmentField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.- Parameters:
fieldName- The name of the extension field as returned by the OData service.fieldType- The Java type to use for the extension field when performing value comparisons.- Returns:
- A representation of an extension field from this entity.
-
field
@Nonnull public static <T,DomainT> AttachmentField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.DomainT- The type of the extension field as returned by the OData service.- Parameters:
typeConverter- A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the fieldfieldName- The name of the extension field as returned by the OData service.- Returns:
- A representation of an extension field from this entity, holding a reference to the given TypeConverter.
-
getDestinationForFetch
- Overrides:
getDestinationForFetchin classVdmEntity<Attachment>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<Attachment>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<Attachment>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<Attachment>
-
builder
-
getAttachmentDocumentUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: AttachmentDocumentUUID
- Returns:
- Attachment Global Identification
-
getMimeType
Constraints: Not nullable, Maximum length: 128Original property name from the Odata EDM: MimeType
- Returns:
- Attachment MIME Type
-
getFileName
Constraints: Not nullable, Maximum length: 255Original property name from the Odata EDM: FileName
- Returns:
- Attachment File Name
-
toString
- Overrides:
toStringin classVdmObject<Attachment>
-
equals
- Overrides:
equalsin classVdmMediaEntity<Attachment>
-
canEqual
- Overrides:
canEqualin classVdmMediaEntity<Attachment>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmMediaEntity<Attachment>
-