Package odata.msgraph.client.beta.entity
Class DeviceManagementExchangeOnPremisesPolicy
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementExchangeOnPremisesPolicy
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementExchangeOnPremisesPolicy extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Singleton entity which represents the Exchange OnPremises policy configured for a tenant.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementExchangeOnPremisesPolicy.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<DeviceManagementExchangeAccessRule>accessRulesprotected StringaccessRulesNextLinkprotected DeviceManagementExchangeAccessLeveldefaultAccessLevelprotected List<DeviceManagementExchangeDeviceClass>knownDeviceClassesprotected StringknownDeviceClassesNextLinkprotected byte[]notificationContent-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementExchangeOnPremisesPolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementExchangeOnPremisesPolicy.BuilderbuilderDeviceManagementExchangeOnPremisesPolicy()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.CollectionPage<DeviceManagementExchangeAccessRule>getAccessRules()“The list of device access rules in Exchange.com.github.davidmoten.odata.client.CollectionPage<DeviceManagementExchangeAccessRule>getAccessRules(com.github.davidmoten.odata.client.HttpRequestOptions options)“The list of device access rules in Exchange.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()OnPremisesConditionalAccessSettingsRequestgetConditionalAccessSettings()“The Exchange on premises conditional access settings.Optional<DeviceManagementExchangeAccessLevel>getDefaultAccessLevel()“Default access state in Exchange.com.github.davidmoten.odata.client.CollectionPage<DeviceManagementExchangeDeviceClass>getKnownDeviceClasses()“The list of device classes known to Exchange”com.github.davidmoten.odata.client.CollectionPage<DeviceManagementExchangeDeviceClass>getKnownDeviceClasses(com.github.davidmoten.odata.client.HttpRequestOptions options)“The list of device classes known to Exchange”Optional<byte[]>getNotificationContent()“Notification text that will be sent to users quarantined by this policy.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceManagementExchangeOnPremisesPolicypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementExchangeOnPremisesPolicyput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementExchangeOnPremisesPolicywithAccessRules(List<DeviceManagementExchangeAccessRule> accessRules)Returns an immutable copy ofthiswith just theaccessRulesfield changed.DeviceManagementExchangeOnPremisesPolicywithDefaultAccessLevel(DeviceManagementExchangeAccessLevel defaultAccessLevel)Returns an immutable copy ofthiswith just thedefaultAccessLevelfield changed.DeviceManagementExchangeOnPremisesPolicywithKnownDeviceClasses(List<DeviceManagementExchangeDeviceClass> knownDeviceClasses)Returns an immutable copy ofthiswith just theknownDeviceClassesfield changed.DeviceManagementExchangeOnPremisesPolicywithNotificationContent(byte[] notificationContent)Returns an immutable copy ofthiswith just thenotificationContentfield changed.DeviceManagementExchangeOnPremisesPolicywithUnmappedField(String name, String value)
-
-
-
Field Detail
-
accessRules
protected List<DeviceManagementExchangeAccessRule> accessRules
-
accessRulesNextLink
protected String accessRulesNextLink
-
defaultAccessLevel
protected DeviceManagementExchangeAccessLevel defaultAccessLevel
-
knownDeviceClasses
protected List<DeviceManagementExchangeDeviceClass> knownDeviceClasses
-
knownDeviceClassesNextLink
protected String knownDeviceClassesNextLink
-
notificationContent
protected byte[] notificationContent
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementExchangeOnPremisesPolicy
public static DeviceManagementExchangeOnPremisesPolicy.Builder builderDeviceManagementExchangeOnPremisesPolicy()
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
-
getAccessRules
public com.github.davidmoten.odata.client.CollectionPage<DeviceManagementExchangeAccessRule> getAccessRules()
“The list of device access rules in Exchange. The access rules apply globally to the entire Exchange organization”- Returns:
- property accessRules
-
withAccessRules
public DeviceManagementExchangeOnPremisesPolicy withAccessRules(List<DeviceManagementExchangeAccessRule> accessRules)
Returns an immutable copy ofthiswith just theaccessRulesfield 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 list of device access rules in Exchange. The access rules apply globally to the entire Exchange organization”
- Parameters:
accessRules- new value ofaccessRulesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theaccessRulesfield changed
-
getAccessRules
public com.github.davidmoten.odata.client.CollectionPage<DeviceManagementExchangeAccessRule> getAccessRules(com.github.davidmoten.odata.client.HttpRequestOptions options)
“The list of device access rules in Exchange. The access rules apply globally to the entire Exchange organization”- Parameters:
options- specify connect and read timeouts- Returns:
- property accessRules
-
getDefaultAccessLevel
public Optional<DeviceManagementExchangeAccessLevel> getDefaultAccessLevel()
“Default access state in Exchange. This rule applies globally to the entire Exchange organization”- Returns:
- property defaultAccessLevel
-
withDefaultAccessLevel
public DeviceManagementExchangeOnPremisesPolicy withDefaultAccessLevel(DeviceManagementExchangeAccessLevel defaultAccessLevel)
Returns an immutable copy ofthiswith just thedefaultAccessLevelfield 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.“Default access state in Exchange. This rule applies globally to the entire Exchange organization”
- Parameters:
defaultAccessLevel- new value ofdefaultAccessLevelfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedefaultAccessLevelfield changed
-
getKnownDeviceClasses
public com.github.davidmoten.odata.client.CollectionPage<DeviceManagementExchangeDeviceClass> getKnownDeviceClasses()
“The list of device classes known to Exchange”- Returns:
- property knownDeviceClasses
-
withKnownDeviceClasses
public DeviceManagementExchangeOnPremisesPolicy withKnownDeviceClasses(List<DeviceManagementExchangeDeviceClass> knownDeviceClasses)
Returns an immutable copy ofthiswith just theknownDeviceClassesfield 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 list of device classes known to Exchange”
- Parameters:
knownDeviceClasses- new value ofknownDeviceClassesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theknownDeviceClassesfield changed
-
getKnownDeviceClasses
public com.github.davidmoten.odata.client.CollectionPage<DeviceManagementExchangeDeviceClass> getKnownDeviceClasses(com.github.davidmoten.odata.client.HttpRequestOptions options)
“The list of device classes known to Exchange”- Parameters:
options- specify connect and read timeouts- Returns:
- property knownDeviceClasses
-
getNotificationContent
public Optional<byte[]> getNotificationContent()
“Notification text that will be sent to users quarantined by this policy. This is UTF8 encoded byte array HTML.”- Returns:
- property notificationContent
-
withNotificationContent
public DeviceManagementExchangeOnPremisesPolicy withNotificationContent(byte[] notificationContent)
Returns an immutable copy ofthiswith just thenotificationContentfield 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.“Notification text that will be sent to users quarantined by this policy. This is UTF8 encoded byte array HTML.”
- Parameters:
notificationContent- new value ofnotificationContentfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenotificationContentfield changed
-
withUnmappedField
public DeviceManagementExchangeOnPremisesPolicy withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getConditionalAccessSettings
public OnPremisesConditionalAccessSettingsRequest getConditionalAccessSettings()
“The Exchange on premises conditional access settings. On premises conditional access will require devices to be both enrolled and compliant for mail access”- Returns:
- navigational property conditionalAccessSettings
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceManagementExchangeOnPremisesPolicy patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementExchangeOnPremisesPolicy put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-