Class DeviceManagementUserRightsLocalUserOrGroup
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceManagementUserRightsLocalUserOrGroup
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceManagementUserRightsLocalUserOrGroup extends Object implements com.github.davidmoten.odata.client.ODataType
“Represents information for a local user or group used for user rights setting.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementUserRightsLocalUserOrGroup.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected Stringdescriptionprotected Stringnameprotected StringodataTypeprotected StringsecurityIdentifierprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementUserRightsLocalUserOrGroup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementUserRightsLocalUserOrGroup.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getDescription()“Admin’s description of this local user or group.”Optional<String>getName()“The name of this local user or group.”Optional<String>getSecurityIdentifier()“The security identifier of this local user or group (e.g.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceManagementUserRightsLocalUserOrGroupwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceManagementUserRightsLocalUserOrGroupwithName(String name)Returns an immutable copy ofthiswith just thenamefield changed.DeviceManagementUserRightsLocalUserOrGroupwithSecurityIdentifier(String securityIdentifier)Returns an immutable copy ofthiswith just thesecurityIdentifierfield changed.DeviceManagementUserRightsLocalUserOrGroupwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
description
protected String description
-
name
protected String name
-
securityIdentifier
protected String securityIdentifier
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getDescription
public Optional<String> getDescription()
“Admin’s description of this local user or group.”- Returns:
- property description
-
withDescription
public DeviceManagementUserRightsLocalUserOrGroup withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield 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.“Admin’s description of this local user or group.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getName
public Optional<String> getName()
“The name of this local user or group.”- Returns:
- property name
-
withName
public DeviceManagementUserRightsLocalUserOrGroup withName(String name)
Returns an immutable copy ofthiswith just thenamefield 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 name of this local user or group.”
- Parameters:
name- new value ofnamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenamefield changed
-
getSecurityIdentifier
public Optional<String> getSecurityIdentifier()
“The security identifier of this local user or group (e.g. *S-1-5-32-544).”- Returns:
- property securityIdentifier
-
withSecurityIdentifier
public DeviceManagementUserRightsLocalUserOrGroup withSecurityIdentifier(String securityIdentifier)
Returns an immutable copy ofthiswith just thesecurityIdentifierfield 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 security identifier of this local user or group (e.g. *S-1-5-32-544).”
- Parameters:
securityIdentifier- new value ofsecurityIdentifierfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesecurityIdentifierfield changed
-
withUnmappedField
public DeviceManagementUserRightsLocalUserOrGroup withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static DeviceManagementUserRightsLocalUserOrGroup.Builder builder()
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
-
-