Package odata.msgraph.client.beta.entity
Class DeviceManagementIntentUserState
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementIntentUserState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementIntentUserState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Entity that represents user state for an intent”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementIntentUserState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegerdeviceCountprotected OffsetDateTimelastReportedDateTimeprotected ComplianceStatusstateprotected StringuserNameprotected StringuserPrincipalName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementIntentUserState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementIntentUserState.BuilderbuilderDeviceManagementIntentUserState()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>getDeviceCount()“Count of Devices that belongs to a user for an intent”Optional<OffsetDateTime>getLastReportedDateTime()“Last modified date time of an intent report”Optional<ComplianceStatus>getState()“User state for an intent”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserName()“The user name that is being reported on a device”Optional<String>getUserPrincipalName()“The user principal name that is being reported on a device”StringodataTypeName()DeviceManagementIntentUserStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementIntentUserStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementIntentUserStatewithDeviceCount(Integer deviceCount)Returns an immutable copy ofthiswith just thedeviceCountfield changed.DeviceManagementIntentUserStatewithLastReportedDateTime(OffsetDateTime lastReportedDateTime)Returns an immutable copy ofthiswith just thelastReportedDateTimefield changed.DeviceManagementIntentUserStatewithState(ComplianceStatus state)Returns an immutable copy ofthiswith just thestatefield changed.DeviceManagementIntentUserStatewithUnmappedField(String name, String value)DeviceManagementIntentUserStatewithUserName(String userName)Returns an immutable copy ofthiswith just theuserNamefield changed.DeviceManagementIntentUserStatewithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.
-
-
-
Field Detail
-
deviceCount
protected Integer deviceCount
-
lastReportedDateTime
protected OffsetDateTime lastReportedDateTime
-
state
protected ComplianceStatus state
-
userName
protected String userName
-
userPrincipalName
protected String userPrincipalName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementIntentUserState
public static DeviceManagementIntentUserState.Builder builderDeviceManagementIntentUserState()
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
-
getDeviceCount
public Optional<Integer> getDeviceCount()
“Count of Devices that belongs to a user for an intent”- Returns:
- property deviceCount
-
withDeviceCount
public DeviceManagementIntentUserState withDeviceCount(Integer deviceCount)
Returns an immutable copy ofthiswith just thedeviceCountfield 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.“Count of Devices that belongs to a user for an intent”
- Parameters:
deviceCount- new value ofdeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceCountfield changed
-
getLastReportedDateTime
public Optional<OffsetDateTime> getLastReportedDateTime()
“Last modified date time of an intent report”- Returns:
- property lastReportedDateTime
-
withLastReportedDateTime
public DeviceManagementIntentUserState 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 an intent report”
- Parameters:
lastReportedDateTime- new value oflastReportedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastReportedDateTimefield changed
-
getState
public Optional<ComplianceStatus> getState()
“User state for an intent”- Returns:
- property state
-
withState
public DeviceManagementIntentUserState withState(ComplianceStatus 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.“User state for an intent”
- Parameters:
state- new value ofstatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatefield changed
-
getUserName
public Optional<String> getUserName()
“The user name that is being reported on a device”- Returns:
- property userName
-
withUserName
public DeviceManagementIntentUserState withUserName(String userName)
Returns an immutable copy ofthiswith just theuserNamefield 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 name that is being reported on a device”
- Parameters:
userName- new value ofuserNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserNamefield changed
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“The user principal name that is being reported on a device”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public DeviceManagementIntentUserState 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 that is being reported on a device”
- Parameters:
userPrincipalName- new value ofuserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserPrincipalNamefield changed
-
withUnmappedField
public DeviceManagementIntentUserState 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 DeviceManagementIntentUserState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementIntentUserState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-