Package odata.msgraph.client.beta.entity
Class WindowsUpdateState
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.WindowsUpdateState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class WindowsUpdateState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowsUpdateState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdeviceDisplayNameprotected StringdeviceIdprotected StringfeatureUpdateVersionprotected OffsetDateTimelastScanDateTimeprotected OffsetDateTimelastSyncDateTimeprotected StringqualityUpdateVersionprotected WindowsUpdateStatusstatusprotected StringuserIdprotected StringuserPrincipalName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsUpdateState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsUpdateState.BuilderbuilderWindowsUpdateState()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>getDeviceDisplayName()“Device display name.”Optional<String>getDeviceId()“The id of the device.”Optional<String>getFeatureUpdateVersion()“The current feature update version of the device.”Optional<OffsetDateTime>getLastScanDateTime()“The date time that the Windows Update Agent did a successful scan.”Optional<OffsetDateTime>getLastSyncDateTime()“Last date time that the device sync with with Microsoft Intune.”Optional<String>getQualityUpdateVersion()“The Quality Update Version of the device.”Optional<WindowsUpdateStatus>getStatus()“Windows udpate status.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserId()“The id of the user.”Optional<String>getUserPrincipalName()“User principal name.”StringodataTypeName()WindowsUpdateStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)WindowsUpdateStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()WindowsUpdateStatewithDeviceDisplayName(String deviceDisplayName)Returns an immutable copy ofthiswith just thedeviceDisplayNamefield changed.WindowsUpdateStatewithDeviceId(String deviceId)Returns an immutable copy ofthiswith just thedeviceIdfield changed.WindowsUpdateStatewithFeatureUpdateVersion(String featureUpdateVersion)Returns an immutable copy ofthiswith just thefeatureUpdateVersionfield changed.WindowsUpdateStatewithLastScanDateTime(OffsetDateTime lastScanDateTime)Returns an immutable copy ofthiswith just thelastScanDateTimefield changed.WindowsUpdateStatewithLastSyncDateTime(OffsetDateTime lastSyncDateTime)Returns an immutable copy ofthiswith just thelastSyncDateTimefield changed.WindowsUpdateStatewithQualityUpdateVersion(String qualityUpdateVersion)Returns an immutable copy ofthiswith just thequalityUpdateVersionfield changed.WindowsUpdateStatewithStatus(WindowsUpdateStatus status)Returns an immutable copy ofthiswith just thestatusfield changed.WindowsUpdateStatewithUnmappedField(String name, String value)WindowsUpdateStatewithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.WindowsUpdateStatewithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.
-
-
-
Field Detail
-
deviceDisplayName
protected String deviceDisplayName
-
deviceId
protected String deviceId
-
featureUpdateVersion
protected String featureUpdateVersion
-
lastScanDateTime
protected OffsetDateTime lastScanDateTime
-
lastSyncDateTime
protected OffsetDateTime lastSyncDateTime
-
qualityUpdateVersion
protected String qualityUpdateVersion
-
status
protected WindowsUpdateStatus status
-
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
-
builderWindowsUpdateState
public static WindowsUpdateState.Builder builderWindowsUpdateState()
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
-
getDeviceDisplayName
public Optional<String> getDeviceDisplayName()
“Device display name.”- Returns:
- property deviceDisplayName
-
withDeviceDisplayName
public WindowsUpdateState withDeviceDisplayName(String deviceDisplayName)
Returns an immutable copy ofthiswith just thedeviceDisplayNamefield 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.“Device display name.”
- Parameters:
deviceDisplayName- new value ofdeviceDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceDisplayNamefield changed
-
getDeviceId
public Optional<String> getDeviceId()
“The id of the device.”- Returns:
- property deviceId
-
withDeviceId
public WindowsUpdateState 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 id of the device.”
- Parameters:
deviceId- new value ofdeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceIdfield changed
-
getFeatureUpdateVersion
public Optional<String> getFeatureUpdateVersion()
“The current feature update version of the device.”- Returns:
- property featureUpdateVersion
-
withFeatureUpdateVersion
public WindowsUpdateState withFeatureUpdateVersion(String featureUpdateVersion)
Returns an immutable copy ofthiswith just thefeatureUpdateVersionfield 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 current feature update version of the device.”
- Parameters:
featureUpdateVersion- new value offeatureUpdateVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefeatureUpdateVersionfield changed
-
getLastScanDateTime
public Optional<OffsetDateTime> getLastScanDateTime()
“The date time that the Windows Update Agent did a successful scan.”- Returns:
- property lastScanDateTime
-
withLastScanDateTime
public WindowsUpdateState withLastScanDateTime(OffsetDateTime lastScanDateTime)
Returns an immutable copy ofthiswith just thelastScanDateTimefield 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 date time that the Windows Update Agent did a successful scan.”
- Parameters:
lastScanDateTime- new value oflastScanDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastScanDateTimefield changed
-
getLastSyncDateTime
public Optional<OffsetDateTime> getLastSyncDateTime()
“Last date time that the device sync with with Microsoft Intune.”- Returns:
- property lastSyncDateTime
-
withLastSyncDateTime
public WindowsUpdateState withLastSyncDateTime(OffsetDateTime lastSyncDateTime)
Returns an immutable copy ofthiswith just thelastSyncDateTimefield 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 that the device sync with with Microsoft Intune.”
- Parameters:
lastSyncDateTime- new value oflastSyncDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastSyncDateTimefield changed
-
getQualityUpdateVersion
public Optional<String> getQualityUpdateVersion()
“The Quality Update Version of the device.”- Returns:
- property qualityUpdateVersion
-
withQualityUpdateVersion
public WindowsUpdateState withQualityUpdateVersion(String qualityUpdateVersion)
Returns an immutable copy ofthiswith just thequalityUpdateVersionfield 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 Quality Update Version of the device.”
- Parameters:
qualityUpdateVersion- new value ofqualityUpdateVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thequalityUpdateVersionfield changed
-
getStatus
public Optional<WindowsUpdateStatus> getStatus()
“Windows udpate status.”- Returns:
- property status
-
withStatus
public WindowsUpdateState withStatus(WindowsUpdateStatus status)
Returns an immutable copy ofthiswith just thestatusfield 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.“Windows udpate status.”
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
withUserId
public WindowsUpdateState 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 id of the user.”
- Parameters:
userId- new value ofuserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserIdfield changed
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“User principal name.”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public WindowsUpdateState 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.“User principal name.”
- Parameters:
userPrincipalName- new value ofuserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserPrincipalNamefield changed
-
withUnmappedField
public WindowsUpdateState 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 WindowsUpdateState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public WindowsUpdateState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-