Package odata.msgraph.client.beta.entity
Class MacOSSoftwareUpdateStateSummary
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.MacOSSoftwareUpdateStateSummary
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MacOSSoftwareUpdateStateSummary extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“MacOS software update state summary for a device and user”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMacOSSoftwareUpdateStateSummary.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdisplayNameprotected OffsetDateTimelastUpdatedDateTimeprotected StringproductKeyprotected MacOSSoftwareUpdateStatestateprotected MacOSSoftwareUpdateCategoryupdateCategoryprotected StringupdateVersion-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMacOSSoftwareUpdateStateSummary()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MacOSSoftwareUpdateStateSummary.BuilderbuilderMacOSSoftwareUpdateStateSummary()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<String>getDisplayName()“Human readable name of the software update”Optional<OffsetDateTime>getLastUpdatedDateTime()“Last date time the report for this device and product key was updated.”Optional<String>getProductKey()“Product key of the software update.”Optional<MacOSSoftwareUpdateState>getState()“State of the software update”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<MacOSSoftwareUpdateCategory>getUpdateCategory()“Software update category”Optional<String>getUpdateVersion()“Version of the software update”StringodataTypeName()MacOSSoftwareUpdateStateSummarypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MacOSSoftwareUpdateStateSummaryput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MacOSSoftwareUpdateStateSummarywithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.MacOSSoftwareUpdateStateSummarywithLastUpdatedDateTime(OffsetDateTime lastUpdatedDateTime)Returns an immutable copy ofthiswith just thelastUpdatedDateTimefield changed.MacOSSoftwareUpdateStateSummarywithProductKey(String productKey)Returns an immutable copy ofthiswith just theproductKeyfield changed.MacOSSoftwareUpdateStateSummarywithState(MacOSSoftwareUpdateState state)Returns an immutable copy ofthiswith just thestatefield changed.MacOSSoftwareUpdateStateSummarywithUnmappedField(String name, String value)MacOSSoftwareUpdateStateSummarywithUpdateCategory(MacOSSoftwareUpdateCategory updateCategory)Returns an immutable copy ofthiswith just theupdateCategoryfield changed.MacOSSoftwareUpdateStateSummarywithUpdateVersion(String updateVersion)Returns an immutable copy ofthiswith just theupdateVersionfield changed.
-
-
-
Field Detail
-
displayName
protected String displayName
-
lastUpdatedDateTime
protected OffsetDateTime lastUpdatedDateTime
-
productKey
protected String productKey
-
state
protected MacOSSoftwareUpdateState state
-
updateCategory
protected MacOSSoftwareUpdateCategory updateCategory
-
updateVersion
protected String updateVersion
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderMacOSSoftwareUpdateStateSummary
public static MacOSSoftwareUpdateStateSummary.Builder builderMacOSSoftwareUpdateStateSummary()
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
-
getDisplayName
public Optional<String> getDisplayName()
“Human readable name of the software update”- Returns:
- property displayName
-
withDisplayName
public MacOSSoftwareUpdateStateSummary withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Human readable name of the software update”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getLastUpdatedDateTime
public Optional<OffsetDateTime> getLastUpdatedDateTime()
“Last date time the report for this device and product key was updated.”- Returns:
- property lastUpdatedDateTime
-
withLastUpdatedDateTime
public MacOSSoftwareUpdateStateSummary withLastUpdatedDateTime(OffsetDateTime lastUpdatedDateTime)
Returns an immutable copy ofthiswith just thelastUpdatedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Last date time the report for this device and product key was updated.”
- Parameters:
lastUpdatedDateTime- new value oflastUpdatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastUpdatedDateTimefield changed
-
getProductKey
public Optional<String> getProductKey()
“Product key of the software update.”- Returns:
- property productKey
-
withProductKey
public MacOSSoftwareUpdateStateSummary withProductKey(String productKey)
Returns an immutable copy ofthiswith just theproductKeyfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Product key of the software update.”
- Parameters:
productKey- new value ofproductKeyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theproductKeyfield changed
-
getState
public Optional<MacOSSoftwareUpdateState> getState()
“State of the software update”- Returns:
- property state
-
withState
public MacOSSoftwareUpdateStateSummary withState(MacOSSoftwareUpdateState state)
Returns an immutable copy ofthiswith just thestatefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“State of the software update”
- Parameters:
state- new value ofstatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatefield changed
-
getUpdateCategory
public Optional<MacOSSoftwareUpdateCategory> getUpdateCategory()
“Software update category”- Returns:
- property updateCategory
-
withUpdateCategory
public MacOSSoftwareUpdateStateSummary withUpdateCategory(MacOSSoftwareUpdateCategory updateCategory)
Returns an immutable copy ofthiswith just theupdateCategoryfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Software update category”
- Parameters:
updateCategory- new value ofupdateCategoryfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theupdateCategoryfield changed
-
getUpdateVersion
public Optional<String> getUpdateVersion()
“Version of the software update”- Returns:
- property updateVersion
-
withUpdateVersion
public MacOSSoftwareUpdateStateSummary withUpdateVersion(String updateVersion)
Returns an immutable copy ofthiswith just theupdateVersionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Version of the software update”
- Parameters:
updateVersion- new value ofupdateVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theupdateVersionfield changed
-
withUnmappedField
public MacOSSoftwareUpdateStateSummary 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 MacOSSoftwareUpdateStateSummary patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public MacOSSoftwareUpdateStateSummary put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-