Package odata.msgraph.client.beta.entity
Class FileClassificationRequest
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.FileClassificationRequest
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class FileClassificationRequest extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileClassificationRequest.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringfileprotected List<String>sensitiveTypeIdsprotected StringsensitiveTypeIdsNextLink-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFileClassificationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileClassificationRequest.BuilderbuilderFileClassificationRequest()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<com.github.davidmoten.odata.client.StreamProvider>getFile()com.github.davidmoten.odata.client.CollectionPage<String>getSensitiveTypeIds()com.github.davidmoten.odata.client.CollectionPage<String>getSensitiveTypeIds(com.github.davidmoten.odata.client.HttpRequestOptions options)com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()FileClassificationRequestpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>patchChunkedFile()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thefileproperty, using HTTP PATCH.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>patchFile()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thefileproperty, using HTTP PATCH.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>patchFile(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>postChunkedFile()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thefileproperty, using HTTP POST.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>postFile()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thefileproperty, using HTTP POST.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>postFile(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)voidpostInject(boolean addKeysToContextPath)FileClassificationRequestput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>putChunkedFile()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thefileproperty, using HTTP PUT.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>putFile()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thefileproperty, using HTTP PUT.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>putFile(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)StringtoString()FileClassificationRequestwithSensitiveTypeIds(List<String> sensitiveTypeIds)FileClassificationRequestwithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderFileClassificationRequest
public static FileClassificationRequest.Builder builderFileClassificationRequest()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getFile
public Optional<com.github.davidmoten.odata.client.StreamProvider> getFile()
-
patchFile
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> patchFile()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thefileproperty, using HTTP PATCH.- Returns:
- a StreamUploader if upload permitted
-
patchChunkedFile
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> patchChunkedFile()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thefileproperty, using HTTP PATCH.- Returns:
- a StreamUploaderChunked if upload permitted
-
patchFile
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> patchFile(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
postFile
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> postFile()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thefileproperty, using HTTP POST.- Returns:
- a StreamUploader if upload permitted
-
postChunkedFile
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> postChunkedFile()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thefileproperty, using HTTP POST.- Returns:
- a StreamUploaderChunked if upload permitted
-
postFile
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> postFile(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
putFile
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> putFile()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thefileproperty, using HTTP PUT.- Returns:
- a StreamUploader if upload permitted
-
putChunkedFile
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> putChunkedFile()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thefileproperty, using HTTP PUT.- Returns:
- a StreamUploaderChunked if upload permitted
-
putFile
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> putFile(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
getSensitiveTypeIds
public com.github.davidmoten.odata.client.CollectionPage<String> getSensitiveTypeIds()
-
withSensitiveTypeIds
public FileClassificationRequest withSensitiveTypeIds(List<String> sensitiveTypeIds)
-
getSensitiveTypeIds
public com.github.davidmoten.odata.client.CollectionPage<String> getSensitiveTypeIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withUnmappedField
public FileClassificationRequest withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public FileClassificationRequest patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public FileClassificationRequest put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-