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 ItemBodybodyprotected ServiceUpdateCategorycategoryprotected 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()Optional<ItemBody>getBody()Optional<ServiceUpdateCategory>getCategory()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()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.voidpostInject(boolean addKeysToContextPath)ServiceUpdateMessageput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ServiceUpdateMessagewithActionRequiredByDateTime(OffsetDateTime actionRequiredByDateTime)ServiceUpdateMessagewithBody(ItemBody body)ServiceUpdateMessagewithCategory(ServiceUpdateCategory category)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
-
body
protected ItemBody body
-
category
protected ServiceUpdateCategory category
-
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)
-
withBody
public ServiceUpdateMessage withBody(ItemBody body)
-
getCategory
public Optional<ServiceUpdateCategory> getCategory()
-
withCategory
public ServiceUpdateMessage withCategory(ServiceUpdateCategory category)
-
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
-
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
-
-