Class DeviceManagementExchangeAccessRule
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceManagementExchangeAccessRule
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceManagementExchangeAccessRule extends Object implements com.github.davidmoten.odata.client.ODataType
“Device Access Rules in Exchange.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementExchangeAccessRule.Builder
-
Field Summary
Fields Modifier and Type Field Description protected DeviceManagementExchangeAccessLevelaccessLevelprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected DeviceManagementExchangeDeviceClassdeviceClassprotected StringodataTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementExchangeAccessRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementExchangeAccessRule.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<DeviceManagementExchangeAccessLevel>getAccessLevel()“Access Level for Exchange granted by this rule.”Optional<DeviceManagementExchangeDeviceClass>getDeviceClass()“Device Class which will be impacted by this rule.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceManagementExchangeAccessRulewithAccessLevel(DeviceManagementExchangeAccessLevel accessLevel)Returns an immutable copy ofthiswith just theaccessLevelfield changed.DeviceManagementExchangeAccessRulewithDeviceClass(DeviceManagementExchangeDeviceClass deviceClass)Returns an immutable copy ofthiswith just thedeviceClassfield changed.DeviceManagementExchangeAccessRulewithUnmappedField(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
-
accessLevel
protected DeviceManagementExchangeAccessLevel accessLevel
-
deviceClass
protected DeviceManagementExchangeDeviceClass deviceClass
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getAccessLevel
public Optional<DeviceManagementExchangeAccessLevel> getAccessLevel()
“Access Level for Exchange granted by this rule.”- Returns:
- property accessLevel
-
withAccessLevel
public DeviceManagementExchangeAccessRule withAccessLevel(DeviceManagementExchangeAccessLevel accessLevel)
Returns an immutable copy ofthiswith just theaccessLevelfield 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.“Access Level for Exchange granted by this rule.”
- Parameters:
accessLevel- new value ofaccessLevelfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theaccessLevelfield changed
-
getDeviceClass
public Optional<DeviceManagementExchangeDeviceClass> getDeviceClass()
“Device Class which will be impacted by this rule.”- Returns:
- property deviceClass
-
withDeviceClass
public DeviceManagementExchangeAccessRule withDeviceClass(DeviceManagementExchangeDeviceClass deviceClass)
Returns an immutable copy ofthiswith just thedeviceClassfield 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 Class which will be impacted by this rule.”
- Parameters:
deviceClass- new value ofdeviceClassfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceClassfield changed
-
withUnmappedField
public DeviceManagementExchangeAccessRule 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 DeviceManagementExchangeAccessRule.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
-
-