Package odata.msgraph.client.beta.entity
Class ServiceAnnouncementAttachment
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.ServiceAnnouncementAttachment
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class ServiceAnnouncementAttachment extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceAnnouncementAttachment.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringcontentprotected StringcontentTypeprotected OffsetDateTimelastModifiedDateTimeprotected Stringnameprotected Integersize-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServiceAnnouncementAttachment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceAnnouncementAttachment.BuilderbuilderServiceAnnouncementAttachment()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>getContent()Optional<String>getContentType()Optional<OffsetDateTime>getLastModifiedDateTime()Optional<String>getName()Optional<Integer>getSize()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()ServiceAnnouncementAttachmentpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>patchChunkedContent()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>patchContent()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>patchContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>postChunkedContent()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP POST.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>postContent()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP POST.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>postContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)voidpostInject(boolean addKeysToContextPath)ServiceAnnouncementAttachmentput()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>putChunkedContent()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>putContent()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>putContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)StringtoString()ServiceAnnouncementAttachmentwithContentType(String contentType)ServiceAnnouncementAttachmentwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)ServiceAnnouncementAttachmentwithName(String name)ServiceAnnouncementAttachmentwithSize(Integer size)ServiceAnnouncementAttachmentwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
content
protected String content
-
contentType
protected String contentType
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
name
protected String name
-
size
protected Integer size
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderServiceAnnouncementAttachment
public static ServiceAnnouncementAttachment.Builder builderServiceAnnouncementAttachment()
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
-
getContent
public Optional<com.github.davidmoten.odata.client.StreamProvider> getContent()
-
postContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> postContent()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP POST.- Returns:
- a StreamUploader if upload permitted
-
postChunkedContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> postChunkedContent()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP POST.- Returns:
- a StreamUploaderChunked if upload permitted
-
postContent
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> postContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
patchContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> patchContent()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.- Returns:
- a StreamUploader if upload permitted
-
patchChunkedContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> patchChunkedContent()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.- Returns:
- a StreamUploaderChunked if upload permitted
-
patchContent
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> patchContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
putContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> putContent()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.- Returns:
- a StreamUploader if upload permitted
-
putChunkedContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> putChunkedContent()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.- Returns:
- a StreamUploaderChunked if upload permitted
-
putContent
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> putContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
withContentType
public ServiceAnnouncementAttachment withContentType(String contentType)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public ServiceAnnouncementAttachment withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withName
public ServiceAnnouncementAttachment withName(String name)
-
withSize
public ServiceAnnouncementAttachment withSize(Integer size)
-
withUnmappedField
public ServiceAnnouncementAttachment 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 ServiceAnnouncementAttachment patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ServiceAnnouncementAttachment put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-