Package odata.msgraph.client.beta.entity
Class MacOSSoftwareUpdateAccountSummary
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.MacOSSoftwareUpdateAccountSummary
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MacOSSoftwareUpdateAccountSummary extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“MacOS software update account summary report for a device and user”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMacOSSoftwareUpdateAccountSummary.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdeviceIdprotected StringdeviceNameprotected StringdisplayNameprotected IntegerfailedUpdateCountprotected OffsetDateTimelastUpdatedDateTimeprotected StringosVersionprotected IntegersuccessfulUpdateCountprotected IntegertotalUpdateCountprotected StringuserIdprotected StringuserPrincipalName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMacOSSoftwareUpdateAccountSummary()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MacOSSoftwareUpdateAccountSummary.BuilderbuilderMacOSSoftwareUpdateAccountSummary()Returns a builder which is used to create a new instance of this class (given that this class is immutable).MacOSSoftwareUpdateCategorySummaryCollectionRequestgetCategorySummaries()“Summary of the updates by category.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDeviceId()“The device ID.”Optional<String>getDeviceName()“The device name.”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<String>getOsVersion()“The OS version.”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<String>getUserId()“The user ID.”Optional<String>getUserPrincipalName()“The user principal name”StringodataTypeName()MacOSSoftwareUpdateAccountSummarypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MacOSSoftwareUpdateAccountSummaryput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MacOSSoftwareUpdateAccountSummarywithDeviceId(String deviceId)Returns an immutable copy ofthiswith just thedeviceIdfield changed.MacOSSoftwareUpdateAccountSummarywithDeviceName(String deviceName)Returns an immutable copy ofthiswith just thedeviceNamefield changed.MacOSSoftwareUpdateAccountSummarywithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.MacOSSoftwareUpdateAccountSummarywithFailedUpdateCount(Integer failedUpdateCount)Returns an immutable copy ofthiswith just thefailedUpdateCountfield changed.MacOSSoftwareUpdateAccountSummarywithLastUpdatedDateTime(OffsetDateTime lastUpdatedDateTime)Returns an immutable copy ofthiswith just thelastUpdatedDateTimefield changed.MacOSSoftwareUpdateAccountSummarywithOsVersion(String osVersion)Returns an immutable copy ofthiswith just theosVersionfield changed.MacOSSoftwareUpdateAccountSummarywithSuccessfulUpdateCount(Integer successfulUpdateCount)Returns an immutable copy ofthiswith just thesuccessfulUpdateCountfield changed.MacOSSoftwareUpdateAccountSummarywithTotalUpdateCount(Integer totalUpdateCount)Returns an immutable copy ofthiswith just thetotalUpdateCountfield changed.MacOSSoftwareUpdateAccountSummarywithUnmappedField(String name, String value)MacOSSoftwareUpdateAccountSummarywithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.MacOSSoftwareUpdateAccountSummarywithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.
-
-
-
Field Detail
-
deviceId
protected String deviceId
-
deviceName
protected String deviceName
-
displayName
protected String displayName
-
failedUpdateCount
protected Integer failedUpdateCount
-
lastUpdatedDateTime
protected OffsetDateTime lastUpdatedDateTime
-
osVersion
protected String osVersion
-
successfulUpdateCount
protected Integer successfulUpdateCount
-
totalUpdateCount
protected Integer totalUpdateCount
-
userId
protected String userId
-
userPrincipalName
protected String userPrincipalName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderMacOSSoftwareUpdateAccountSummary
public static MacOSSoftwareUpdateAccountSummary.Builder builderMacOSSoftwareUpdateAccountSummary()
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 MacOSSoftwareUpdateAccountSummary 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
-
getDeviceName
public Optional<String> getDeviceName()
“The device name.”- Returns:
- property deviceName
-
withDeviceName
public MacOSSoftwareUpdateAccountSummary withDeviceName(String deviceName)
Returns an immutable copy ofthiswith just thedeviceNamefield 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 name.”
- Parameters:
deviceName- new value ofdeviceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceNamefield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The name of the report”- Returns:
- property displayName
-
withDisplayName
public MacOSSoftwareUpdateAccountSummary 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 MacOSSoftwareUpdateAccountSummary 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 MacOSSoftwareUpdateAccountSummary 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
-
withOsVersion
public MacOSSoftwareUpdateAccountSummary withOsVersion(String osVersion)
Returns an immutable copy ofthiswith just theosVersionfield 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 OS version.”
- Parameters:
osVersion- new value ofosVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosVersionfield changed
-
getSuccessfulUpdateCount
public Optional<Integer> getSuccessfulUpdateCount()
“Number of successful updates on the device.”- Returns:
- property successfulUpdateCount
-
withSuccessfulUpdateCount
public MacOSSoftwareUpdateAccountSummary 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 MacOSSoftwareUpdateAccountSummary 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
-
withUserId
public MacOSSoftwareUpdateAccountSummary 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
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“The user principal name”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public MacOSSoftwareUpdateAccountSummary withUserPrincipalName(String userPrincipalName)
Returns an immutable copy ofthiswith just theuserPrincipalNamefield 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 principal name”
- Parameters:
userPrincipalName- new value ofuserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserPrincipalNamefield changed
-
withUnmappedField
public MacOSSoftwareUpdateAccountSummary withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getCategorySummaries
public MacOSSoftwareUpdateCategorySummaryCollectionRequest getCategorySummaries()
“Summary of the updates by category.”- Returns:
- navigational property categorySummaries
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public MacOSSoftwareUpdateAccountSummary patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public MacOSSoftwareUpdateAccountSummary put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-