Package odata.msgraph.client.entity
Class ServiceUpdateMessage
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.ServiceAnnouncementBase
-
- odata.msgraph.client.entity.ServiceUpdateMessage
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class ServiceUpdateMessage extends ServiceAnnouncementBase implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceUpdateMessage.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimeactionRequiredByDateTimeprotected StringattachmentsArchiveprotected ItemBodybodyprotected ServiceUpdateCategorycategoryprotected BooleanhasAttachmentsprotected BooleanisMajorChangeprotected List<String>servicesprotected StringservicesNextLinkprotected ServiceUpdateSeverityseverityprotected List<String>tagsprotected StringtagsNextLinkprotected ServiceUpdateMessageViewpointviewPoint-
Fields inherited from class odata.msgraph.client.entity.ServiceAnnouncementBase
details, detailsNextLink, endDateTime, lastModifiedDateTime, startDateTime, title
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServiceUpdateMessage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceUpdateMessage.BuilderbuilderServiceUpdateMessage()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<OffsetDateTime>getActionRequiredByDateTime()ServiceAnnouncementAttachmentCollectionRequestgetAttachments()Optional<com.github.davidmoten.odata.client.StreamProvider>getAttachmentsArchive()Optional<ItemBody>getBody()Optional<ServiceUpdateCategory>getCategory()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Boolean>getHasAttachments()Optional<Boolean>getIsMajorChange()com.github.davidmoten.odata.client.CollectionPage<String>getServices()com.github.davidmoten.odata.client.CollectionPage<String>getServices(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<ServiceUpdateSeverity>getSeverity()com.github.davidmoten.odata.client.CollectionPage<String>getTags()com.github.davidmoten.odata.client.CollectionPage<String>getTags(com.github.davidmoten.odata.client.HttpRequestOptions options)com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<ServiceUpdateMessageViewpoint>getViewPoint()StringodataTypeName()ServiceUpdateMessagepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>patchAttachmentsArchive()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to theattachmentsArchiveproperty, using HTTP PATCH.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>patchAttachmentsArchive(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>patchChunkedAttachmentsArchive()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to theattachmentsArchiveproperty, using HTTP PATCH.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>postAttachmentsArchive()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to theattachmentsArchiveproperty, using HTTP POST.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>postAttachmentsArchive(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>postChunkedAttachmentsArchive()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to theattachmentsArchiveproperty, using HTTP POST.voidpostInject(boolean addKeysToContextPath)ServiceUpdateMessageput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>putAttachmentsArchive()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to theattachmentsArchiveproperty, using HTTP PUT.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>putAttachmentsArchive(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>putChunkedAttachmentsArchive()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to theattachmentsArchiveproperty, using HTTP PUT.StringtoString()ServiceUpdateMessagewithActionRequiredByDateTime(OffsetDateTime actionRequiredByDateTime)ServiceUpdateMessagewithBody(ItemBody body)ServiceUpdateMessagewithCategory(ServiceUpdateCategory category)ServiceUpdateMessagewithHasAttachments(Boolean hasAttachments)ServiceUpdateMessagewithIsMajorChange(Boolean isMajorChange)ServiceUpdateMessagewithServices(List<String> services)ServiceUpdateMessagewithSeverity(ServiceUpdateSeverity severity)ServiceUpdateMessagewithTags(List<String> tags)ServiceUpdateMessagewithUnmappedField(String name, String value)ServiceUpdateMessagewithViewPoint(ServiceUpdateMessageViewpoint viewPoint)-
Methods inherited from class odata.msgraph.client.entity.ServiceAnnouncementBase
getDetails, getDetails, getEndDateTime, getLastModifiedDateTime, getStartDateTime, getTitle, withDetails, withEndDateTime, withLastModifiedDateTime, withStartDateTime, withTitle
-
-
-
-
Field Detail
-
actionRequiredByDateTime
protected OffsetDateTime actionRequiredByDateTime
-
attachmentsArchive
protected String attachmentsArchive
-
body
protected ItemBody body
-
category
protected ServiceUpdateCategory category
-
hasAttachments
protected Boolean hasAttachments
-
isMajorChange
protected Boolean isMajorChange
-
servicesNextLink
protected String servicesNextLink
-
severity
protected ServiceUpdateSeverity severity
-
tagsNextLink
protected String tagsNextLink
-
viewPoint
protected ServiceUpdateMessageViewpoint viewPoint
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classServiceAnnouncementBase
-
builderServiceUpdateMessage
public static ServiceUpdateMessage.Builder builderServiceUpdateMessage()
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 classServiceAnnouncementBase
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classServiceAnnouncementBase
-
getActionRequiredByDateTime
public Optional<OffsetDateTime> getActionRequiredByDateTime()
-
withActionRequiredByDateTime
public ServiceUpdateMessage withActionRequiredByDateTime(OffsetDateTime actionRequiredByDateTime)
-
getAttachmentsArchive
public Optional<com.github.davidmoten.odata.client.StreamProvider> getAttachmentsArchive()
-
postAttachmentsArchive
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> postAttachmentsArchive()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to theattachmentsArchiveproperty, using HTTP POST.- Returns:
- a StreamUploader if upload permitted
-
postChunkedAttachmentsArchive
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> postChunkedAttachmentsArchive()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to theattachmentsArchiveproperty, using HTTP POST.- Returns:
- a StreamUploaderChunked if upload permitted
-
postAttachmentsArchive
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> postAttachmentsArchive(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
patchAttachmentsArchive
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> patchAttachmentsArchive()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to theattachmentsArchiveproperty, using HTTP PATCH.- Returns:
- a StreamUploader if upload permitted
-
patchChunkedAttachmentsArchive
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> patchChunkedAttachmentsArchive()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to theattachmentsArchiveproperty, using HTTP PATCH.- Returns:
- a StreamUploaderChunked if upload permitted
-
patchAttachmentsArchive
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> patchAttachmentsArchive(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
putAttachmentsArchive
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> putAttachmentsArchive()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to theattachmentsArchiveproperty, using HTTP PUT.- Returns:
- a StreamUploader if upload permitted
-
putChunkedAttachmentsArchive
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> putChunkedAttachmentsArchive()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to theattachmentsArchiveproperty, using HTTP PUT.- Returns:
- a StreamUploaderChunked if upload permitted
-
putAttachmentsArchive
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> putAttachmentsArchive(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
withBody
public ServiceUpdateMessage withBody(ItemBody body)
-
getCategory
public Optional<ServiceUpdateCategory> getCategory()
-
withCategory
public ServiceUpdateMessage withCategory(ServiceUpdateCategory category)
-
withHasAttachments
public ServiceUpdateMessage withHasAttachments(Boolean hasAttachments)
-
withIsMajorChange
public ServiceUpdateMessage withIsMajorChange(Boolean isMajorChange)
-
getServices
public com.github.davidmoten.odata.client.CollectionPage<String> getServices()
-
withServices
public ServiceUpdateMessage withServices(List<String> services)
-
getServices
public com.github.davidmoten.odata.client.CollectionPage<String> getServices(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getSeverity
public Optional<ServiceUpdateSeverity> getSeverity()
-
withSeverity
public ServiceUpdateMessage withSeverity(ServiceUpdateSeverity severity)
-
getTags
public com.github.davidmoten.odata.client.CollectionPage<String> getTags()
-
withTags
public ServiceUpdateMessage withTags(List<String> tags)
-
getTags
public com.github.davidmoten.odata.client.CollectionPage<String> getTags(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getViewPoint
public Optional<ServiceUpdateMessageViewpoint> getViewPoint()
-
withViewPoint
public ServiceUpdateMessage withViewPoint(ServiceUpdateMessageViewpoint viewPoint)
-
withUnmappedField
public ServiceUpdateMessage withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classServiceAnnouncementBase
-
getAttachments
public ServiceAnnouncementAttachmentCollectionRequest getAttachments()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classServiceAnnouncementBase
-
patch
public ServiceUpdateMessage patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classServiceAnnouncementBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public ServiceUpdateMessage put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classServiceAnnouncementBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classServiceAnnouncementBase
-
-