Class DefaultManagedAppProtection
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.ManagedAppPolicy
-
- odata.msgraph.client.entity.ManagedAppProtection
-
- odata.msgraph.client.entity.DefaultManagedAppProtection
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DefaultManagedAppProtection extends ManagedAppProtection implements com.github.davidmoten.odata.client.ODataEntityType
“Policy used to configure detailed management settings for a specified set of apps for all users not targeted by a TargetedManagedAppProtection Policy”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultManagedAppProtection.Builder
-
Field Summary
Fields Modifier and Type Field Description protected ManagedAppDataEncryptionTypeappDataEncryptionTypeprotected List<ManagedMobileApp>appsprotected List<KeyValuePair>customSettingsprotected StringcustomSettingsNextLinkprotected IntegerdeployedAppCountprotected ManagedAppPolicyDeploymentSummarydeploymentSummaryprotected BooleandisableAppEncryptionIfDeviceEncryptionIsEnabledprotected BooleanencryptAppDataprotected BooleanfaceIdBlockedprotected StringminimumRequiredPatchVersionprotected StringminimumRequiredSdkVersionprotected StringminimumWarningPatchVersionprotected BooleanscreenCaptureBlocked-
Fields inherited from class odata.msgraph.client.entity.ManagedAppProtection
allowedDataStorageLocations, allowedDataStorageLocationsNextLink, allowedInboundDataTransferSources, allowedOutboundClipboardSharingLevel, allowedOutboundDataTransferDestinations, contactSyncBlocked, dataBackupBlocked, deviceComplianceRequired, disableAppPinIfDevicePinIsSet, fingerprintBlocked, managedBrowser, managedBrowserToOpenLinksRequired, maximumPinRetries, minimumPinLength, minimumRequiredAppVersion, minimumRequiredOsVersion, minimumWarningAppVersion, minimumWarningOsVersion, organizationalCredentialsRequired, periodBeforePinReset, periodOfflineBeforeAccessCheck, periodOfflineBeforeWipeIsEnforced, periodOnlineBeforeAccessCheck, pinCharacterSet, pinRequired, printBlocked, saveAsBlocked, simplePinBlocked
-
Fields inherited from class odata.msgraph.client.entity.ManagedAppPolicy
createdDateTime, description, displayName, lastModifiedDateTime, version
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultManagedAppProtection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultManagedAppProtection.BuilderbuilderDefaultManagedAppProtection()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<ManagedAppDataEncryptionType>getAppDataEncryptionType()“Type of encryption which should be used for data in a managed app.ManagedMobileAppCollectionRequestgetApps()“List of apps to which the policy is deployed.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()com.github.davidmoten.odata.client.CollectionPage<KeyValuePair>getCustomSettings()“A set of string key and string value pairs to be sent to the affected users, unalterned by this service”com.github.davidmoten.odata.client.CollectionPage<KeyValuePair>getCustomSettings(com.github.davidmoten.odata.client.HttpRequestOptions options)“A set of string key and string value pairs to be sent to the affected users, unalterned by this service”Optional<Integer>getDeployedAppCount()“Count of apps to which the current policy is deployed.”ManagedAppPolicyDeploymentSummaryRequestgetDeploymentSummary()“Navigation property to deployment summary of the configuration.”Optional<Boolean>getDisableAppEncryptionIfDeviceEncryptionIsEnabled()“When this setting is enabled, app level encryption is disabled if device level encryption is enabled.Optional<Boolean>getEncryptAppData()“Indicates whether managed-app data should be encrypted.Optional<Boolean>getFaceIdBlocked()“Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True.Optional<String>getMinimumRequiredPatchVersion()“Define the oldest required Android security patch level a user can have to gain secure access to the app.Optional<String>getMinimumRequiredSdkVersion()“Versions less than the specified version will block the managed app from accessing company data.Optional<String>getMinimumWarningPatchVersion()“Define the oldest recommended Android security patch level a user can have for secure access to the app.Optional<Boolean>getScreenCaptureBlocked()“Indicates whether screen capture is blocked.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DefaultManagedAppProtectionpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DefaultManagedAppProtectionput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DefaultManagedAppProtectionwithAppDataEncryptionType(ManagedAppDataEncryptionType appDataEncryptionType)Returns an immutable copy ofthiswith just theappDataEncryptionTypefield changed.DefaultManagedAppProtectionwithApps(List<ManagedMobileApp> apps)Returns an immutable copy ofthiswith just theappsfield changed.DefaultManagedAppProtectionwithCustomSettings(List<KeyValuePair> customSettings)Returns an immutable copy ofthiswith just thecustomSettingsfield changed.DefaultManagedAppProtectionwithDeployedAppCount(Integer deployedAppCount)Returns an immutable copy ofthiswith just thedeployedAppCountfield changed.DefaultManagedAppProtectionwithDeploymentSummary(ManagedAppPolicyDeploymentSummary deploymentSummary)Returns an immutable copy ofthiswith just thedeploymentSummaryfield changed.DefaultManagedAppProtectionwithDisableAppEncryptionIfDeviceEncryptionIsEnabled(Boolean disableAppEncryptionIfDeviceEncryptionIsEnabled)Returns an immutable copy ofthiswith just thedisableAppEncryptionIfDeviceEncryptionIsEnabledfield changed.DefaultManagedAppProtectionwithEncryptAppData(Boolean encryptAppData)Returns an immutable copy ofthiswith just theencryptAppDatafield changed.DefaultManagedAppProtectionwithFaceIdBlocked(Boolean faceIdBlocked)Returns an immutable copy ofthiswith just thefaceIdBlockedfield changed.DefaultManagedAppProtectionwithMinimumRequiredPatchVersion(String minimumRequiredPatchVersion)Returns an immutable copy ofthiswith just theminimumRequiredPatchVersionfield changed.DefaultManagedAppProtectionwithMinimumRequiredSdkVersion(String minimumRequiredSdkVersion)Returns an immutable copy ofthiswith just theminimumRequiredSdkVersionfield changed.DefaultManagedAppProtectionwithMinimumWarningPatchVersion(String minimumWarningPatchVersion)Returns an immutable copy ofthiswith just theminimumWarningPatchVersionfield changed.DefaultManagedAppProtectionwithScreenCaptureBlocked(Boolean screenCaptureBlocked)Returns an immutable copy ofthiswith just thescreenCaptureBlockedfield changed.DefaultManagedAppProtectionwithUnmappedField(String name, Object value)-
Methods inherited from class odata.msgraph.client.entity.ManagedAppProtection
getAllowedDataStorageLocations, getAllowedDataStorageLocations, getAllowedInboundDataTransferSources, getAllowedOutboundClipboardSharingLevel, getAllowedOutboundDataTransferDestinations, getContactSyncBlocked, getDataBackupBlocked, getDeviceComplianceRequired, getDisableAppPinIfDevicePinIsSet, getFingerprintBlocked, getManagedBrowser, getManagedBrowserToOpenLinksRequired, getMaximumPinRetries, getMinimumPinLength, getMinimumRequiredAppVersion, getMinimumRequiredOsVersion, getMinimumWarningAppVersion, getMinimumWarningOsVersion, getOrganizationalCredentialsRequired, getPeriodBeforePinReset, getPeriodOfflineBeforeAccessCheck, getPeriodOfflineBeforeWipeIsEnforced, getPeriodOnlineBeforeAccessCheck, getPinCharacterSet, getPinRequired, getPrintBlocked, getSaveAsBlocked, getSimplePinBlocked, targetApps, withAllowedDataStorageLocations, withAllowedInboundDataTransferSources, withAllowedOutboundClipboardSharingLevel, withAllowedOutboundDataTransferDestinations, withContactSyncBlocked, withDataBackupBlocked, withDeviceComplianceRequired, withDisableAppPinIfDevicePinIsSet, withFingerprintBlocked, withManagedBrowser, withManagedBrowserToOpenLinksRequired, withMaximumPinRetries, withMinimumPinLength, withMinimumRequiredAppVersion, withMinimumRequiredOsVersion, withMinimumWarningAppVersion, withMinimumWarningOsVersion, withOrganizationalCredentialsRequired, withPeriodBeforePinReset, withPeriodOfflineBeforeAccessCheck, withPeriodOfflineBeforeWipeIsEnforced, withPeriodOnlineBeforeAccessCheck, withPinCharacterSet, withPinRequired, withPrintBlocked, withSaveAsBlocked, withSimplePinBlocked
-
Methods inherited from class odata.msgraph.client.entity.ManagedAppPolicy
getCreatedDateTime, getDescription, getDisplayName, getLastModifiedDateTime, getVersion, withCreatedDateTime, withDescription, withDisplayName, withLastModifiedDateTime, withVersion
-
-
-
-
Field Detail
-
appDataEncryptionType
protected ManagedAppDataEncryptionType appDataEncryptionType
-
customSettings
protected List<KeyValuePair> customSettings
-
customSettingsNextLink
protected String customSettingsNextLink
-
deployedAppCount
protected Integer deployedAppCount
-
disableAppEncryptionIfDeviceEncryptionIsEnabled
protected Boolean disableAppEncryptionIfDeviceEncryptionIsEnabled
-
encryptAppData
protected Boolean encryptAppData
-
faceIdBlocked
protected Boolean faceIdBlocked
-
minimumRequiredPatchVersion
protected String minimumRequiredPatchVersion
-
minimumRequiredSdkVersion
protected String minimumRequiredSdkVersion
-
minimumWarningPatchVersion
protected String minimumWarningPatchVersion
-
screenCaptureBlocked
protected Boolean screenCaptureBlocked
-
apps
protected List<ManagedMobileApp> apps
-
deploymentSummary
protected ManagedAppPolicyDeploymentSummary deploymentSummary
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classManagedAppProtection
-
builderDefaultManagedAppProtection
public static DefaultManagedAppProtection.Builder builderDefaultManagedAppProtection()
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 classManagedAppProtection
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classManagedAppProtection
-
getAppDataEncryptionType
public Optional<ManagedAppDataEncryptionType> getAppDataEncryptionType()
“Type of encryption which should be used for data in a managed app. (iOS Only)”- Returns:
- property appDataEncryptionType
-
withAppDataEncryptionType
public DefaultManagedAppProtection withAppDataEncryptionType(ManagedAppDataEncryptionType appDataEncryptionType)
Returns an immutable copy ofthiswith just theappDataEncryptionTypefield 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.“Type of encryption which should be used for data in a managed app. (iOS Only)”
- Parameters:
appDataEncryptionType- new value ofappDataEncryptionTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappDataEncryptionTypefield changed
-
getCustomSettings
public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getCustomSettings()
“A set of string key and string value pairs to be sent to the affected users, unalterned by this service”- Returns:
- property customSettings
-
withCustomSettings
public DefaultManagedAppProtection withCustomSettings(List<KeyValuePair> customSettings)
Returns an immutable copy ofthiswith just thecustomSettingsfield 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.“A set of string key and string value pairs to be sent to the affected users, unalterned by this service”
- Parameters:
customSettings- new value ofcustomSettingsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecustomSettingsfield changed
-
getCustomSettings
public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getCustomSettings(com.github.davidmoten.odata.client.HttpRequestOptions options)
“A set of string key and string value pairs to be sent to the affected users, unalterned by this service”- Parameters:
options- specify connect and read timeouts- Returns:
- property customSettings
-
getDeployedAppCount
public Optional<Integer> getDeployedAppCount()
“Count of apps to which the current policy is deployed.”- Returns:
- property deployedAppCount
-
withDeployedAppCount
public DefaultManagedAppProtection withDeployedAppCount(Integer deployedAppCount)
Returns an immutable copy ofthiswith just thedeployedAppCountfield 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.“Count of apps to which the current policy is deployed.”
- Parameters:
deployedAppCount- new value ofdeployedAppCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeployedAppCountfield changed
-
getDisableAppEncryptionIfDeviceEncryptionIsEnabled
public Optional<Boolean> getDisableAppEncryptionIfDeviceEncryptionIsEnabled()
“When this setting is enabled, app level encryption is disabled if device level encryption is enabled. (Android only)”- Returns:
- property disableAppEncryptionIfDeviceEncryptionIsEnabled
-
withDisableAppEncryptionIfDeviceEncryptionIsEnabled
public DefaultManagedAppProtection withDisableAppEncryptionIfDeviceEncryptionIsEnabled(Boolean disableAppEncryptionIfDeviceEncryptionIsEnabled)
Returns an immutable copy ofthiswith just thedisableAppEncryptionIfDeviceEncryptionIsEnabledfield 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.“When this setting is enabled, app level encryption is disabled if device level encryption is enabled. (Android only)”
- Parameters:
disableAppEncryptionIfDeviceEncryptionIsEnabled- new value ofdisableAppEncryptionIfDeviceEncryptionIsEnabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisableAppEncryptionIfDeviceEncryptionIsEnabledfield changed
-
getEncryptAppData
public Optional<Boolean> getEncryptAppData()
“Indicates whether managed-app data should be encrypted. (Android only)”- Returns:
- property encryptAppData
-
withEncryptAppData
public DefaultManagedAppProtection withEncryptAppData(Boolean encryptAppData)
Returns an immutable copy ofthiswith just theencryptAppDatafield 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.“Indicates whether managed-app data should be encrypted. (Android only)”
- Parameters:
encryptAppData- new value ofencryptAppDatafield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theencryptAppDatafield changed
-
getFaceIdBlocked
public Optional<Boolean> getFaceIdBlocked()
“Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True. (iOS Only)”- Returns:
- property faceIdBlocked
-
withFaceIdBlocked
public DefaultManagedAppProtection withFaceIdBlocked(Boolean faceIdBlocked)
Returns an immutable copy ofthiswith just thefaceIdBlockedfield 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.“Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True. (iOS Only)”
- Parameters:
faceIdBlocked- new value offaceIdBlockedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefaceIdBlockedfield changed
-
getMinimumRequiredPatchVersion
public Optional<String> getMinimumRequiredPatchVersion()
“Define the oldest required Android security patch level a user can have to gain secure access to the app. (Android only)”- Returns:
- property minimumRequiredPatchVersion
-
withMinimumRequiredPatchVersion
public DefaultManagedAppProtection withMinimumRequiredPatchVersion(String minimumRequiredPatchVersion)
Returns an immutable copy ofthiswith just theminimumRequiredPatchVersionfield 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.“Define the oldest required Android security patch level a user can have to gain secure access to the app. (Android only)”
- Parameters:
minimumRequiredPatchVersion- new value ofminimumRequiredPatchVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumRequiredPatchVersionfield changed
-
getMinimumRequiredSdkVersion
public Optional<String> getMinimumRequiredSdkVersion()
“Versions less than the specified version will block the managed app from accessing company data. (iOS Only)”- Returns:
- property minimumRequiredSdkVersion
-
withMinimumRequiredSdkVersion
public DefaultManagedAppProtection withMinimumRequiredSdkVersion(String minimumRequiredSdkVersion)
Returns an immutable copy ofthiswith just theminimumRequiredSdkVersionfield 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.“Versions less than the specified version will block the managed app from accessing company data. (iOS Only)”
- Parameters:
minimumRequiredSdkVersion- new value ofminimumRequiredSdkVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumRequiredSdkVersionfield changed
-
getMinimumWarningPatchVersion
public Optional<String> getMinimumWarningPatchVersion()
“Define the oldest recommended Android security patch level a user can have for secure access to the app. (Android only)”- Returns:
- property minimumWarningPatchVersion
-
withMinimumWarningPatchVersion
public DefaultManagedAppProtection withMinimumWarningPatchVersion(String minimumWarningPatchVersion)
Returns an immutable copy ofthiswith just theminimumWarningPatchVersionfield 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.“Define the oldest recommended Android security patch level a user can have for secure access to the app. (Android only)”
- Parameters:
minimumWarningPatchVersion- new value ofminimumWarningPatchVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumWarningPatchVersionfield changed
-
getScreenCaptureBlocked
public Optional<Boolean> getScreenCaptureBlocked()
“Indicates whether screen capture is blocked. (Android only)”- Returns:
- property screenCaptureBlocked
-
withScreenCaptureBlocked
public DefaultManagedAppProtection withScreenCaptureBlocked(Boolean screenCaptureBlocked)
Returns an immutable copy ofthiswith just thescreenCaptureBlockedfield 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.“Indicates whether screen capture is blocked. (Android only)”
- Parameters:
screenCaptureBlocked- new value ofscreenCaptureBlockedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thescreenCaptureBlockedfield changed
-
withUnmappedField
public DefaultManagedAppProtection withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classManagedAppProtection
-
getApps
public ManagedMobileAppCollectionRequest getApps()
“List of apps to which the policy is deployed.”- Returns:
- navigational property apps
-
getDeploymentSummary
public ManagedAppPolicyDeploymentSummaryRequest getDeploymentSummary()
“Navigation property to deployment summary of the configuration.”- Returns:
- navigational property deploymentSummary
-
withApps
public DefaultManagedAppProtection withApps(List<ManagedMobileApp> apps)
Returns an immutable copy ofthiswith just theappsfield 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.“List of apps to which the policy is deployed.”
- Parameters:
apps- new value ofappsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappsfield changed
-
withDeploymentSummary
public DefaultManagedAppProtection withDeploymentSummary(ManagedAppPolicyDeploymentSummary deploymentSummary)
Returns an immutable copy ofthiswith just thedeploymentSummaryfield 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.“Navigation property to deployment summary of the configuration.”
- Parameters:
deploymentSummary- new value ofdeploymentSummaryfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeploymentSummaryfield changed
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classManagedAppProtection
-
patch
public DefaultManagedAppProtection patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classManagedAppProtection- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public DefaultManagedAppProtection put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classManagedAppProtection- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classManagedAppProtection
-
-