Class AndroidManagedAppProtection
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.ManagedAppPolicy
-
- odata.msgraph.client.entity.ManagedAppProtection
-
- odata.msgraph.client.entity.TargetedManagedAppProtection
-
- odata.msgraph.client.entity.AndroidManagedAppProtection
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AndroidManagedAppProtection extends TargetedManagedAppProtection implements com.github.davidmoten.odata.client.ODataEntityType
“Policy used to configure detailed management settings targeted to specific security groups and for a specified set of apps on an Android device”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidManagedAppProtection.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<ManagedMobileApp>appsprotected StringcustomBrowserDisplayNameprotected StringcustomBrowserPackageIdprotected IntegerdeployedAppCountprotected ManagedAppPolicyDeploymentSummarydeploymentSummaryprotected BooleandisableAppEncryptionIfDeviceEncryptionIsEnabledprotected BooleanencryptAppDataprotected StringminimumRequiredPatchVersionprotected StringminimumWarningPatchVersionprotected BooleanscreenCaptureBlocked-
Fields inherited from class odata.msgraph.client.entity.TargetedManagedAppProtection
assignments, isAssigned
-
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 protectedAndroidManagedAppProtection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidManagedAppProtection.BuilderbuilderAndroidManagedAppProtection()Returns a builder which is used to create a new instance of this class (given that this class is immutable).ManagedMobileAppCollectionRequestgetApps()“List of apps to which the policy is deployed.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getCustomBrowserDisplayName()“Friendly name of the preferred custom browser to open weblink on Android.Optional<String>getCustomBrowserPackageId()“Unique identifier of the preferred custom browser to open weblink on Android.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 application data for managed apps should be encrypted”Optional<String>getMinimumRequiredPatchVersion()“Define the oldest required Android security patch level a user can have to gain secure access to the app.”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 a managed user can take screen captures of managed apps”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()AndroidManagedAppProtectionpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidManagedAppProtectionput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AndroidManagedAppProtectionwithApps(List<ManagedMobileApp> apps)Returns an immutable copy ofthiswith just theappsfield changed.AndroidManagedAppProtectionwithCustomBrowserDisplayName(String customBrowserDisplayName)Returns an immutable copy ofthiswith just thecustomBrowserDisplayNamefield changed.AndroidManagedAppProtectionwithCustomBrowserPackageId(String customBrowserPackageId)Returns an immutable copy ofthiswith just thecustomBrowserPackageIdfield changed.AndroidManagedAppProtectionwithDeployedAppCount(Integer deployedAppCount)Returns an immutable copy ofthiswith just thedeployedAppCountfield changed.AndroidManagedAppProtectionwithDeploymentSummary(ManagedAppPolicyDeploymentSummary deploymentSummary)Returns an immutable copy ofthiswith just thedeploymentSummaryfield changed.AndroidManagedAppProtectionwithDisableAppEncryptionIfDeviceEncryptionIsEnabled(Boolean disableAppEncryptionIfDeviceEncryptionIsEnabled)Returns an immutable copy ofthiswith just thedisableAppEncryptionIfDeviceEncryptionIsEnabledfield changed.AndroidManagedAppProtectionwithEncryptAppData(Boolean encryptAppData)Returns an immutable copy ofthiswith just theencryptAppDatafield changed.AndroidManagedAppProtectionwithMinimumRequiredPatchVersion(String minimumRequiredPatchVersion)Returns an immutable copy ofthiswith just theminimumRequiredPatchVersionfield changed.AndroidManagedAppProtectionwithMinimumWarningPatchVersion(String minimumWarningPatchVersion)Returns an immutable copy ofthiswith just theminimumWarningPatchVersionfield changed.AndroidManagedAppProtectionwithScreenCaptureBlocked(Boolean screenCaptureBlocked)Returns an immutable copy ofthiswith just thescreenCaptureBlockedfield changed.AndroidManagedAppProtectionwithUnmappedField(String name, Object value)-
Methods inherited from class odata.msgraph.client.entity.TargetedManagedAppProtection
assign, getAssignments, getIsAssigned, targetApps, withAssignments, withIsAssigned
-
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
-
customBrowserDisplayName
protected String customBrowserDisplayName
-
customBrowserPackageId
protected String customBrowserPackageId
-
deployedAppCount
protected Integer deployedAppCount
-
disableAppEncryptionIfDeviceEncryptionIsEnabled
protected Boolean disableAppEncryptionIfDeviceEncryptionIsEnabled
-
encryptAppData
protected Boolean encryptAppData
-
minimumRequiredPatchVersion
protected String minimumRequiredPatchVersion
-
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 classTargetedManagedAppProtection
-
builderAndroidManagedAppProtection
public static AndroidManagedAppProtection.Builder builderAndroidManagedAppProtection()
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 classTargetedManagedAppProtection
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classTargetedManagedAppProtection
-
getCustomBrowserDisplayName
public Optional<String> getCustomBrowserDisplayName()
“Friendly name of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true.”- Returns:
- property customBrowserDisplayName
-
withCustomBrowserDisplayName
public AndroidManagedAppProtection withCustomBrowserDisplayName(String customBrowserDisplayName)
Returns an immutable copy ofthiswith just thecustomBrowserDisplayNamefield 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.“Friendly name of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true.”
- Parameters:
customBrowserDisplayName- new value ofcustomBrowserDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecustomBrowserDisplayNamefield changed
-
getCustomBrowserPackageId
public Optional<String> getCustomBrowserPackageId()
“Unique identifier of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true.”- Returns:
- property customBrowserPackageId
-
withCustomBrowserPackageId
public AndroidManagedAppProtection withCustomBrowserPackageId(String customBrowserPackageId)
Returns an immutable copy ofthiswith just thecustomBrowserPackageIdfield 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.“Unique identifier of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true.”
- Parameters:
customBrowserPackageId- new value ofcustomBrowserPackageIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecustomBrowserPackageIdfield changed
-
getDeployedAppCount
public Optional<Integer> getDeployedAppCount()
“Count of apps to which the current policy is deployed.”- Returns:
- property deployedAppCount
-
withDeployedAppCount
public AndroidManagedAppProtection 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”- Returns:
- property disableAppEncryptionIfDeviceEncryptionIsEnabled
-
withDisableAppEncryptionIfDeviceEncryptionIsEnabled
public AndroidManagedAppProtection 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”
- 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 application data for managed apps should be encrypted”- Returns:
- property encryptAppData
-
withEncryptAppData
public AndroidManagedAppProtection 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 application data for managed apps should be encrypted”
- Parameters:
encryptAppData- new value ofencryptAppDatafield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theencryptAppDatafield 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.”- Returns:
- property minimumRequiredPatchVersion
-
withMinimumRequiredPatchVersion
public AndroidManagedAppProtection 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.”
- Parameters:
minimumRequiredPatchVersion- new value ofminimumRequiredPatchVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumRequiredPatchVersionfield changed
-
getMinimumWarningPatchVersion
public Optional<String> getMinimumWarningPatchVersion()
“Define the oldest recommended Android security patch level a user can have for secure access to the app.”- Returns:
- property minimumWarningPatchVersion
-
withMinimumWarningPatchVersion
public AndroidManagedAppProtection 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.”
- 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 a managed user can take screen captures of managed apps”- Returns:
- property screenCaptureBlocked
-
withScreenCaptureBlocked
public AndroidManagedAppProtection 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 a managed user can take screen captures of managed apps”
- Parameters:
screenCaptureBlocked- new value ofscreenCaptureBlockedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thescreenCaptureBlockedfield changed
-
withUnmappedField
public AndroidManagedAppProtection withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classTargetedManagedAppProtection
-
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 AndroidManagedAppProtection 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 AndroidManagedAppProtection 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 classTargetedManagedAppProtection
-
patch
public AndroidManagedAppProtection patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classTargetedManagedAppProtection- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public AndroidManagedAppProtection put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classTargetedManagedAppProtection- 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 classTargetedManagedAppProtection
-
-