Package odata.msgraph.client.beta.entity
Class DeviceManagementScriptUserState
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementScriptUserState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementScriptUserState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Contains properties for user run state of the device management script.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementScriptUserState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegererrorDeviceCountprotected IntegersuccessDeviceCountprotected StringuserPrincipalName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementScriptUserState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementScriptUserState.BuilderbuilderDeviceManagementScriptUserState()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()DeviceManagementScriptDeviceStateCollectionRequestgetDeviceRunStates()“List of run states for this script across all devices of specific user.”Optional<Integer>getErrorDeviceCount()“Error device count for specific user.”Optional<Integer>getSuccessDeviceCount()“Success device count for specific user.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserPrincipalName()“User principle name of specific user.”StringodataTypeName()DeviceManagementScriptUserStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementScriptUserStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementScriptUserStatewithErrorDeviceCount(Integer errorDeviceCount)Returns an immutable copy ofthiswith just theerrorDeviceCountfield changed.DeviceManagementScriptUserStatewithSuccessDeviceCount(Integer successDeviceCount)Returns an immutable copy ofthiswith just thesuccessDeviceCountfield changed.DeviceManagementScriptUserStatewithUnmappedField(String name, String value)DeviceManagementScriptUserStatewithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementScriptUserState
public static DeviceManagementScriptUserState.Builder builderDeviceManagementScriptUserState()
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
-
getErrorDeviceCount
public Optional<Integer> getErrorDeviceCount()
“Error device count for specific user.”- Returns:
- property errorDeviceCount
-
withErrorDeviceCount
public DeviceManagementScriptUserState withErrorDeviceCount(Integer errorDeviceCount)
Returns an immutable copy ofthiswith just theerrorDeviceCountfield 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.“Error device count for specific user.”
- Parameters:
errorDeviceCount- new value oferrorDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theerrorDeviceCountfield changed
-
getSuccessDeviceCount
public Optional<Integer> getSuccessDeviceCount()
“Success device count for specific user.”- Returns:
- property successDeviceCount
-
withSuccessDeviceCount
public DeviceManagementScriptUserState withSuccessDeviceCount(Integer successDeviceCount)
Returns an immutable copy ofthiswith just thesuccessDeviceCountfield 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.“Success device count for specific user.”
- Parameters:
successDeviceCount- new value ofsuccessDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesuccessDeviceCountfield changed
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“User principle name of specific user.”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public DeviceManagementScriptUserState 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 principle name of specific user.”
- Parameters:
userPrincipalName- new value ofuserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserPrincipalNamefield changed
-
withUnmappedField
public DeviceManagementScriptUserState withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getDeviceRunStates
public DeviceManagementScriptDeviceStateCollectionRequest getDeviceRunStates()
“List of run states for this script across all devices of specific user.”- Returns:
- navigational property deviceRunStates
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceManagementScriptUserState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementScriptUserState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-