Package odata.msgraph.client.entity
Class DeviceConfigurationUserStatus
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.DeviceConfigurationUserStatus
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceConfigurationUserStatus extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceConfigurationUserStatus.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegerdevicesCountprotected OffsetDateTimelastReportedDateTimeprotected ComplianceStatusstatusprotected StringuserDisplayNameprotected StringuserPrincipalName-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceConfigurationUserStatus()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceConfigurationUserStatus.BuilderbuilderDeviceConfigurationUserStatus()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<Integer>getDevicesCount()“Devices count for that user.”Optional<OffsetDateTime>getLastReportedDateTime()“Last modified date time of the policy report.”Optional<ComplianceStatus>getStatus()“Compliance status of the policy report.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserDisplayName()“User name of the DevicePolicyStatus.”Optional<String>getUserPrincipalName()“UserPrincipalName.”StringodataTypeName()DeviceConfigurationUserStatuspatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceConfigurationUserStatusput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceConfigurationUserStatuswithDevicesCount(Integer devicesCount)Returns an immutable copy ofthiswith just thedevicesCountfield changed.DeviceConfigurationUserStatuswithLastReportedDateTime(OffsetDateTime lastReportedDateTime)Returns an immutable copy ofthiswith just thelastReportedDateTimefield changed.DeviceConfigurationUserStatuswithStatus(ComplianceStatus status)Returns an immutable copy ofthiswith just thestatusfield changed.DeviceConfigurationUserStatuswithUnmappedField(String name, String value)DeviceConfigurationUserStatuswithUserDisplayName(String userDisplayName)Returns an immutable copy ofthiswith just theuserDisplayNamefield changed.DeviceConfigurationUserStatuswithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.
-
-
-
Field Detail
-
devicesCount
protected Integer devicesCount
-
lastReportedDateTime
protected OffsetDateTime lastReportedDateTime
-
status
protected ComplianceStatus status
-
userDisplayName
protected String userDisplayName
-
userPrincipalName
protected String userPrincipalName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceConfigurationUserStatus
public static DeviceConfigurationUserStatus.Builder builderDeviceConfigurationUserStatus()
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
-
getDevicesCount
public Optional<Integer> getDevicesCount()
“Devices count for that user.”- Returns:
- property devicesCount
-
withDevicesCount
public DeviceConfigurationUserStatus withDevicesCount(Integer devicesCount)
Returns an immutable copy ofthiswith just thedevicesCountfield 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.“Devices count for that user.”
- Parameters:
devicesCount- new value ofdevicesCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedevicesCountfield changed
-
getLastReportedDateTime
public Optional<OffsetDateTime> getLastReportedDateTime()
“Last modified date time of the policy report.”- Returns:
- property lastReportedDateTime
-
withLastReportedDateTime
public DeviceConfigurationUserStatus withLastReportedDateTime(OffsetDateTime lastReportedDateTime)
Returns an immutable copy ofthiswith just thelastReportedDateTimefield 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 modified date time of the policy report.”
- Parameters:
lastReportedDateTime- new value oflastReportedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastReportedDateTimefield changed
-
getStatus
public Optional<ComplianceStatus> getStatus()
“Compliance status of the policy report.”- Returns:
- property status
-
withStatus
public DeviceConfigurationUserStatus withStatus(ComplianceStatus 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.“Compliance status of the policy report.”
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
getUserDisplayName
public Optional<String> getUserDisplayName()
“User name of the DevicePolicyStatus.”- Returns:
- property userDisplayName
-
withUserDisplayName
public DeviceConfigurationUserStatus withUserDisplayName(String userDisplayName)
Returns an immutable copy ofthiswith just theuserDisplayNamefield 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 name of the DevicePolicyStatus.”
- Parameters:
userDisplayName- new value ofuserDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserDisplayNamefield changed
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“UserPrincipalName.”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public DeviceConfigurationUserStatus 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.“UserPrincipalName.”
- Parameters:
userPrincipalName- new value ofuserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserPrincipalNamefield changed
-
withUnmappedField
public DeviceConfigurationUserStatus 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 DeviceConfigurationUserStatus patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceConfigurationUserStatus put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-