public class DeviceManagementIntentDeviceState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceManagementIntentDeviceState.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
deviceDisplayName |
protected String |
deviceId |
protected OffsetDateTime |
lastReportedDateTime |
protected ComplianceStatus |
state |
protected String |
userName |
protected String |
userPrincipalName |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
DeviceManagementIntentDeviceState() |
| Modifier and Type | Method and Description |
|---|---|
static DeviceManagementIntentDeviceState.Builder |
builderDeviceManagementIntentDeviceState()
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.ChangedFields |
getChangedFields() |
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.internal.UnmappedFields |
getUnmappedFields() |
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”
|
String |
odataTypeName() |
DeviceManagementIntentDeviceState |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
DeviceManagementIntentDeviceState |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
DeviceManagementIntentDeviceState |
withDeviceDisplayName(String deviceDisplayName)
Returns an immutable copy of
this with just the deviceDisplayName
field changed. |
DeviceManagementIntentDeviceState |
withDeviceId(String deviceId)
Returns an immutable copy of
this with just the deviceId field
changed. |
DeviceManagementIntentDeviceState |
withLastReportedDateTime(OffsetDateTime lastReportedDateTime)
Returns an immutable copy of
this with just the lastReportedDateTime field changed. |
DeviceManagementIntentDeviceState |
withState(ComplianceStatus state)
Returns an immutable copy of
this with just the state field
changed. |
DeviceManagementIntentDeviceState |
withUserName(String userName)
Returns an immutable copy of
this with just the userName field
changed. |
DeviceManagementIntentDeviceState |
withUserPrincipalName(String userPrincipalName)
Returns an immutable copy of
this with just the userPrincipalName
field changed. |
protected String userPrincipalName
protected String userName
protected String deviceDisplayName
protected OffsetDateTime lastReportedDateTime
protected ComplianceStatus state
protected String deviceId
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static DeviceManagementIntentDeviceState.Builder builderDeviceManagementIntentDeviceState()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic Optional<String> getUserPrincipalName()
public DeviceManagementIntentDeviceState withUserPrincipalName(String userPrincipalName)
this with just the userPrincipalName
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
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”
userPrincipalName - new value of userPrincipalName field (as defined in service metadata)this with just the userPrincipalName field changedpublic Optional<String> getUserName()
public DeviceManagementIntentDeviceState withUserName(String userName)
this with just the userName field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.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”
userName - new value of userName field (as defined in service metadata)this with just the userName field changedpublic Optional<String> getDeviceDisplayName()
public DeviceManagementIntentDeviceState withDeviceDisplayName(String deviceDisplayName)
this with just the deviceDisplayName
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Device name that is being reported”
deviceDisplayName - new value of deviceDisplayName field (as defined in service metadata)this with just the deviceDisplayName field changedpublic Optional<OffsetDateTime> getLastReportedDateTime()
public DeviceManagementIntentDeviceState withLastReportedDateTime(OffsetDateTime lastReportedDateTime)
this with just the lastReportedDateTime field changed. Field description below. The field name is
also added to an internal map of changed fields in the returned object so that
when this.patch() is called (if available)on the returned object only
the changed fields are submitted.
“Last modified date time of an intent report”
lastReportedDateTime - new value of lastReportedDateTime field (as defined in service metadata)this with just the lastReportedDateTime field changedpublic Optional<ComplianceStatus> getState()
public DeviceManagementIntentDeviceState withState(ComplianceStatus state)
this with just the state field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Device state for an intent”
state - new value of state field (as defined in service metadata)this with just the state field changedpublic Optional<String> getDeviceId()
public DeviceManagementIntentDeviceState withDeviceId(String deviceId)
this with just the deviceId field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Device id that is being reported”
deviceId - new value of deviceId field (as defined in service metadata)this with just the deviceId field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic DeviceManagementIntentDeviceState patch()
this with changed fields reset.public DeviceManagementIntentDeviceState put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.