Package odata.msgraph.client.beta.entity
Class MacOSSoftwareUpdateCategorySummary
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.MacOSSoftwareUpdateCategorySummary
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MacOSSoftwareUpdateCategorySummary extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“MacOS software update category summary report for a device and user”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMacOSSoftwareUpdateCategorySummary.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdeviceIdprotected StringdisplayNameprotected IntegerfailedUpdateCountprotected OffsetDateTimelastUpdatedDateTimeprotected IntegersuccessfulUpdateCountprotected IntegertotalUpdateCountprotected MacOSSoftwareUpdateCategoryupdateCategoryprotected StringuserId-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMacOSSoftwareUpdateCategorySummary()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MacOSSoftwareUpdateCategorySummary.BuilderbuilderMacOSSoftwareUpdateCategorySummary()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>getDeviceId()“The device ID.”Optional<String>getDisplayName()“The name of the report”Optional<Integer>getFailedUpdateCount()“Number of failed updates on the device”Optional<OffsetDateTime>getLastUpdatedDateTime()“Last date time the report for this device was updated.”Optional<Integer>getSuccessfulUpdateCount()“Number of successful updates on the device”Optional<Integer>getTotalUpdateCount()“Number of total updates on the device”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<MacOSSoftwareUpdateCategory>getUpdateCategory()“Software update type”MacOSSoftwareUpdateStateSummaryCollectionRequestgetUpdateStateSummaries()“Summary of the update states.”Optional<String>getUserId()“The user ID.”StringodataTypeName()MacOSSoftwareUpdateCategorySummarypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MacOSSoftwareUpdateCategorySummaryput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MacOSSoftwareUpdateCategorySummarywithDeviceId(String deviceId)Returns an immutable copy ofthiswith just thedeviceIdfield changed.MacOSSoftwareUpdateCategorySummarywithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.MacOSSoftwareUpdateCategorySummarywithFailedUpdateCount(Integer failedUpdateCount)Returns an immutable copy ofthiswith just thefailedUpdateCountfield changed.MacOSSoftwareUpdateCategorySummarywithLastUpdatedDateTime(OffsetDateTime lastUpdatedDateTime)Returns an immutable copy ofthiswith just thelastUpdatedDateTimefield changed.MacOSSoftwareUpdateCategorySummarywithSuccessfulUpdateCount(Integer successfulUpdateCount)Returns an immutable copy ofthiswith just thesuccessfulUpdateCountfield changed.MacOSSoftwareUpdateCategorySummarywithTotalUpdateCount(Integer totalUpdateCount)Returns an immutable copy ofthiswith just thetotalUpdateCountfield changed.MacOSSoftwareUpdateCategorySummarywithUnmappedField(String name, String value)MacOSSoftwareUpdateCategorySummarywithUpdateCategory(MacOSSoftwareUpdateCategory updateCategory)Returns an immutable copy ofthiswith just theupdateCategoryfield changed.MacOSSoftwareUpdateCategorySummarywithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.
-
-
-
Field Detail
-
deviceId
protected String deviceId
-
displayName
protected String displayName
-
failedUpdateCount
protected Integer failedUpdateCount
-
lastUpdatedDateTime
protected OffsetDateTime lastUpdatedDateTime
-
successfulUpdateCount
protected Integer successfulUpdateCount
-
totalUpdateCount
protected Integer totalUpdateCount
-
updateCategory
protected MacOSSoftwareUpdateCategory updateCategory
-
userId
protected String userId
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderMacOSSoftwareUpdateCategorySummary
public static MacOSSoftwareUpdateCategorySummary.Builder builderMacOSSoftwareUpdateCategorySummary()
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
-
withDeviceId
public MacOSSoftwareUpdateCategorySummary withDeviceId(String deviceId)
Returns an immutable copy ofthiswith just thedeviceIdfield 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.“The device ID.”
- Parameters:
deviceId- new value ofdeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceIdfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The name of the report”- Returns:
- property displayName
-
withDisplayName
public MacOSSoftwareUpdateCategorySummary 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.“The name of the report”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getFailedUpdateCount
public Optional<Integer> getFailedUpdateCount()
“Number of failed updates on the device”- Returns:
- property failedUpdateCount
-
withFailedUpdateCount
public MacOSSoftwareUpdateCategorySummary withFailedUpdateCount(Integer failedUpdateCount)
Returns an immutable copy ofthiswith just thefailedUpdateCountfield 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.“Number of failed updates on the device”
- Parameters:
failedUpdateCount- new value offailedUpdateCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefailedUpdateCountfield changed
-
getLastUpdatedDateTime
public Optional<OffsetDateTime> getLastUpdatedDateTime()
“Last date time the report for this device was updated.”- Returns:
- property lastUpdatedDateTime
-
withLastUpdatedDateTime
public MacOSSoftwareUpdateCategorySummary 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 was updated.”
- Parameters:
lastUpdatedDateTime- new value oflastUpdatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastUpdatedDateTimefield changed
-
getSuccessfulUpdateCount
public Optional<Integer> getSuccessfulUpdateCount()
“Number of successful updates on the device”- Returns:
- property successfulUpdateCount
-
withSuccessfulUpdateCount
public MacOSSoftwareUpdateCategorySummary withSuccessfulUpdateCount(Integer successfulUpdateCount)
Returns an immutable copy ofthiswith just thesuccessfulUpdateCountfield 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.“Number of successful updates on the device”
- Parameters:
successfulUpdateCount- new value ofsuccessfulUpdateCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesuccessfulUpdateCountfield changed
-
getTotalUpdateCount
public Optional<Integer> getTotalUpdateCount()
“Number of total updates on the device”- Returns:
- property totalUpdateCount
-
withTotalUpdateCount
public MacOSSoftwareUpdateCategorySummary withTotalUpdateCount(Integer totalUpdateCount)
Returns an immutable copy ofthiswith just thetotalUpdateCountfield 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.“Number of total updates on the device”
- Parameters:
totalUpdateCount- new value oftotalUpdateCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetotalUpdateCountfield changed
-
getUpdateCategory
public Optional<MacOSSoftwareUpdateCategory> getUpdateCategory()
“Software update type”- Returns:
- property updateCategory
-
withUpdateCategory
public MacOSSoftwareUpdateCategorySummary 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 type”
- Parameters:
updateCategory- new value ofupdateCategoryfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theupdateCategoryfield changed
-
withUserId
public MacOSSoftwareUpdateCategorySummary withUserId(String userId)
Returns an immutable copy ofthiswith just theuserIdfield 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.“The user ID.”
- Parameters:
userId- new value ofuserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserIdfield changed
-
withUnmappedField
public MacOSSoftwareUpdateCategorySummary withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUpdateStateSummaries
public MacOSSoftwareUpdateStateSummaryCollectionRequest getUpdateStateSummaries()
“Summary of the update states.”- Returns:
- navigational property updateStateSummaries
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public MacOSSoftwareUpdateCategorySummary patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public MacOSSoftwareUpdateCategorySummary put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-