Package odata.msgraph.client.beta.entity
Class DeviceManagementIntentDeviceState
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementIntentDeviceState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementIntentDeviceState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Entity that represents device state for an intent”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementIntentDeviceState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdeviceDisplayNameprotected StringdeviceIdprotected 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 protectedDeviceManagementIntentDeviceState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementIntentDeviceState.BuilderbuilderDeviceManagementIntentDeviceState()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 name that is being reported”Optional<String>getDeviceId()“Device id that is being reported”Optional<OffsetDateTime>getLastReportedDateTime()“Last modified date time of an intent report”Optional<ComplianceStatus>getState()“Device 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()DeviceManagementIntentDeviceStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementIntentDeviceStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementIntentDeviceStatewithDeviceDisplayName(String deviceDisplayName)Returns an immutable copy ofthiswith just thedeviceDisplayNamefield changed.DeviceManagementIntentDeviceStatewithDeviceId(String deviceId)Returns an immutable copy ofthiswith just thedeviceIdfield changed.DeviceManagementIntentDeviceStatewithLastReportedDateTime(OffsetDateTime lastReportedDateTime)Returns an immutable copy ofthiswith just thelastReportedDateTimefield changed.DeviceManagementIntentDeviceStatewithState(ComplianceStatus state)Returns an immutable copy ofthiswith just thestatefield changed.DeviceManagementIntentDeviceStatewithUnmappedField(String name, String value)DeviceManagementIntentDeviceStatewithUserName(String userName)Returns an immutable copy ofthiswith just theuserNamefield changed.DeviceManagementIntentDeviceStatewithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.
-
-
-
Field Detail
-
deviceDisplayName
protected String deviceDisplayName
-
deviceId
protected String deviceId
-
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
-
builderDeviceManagementIntentDeviceState
public static DeviceManagementIntentDeviceState.Builder builderDeviceManagementIntentDeviceState()
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 name that is being reported”- Returns:
- property deviceDisplayName
-
withDeviceDisplayName
public DeviceManagementIntentDeviceState 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 name that is being reported”
- Parameters:
deviceDisplayName- new value ofdeviceDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceDisplayNamefield changed
-
getDeviceId
public Optional<String> getDeviceId()
“Device id that is being reported”- Returns:
- property deviceId
-
withDeviceId
public DeviceManagementIntentDeviceState 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.“Device id that is being reported”
- Parameters:
deviceId- new value ofdeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceIdfield changed
-
getLastReportedDateTime
public Optional<OffsetDateTime> getLastReportedDateTime()
“Last modified date time of an intent report”- Returns:
- property lastReportedDateTime
-
withLastReportedDateTime
public DeviceManagementIntentDeviceState 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()
“Device state for an intent”- Returns:
- property state
-
withState
public DeviceManagementIntentDeviceState 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.“Device 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 DeviceManagementIntentDeviceState 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 DeviceManagementIntentDeviceState 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 DeviceManagementIntentDeviceState 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 DeviceManagementIntentDeviceState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementIntentDeviceState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-