Class IosCompliancePolicy
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceCompliancePolicy
-
- odata.msgraph.client.beta.entity.IosCompliancePolicy
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class IosCompliancePolicy extends DeviceCompliancePolicy implements com.github.davidmoten.odata.client.ODataEntityType
“This class contains compliance settings for IOS.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIosCompliancePolicy.Builder
-
Field Summary
-
Fields inherited from class odata.msgraph.client.beta.entity.DeviceCompliancePolicy
createdDateTime, description, displayName, lastModifiedDateTime, roleScopeTagIds, roleScopeTagIdsNextLink, version
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIosCompliancePolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IosCompliancePolicy.BuilderbuilderIosCompliancePolicy()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<DeviceThreatProtectionLevel>getAdvancedThreatProtectionRequiredSecurityLevel()“MDATP Require Mobile Threat Protection minimum risk level to report noncompliance.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Boolean>getDeviceThreatProtectionEnabled()“Require that devices have enabled device threat protection .”Optional<DeviceThreatProtectionLevel>getDeviceThreatProtectionRequiredSecurityLevel()“Require Mobile Threat Protection minimum risk level to report noncompliance.”Optional<Boolean>getManagedEmailProfileRequired()“Indicates whether or not to require a managed email profile.”Optional<String>getOsMaximumBuildVersion()“Maximum IOS build version.”Optional<String>getOsMaximumVersion()“Maximum IOS version.”Optional<String>getOsMinimumBuildVersion()“Minimum IOS build version.”Optional<String>getOsMinimumVersion()“Minimum IOS version.”Optional<Boolean>getPasscodeBlockSimple()“Indicates whether or not to block simple passcodes.”Optional<Integer>getPasscodeExpirationDays()“Number of days before the passcode expires.Optional<Integer>getPasscodeMinimumCharacterSetCount()“The number of character sets required in the password.”Optional<Integer>getPasscodeMinimumLength()“Minimum length of passcode.Optional<Integer>getPasscodeMinutesOfInactivityBeforeLock()“Minutes of inactivity before a passcode is required.”Optional<Integer>getPasscodeMinutesOfInactivityBeforeScreenTimeout()“Minutes of inactivity before the screen times out.”Optional<Integer>getPasscodePreviousPasscodeBlockCount()“Number of previous passcodes to block.Optional<Boolean>getPasscodeRequired()“Indicates whether or not to require a passcode.”Optional<RequiredPasswordType>getPasscodeRequiredType()“The required passcode type.”com.github.davidmoten.odata.client.CollectionPage<AppListItem>getRestrictedApps()“Require the device to not have the specified apps installed.com.github.davidmoten.odata.client.CollectionPage<AppListItem>getRestrictedApps(com.github.davidmoten.odata.client.HttpRequestOptions options)“Require the device to not have the specified apps installed.Optional<Boolean>getSecurityBlockJailbrokenDevices()“Devices must not be jailbroken or rooted.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()IosCompliancePolicypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)IosCompliancePolicyput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()IosCompliancePolicywithAdvancedThreatProtectionRequiredSecurityLevel(DeviceThreatProtectionLevel advancedThreatProtectionRequiredSecurityLevel)Returns an immutable copy ofthiswith just theadvancedThreatProtectionRequiredSecurityLevelfield changed.IosCompliancePolicywithDeviceThreatProtectionEnabled(Boolean deviceThreatProtectionEnabled)Returns an immutable copy ofthiswith just thedeviceThreatProtectionEnabledfield changed.IosCompliancePolicywithDeviceThreatProtectionRequiredSecurityLevel(DeviceThreatProtectionLevel deviceThreatProtectionRequiredSecurityLevel)Returns an immutable copy ofthiswith just thedeviceThreatProtectionRequiredSecurityLevelfield changed.IosCompliancePolicywithManagedEmailProfileRequired(Boolean managedEmailProfileRequired)Returns an immutable copy ofthiswith just themanagedEmailProfileRequiredfield changed.IosCompliancePolicywithOsMaximumBuildVersion(String osMaximumBuildVersion)Returns an immutable copy ofthiswith just theosMaximumBuildVersionfield changed.IosCompliancePolicywithOsMaximumVersion(String osMaximumVersion)Returns an immutable copy ofthiswith just theosMaximumVersionfield changed.IosCompliancePolicywithOsMinimumBuildVersion(String osMinimumBuildVersion)Returns an immutable copy ofthiswith just theosMinimumBuildVersionfield changed.IosCompliancePolicywithOsMinimumVersion(String osMinimumVersion)Returns an immutable copy ofthiswith just theosMinimumVersionfield changed.IosCompliancePolicywithPasscodeBlockSimple(Boolean passcodeBlockSimple)Returns an immutable copy ofthiswith just thepasscodeBlockSimplefield changed.IosCompliancePolicywithPasscodeExpirationDays(Integer passcodeExpirationDays)Returns an immutable copy ofthiswith just thepasscodeExpirationDaysfield changed.IosCompliancePolicywithPasscodeMinimumCharacterSetCount(Integer passcodeMinimumCharacterSetCount)Returns an immutable copy ofthiswith just thepasscodeMinimumCharacterSetCountfield changed.IosCompliancePolicywithPasscodeMinimumLength(Integer passcodeMinimumLength)Returns an immutable copy ofthiswith just thepasscodeMinimumLengthfield changed.IosCompliancePolicywithPasscodeMinutesOfInactivityBeforeLock(Integer passcodeMinutesOfInactivityBeforeLock)Returns an immutable copy ofthiswith just thepasscodeMinutesOfInactivityBeforeLockfield changed.IosCompliancePolicywithPasscodeMinutesOfInactivityBeforeScreenTimeout(Integer passcodeMinutesOfInactivityBeforeScreenTimeout)Returns an immutable copy ofthiswith just thepasscodeMinutesOfInactivityBeforeScreenTimeoutfield changed.IosCompliancePolicywithPasscodePreviousPasscodeBlockCount(Integer passcodePreviousPasscodeBlockCount)Returns an immutable copy ofthiswith just thepasscodePreviousPasscodeBlockCountfield changed.IosCompliancePolicywithPasscodeRequired(Boolean passcodeRequired)Returns an immutable copy ofthiswith just thepasscodeRequiredfield changed.IosCompliancePolicywithPasscodeRequiredType(RequiredPasswordType passcodeRequiredType)Returns an immutable copy ofthiswith just thepasscodeRequiredTypefield changed.IosCompliancePolicywithRestrictedApps(List<AppListItem> restrictedApps)Returns an immutable copy ofthiswith just therestrictedAppsfield changed.IosCompliancePolicywithSecurityBlockJailbrokenDevices(Boolean securityBlockJailbrokenDevices)Returns an immutable copy ofthiswith just thesecurityBlockJailbrokenDevicesfield changed.IosCompliancePolicywithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.DeviceCompliancePolicy
assign, getAssignments, getCreatedDateTime, getDescription, getDeviceSettingStateSummaries, getDeviceStatuses, getDeviceStatusOverview, getDisplayName, getLastModifiedDateTime, getRoleScopeTagIds, getRoleScopeTagIds, getScheduledActionsForRule, getUserStatuses, getUserStatusOverview, getVersion, scheduleActionsForRules, withCreatedDateTime, withDescription, withDisplayName, withLastModifiedDateTime, withRoleScopeTagIds, withVersion
-
-
-
-
Field Detail
-
advancedThreatProtectionRequiredSecurityLevel
protected DeviceThreatProtectionLevel advancedThreatProtectionRequiredSecurityLevel
-
deviceThreatProtectionEnabled
protected Boolean deviceThreatProtectionEnabled
-
deviceThreatProtectionRequiredSecurityLevel
protected DeviceThreatProtectionLevel deviceThreatProtectionRequiredSecurityLevel
-
managedEmailProfileRequired
protected Boolean managedEmailProfileRequired
-
osMaximumBuildVersion
protected String osMaximumBuildVersion
-
osMaximumVersion
protected String osMaximumVersion
-
osMinimumBuildVersion
protected String osMinimumBuildVersion
-
osMinimumVersion
protected String osMinimumVersion
-
passcodeBlockSimple
protected Boolean passcodeBlockSimple
-
passcodeExpirationDays
protected Integer passcodeExpirationDays
-
passcodeMinimumCharacterSetCount
protected Integer passcodeMinimumCharacterSetCount
-
passcodeMinimumLength
protected Integer passcodeMinimumLength
-
passcodeMinutesOfInactivityBeforeLock
protected Integer passcodeMinutesOfInactivityBeforeLock
-
passcodeMinutesOfInactivityBeforeScreenTimeout
protected Integer passcodeMinutesOfInactivityBeforeScreenTimeout
-
passcodePreviousPasscodeBlockCount
protected Integer passcodePreviousPasscodeBlockCount
-
passcodeRequired
protected Boolean passcodeRequired
-
passcodeRequiredType
protected RequiredPasswordType passcodeRequiredType
-
restrictedApps
protected List<AppListItem> restrictedApps
-
restrictedAppsNextLink
protected String restrictedAppsNextLink
-
securityBlockJailbrokenDevices
protected Boolean securityBlockJailbrokenDevices
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceCompliancePolicy
-
builderIosCompliancePolicy
public static IosCompliancePolicy.Builder builderIosCompliancePolicy()
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 classDeviceCompliancePolicy
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceCompliancePolicy
-
getAdvancedThreatProtectionRequiredSecurityLevel
public Optional<DeviceThreatProtectionLevel> getAdvancedThreatProtectionRequiredSecurityLevel()
“MDATP Require Mobile Threat Protection minimum risk level to report noncompliance.”- Returns:
- property advancedThreatProtectionRequiredSecurityLevel
-
withAdvancedThreatProtectionRequiredSecurityLevel
public IosCompliancePolicy withAdvancedThreatProtectionRequiredSecurityLevel(DeviceThreatProtectionLevel advancedThreatProtectionRequiredSecurityLevel)
Returns an immutable copy ofthiswith just theadvancedThreatProtectionRequiredSecurityLevelfield 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.“MDATP Require Mobile Threat Protection minimum risk level to report noncompliance.”
- Parameters:
advancedThreatProtectionRequiredSecurityLevel- new value ofadvancedThreatProtectionRequiredSecurityLevelfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theadvancedThreatProtectionRequiredSecurityLevelfield changed
-
getDeviceThreatProtectionEnabled
public Optional<Boolean> getDeviceThreatProtectionEnabled()
“Require that devices have enabled device threat protection .”- Returns:
- property deviceThreatProtectionEnabled
-
withDeviceThreatProtectionEnabled
public IosCompliancePolicy withDeviceThreatProtectionEnabled(Boolean deviceThreatProtectionEnabled)
Returns an immutable copy ofthiswith just thedeviceThreatProtectionEnabledfield 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.“Require that devices have enabled device threat protection .”
- Parameters:
deviceThreatProtectionEnabled- new value ofdeviceThreatProtectionEnabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceThreatProtectionEnabledfield changed
-
getDeviceThreatProtectionRequiredSecurityLevel
public Optional<DeviceThreatProtectionLevel> getDeviceThreatProtectionRequiredSecurityLevel()
“Require Mobile Threat Protection minimum risk level to report noncompliance.”- Returns:
- property deviceThreatProtectionRequiredSecurityLevel
-
withDeviceThreatProtectionRequiredSecurityLevel
public IosCompliancePolicy withDeviceThreatProtectionRequiredSecurityLevel(DeviceThreatProtectionLevel deviceThreatProtectionRequiredSecurityLevel)
Returns an immutable copy ofthiswith just thedeviceThreatProtectionRequiredSecurityLevelfield 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.“Require Mobile Threat Protection minimum risk level to report noncompliance.”
- Parameters:
deviceThreatProtectionRequiredSecurityLevel- new value ofdeviceThreatProtectionRequiredSecurityLevelfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceThreatProtectionRequiredSecurityLevelfield changed
-
getManagedEmailProfileRequired
public Optional<Boolean> getManagedEmailProfileRequired()
“Indicates whether or not to require a managed email profile.”- Returns:
- property managedEmailProfileRequired
-
withManagedEmailProfileRequired
public IosCompliancePolicy withManagedEmailProfileRequired(Boolean managedEmailProfileRequired)
Returns an immutable copy ofthiswith just themanagedEmailProfileRequiredfield 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 or not to require a managed email profile.”
- Parameters:
managedEmailProfileRequired- new value ofmanagedEmailProfileRequiredfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagedEmailProfileRequiredfield changed
-
getOsMaximumBuildVersion
public Optional<String> getOsMaximumBuildVersion()
“Maximum IOS build version.”- Returns:
- property osMaximumBuildVersion
-
withOsMaximumBuildVersion
public IosCompliancePolicy withOsMaximumBuildVersion(String osMaximumBuildVersion)
Returns an immutable copy ofthiswith just theosMaximumBuildVersionfield 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.“Maximum IOS build version.”
- Parameters:
osMaximumBuildVersion- new value ofosMaximumBuildVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosMaximumBuildVersionfield changed
-
getOsMaximumVersion
public Optional<String> getOsMaximumVersion()
“Maximum IOS version.”- Returns:
- property osMaximumVersion
-
withOsMaximumVersion
public IosCompliancePolicy withOsMaximumVersion(String osMaximumVersion)
Returns an immutable copy ofthiswith just theosMaximumVersionfield 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.“Maximum IOS version.”
- Parameters:
osMaximumVersion- new value ofosMaximumVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosMaximumVersionfield changed
-
getOsMinimumBuildVersion
public Optional<String> getOsMinimumBuildVersion()
“Minimum IOS build version.”- Returns:
- property osMinimumBuildVersion
-
withOsMinimumBuildVersion
public IosCompliancePolicy withOsMinimumBuildVersion(String osMinimumBuildVersion)
Returns an immutable copy ofthiswith just theosMinimumBuildVersionfield 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.“Minimum IOS build version.”
- Parameters:
osMinimumBuildVersion- new value ofosMinimumBuildVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosMinimumBuildVersionfield changed
-
getOsMinimumVersion
public Optional<String> getOsMinimumVersion()
“Minimum IOS version.”- Returns:
- property osMinimumVersion
-
withOsMinimumVersion
public IosCompliancePolicy withOsMinimumVersion(String osMinimumVersion)
Returns an immutable copy ofthiswith just theosMinimumVersionfield 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.“Minimum IOS version.”
- Parameters:
osMinimumVersion- new value ofosMinimumVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosMinimumVersionfield changed
-
getPasscodeBlockSimple
public Optional<Boolean> getPasscodeBlockSimple()
“Indicates whether or not to block simple passcodes.”- Returns:
- property passcodeBlockSimple
-
withPasscodeBlockSimple
public IosCompliancePolicy withPasscodeBlockSimple(Boolean passcodeBlockSimple)
Returns an immutable copy ofthiswith just thepasscodeBlockSimplefield 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 or not to block simple passcodes.”
- Parameters:
passcodeBlockSimple- new value ofpasscodeBlockSimplefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasscodeBlockSimplefield changed
-
getPasscodeExpirationDays
public Optional<Integer> getPasscodeExpirationDays()
“Number of days before the passcode expires. Valid values 1 to 65535”- Returns:
- property passcodeExpirationDays
-
withPasscodeExpirationDays
public IosCompliancePolicy withPasscodeExpirationDays(Integer passcodeExpirationDays)
Returns an immutable copy ofthiswith just thepasscodeExpirationDaysfield 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.“Number of days before the passcode expires. Valid values 1 to 65535”
- Parameters:
passcodeExpirationDays- new value ofpasscodeExpirationDaysfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasscodeExpirationDaysfield changed
-
getPasscodeMinimumCharacterSetCount
public Optional<Integer> getPasscodeMinimumCharacterSetCount()
“The number of character sets required in the password.”- Returns:
- property passcodeMinimumCharacterSetCount
-
withPasscodeMinimumCharacterSetCount
public IosCompliancePolicy withPasscodeMinimumCharacterSetCount(Integer passcodeMinimumCharacterSetCount)
Returns an immutable copy ofthiswith just thepasscodeMinimumCharacterSetCountfield 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 number of character sets required in the password.”
- Parameters:
passcodeMinimumCharacterSetCount- new value ofpasscodeMinimumCharacterSetCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasscodeMinimumCharacterSetCountfield changed
-
getPasscodeMinimumLength
public Optional<Integer> getPasscodeMinimumLength()
“Minimum length of passcode. Valid values 4 to 14”- Returns:
- property passcodeMinimumLength
-
withPasscodeMinimumLength
public IosCompliancePolicy withPasscodeMinimumLength(Integer passcodeMinimumLength)
Returns an immutable copy ofthiswith just thepasscodeMinimumLengthfield 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.“Minimum length of passcode. Valid values 4 to 14”
- Parameters:
passcodeMinimumLength- new value ofpasscodeMinimumLengthfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasscodeMinimumLengthfield changed
-
getPasscodeMinutesOfInactivityBeforeLock
public Optional<Integer> getPasscodeMinutesOfInactivityBeforeLock()
“Minutes of inactivity before a passcode is required.”- Returns:
- property passcodeMinutesOfInactivityBeforeLock
-
withPasscodeMinutesOfInactivityBeforeLock
public IosCompliancePolicy withPasscodeMinutesOfInactivityBeforeLock(Integer passcodeMinutesOfInactivityBeforeLock)
Returns an immutable copy ofthiswith just thepasscodeMinutesOfInactivityBeforeLockfield 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.“Minutes of inactivity before a passcode is required.”
- Parameters:
passcodeMinutesOfInactivityBeforeLock- new value ofpasscodeMinutesOfInactivityBeforeLockfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasscodeMinutesOfInactivityBeforeLockfield changed
-
getPasscodeMinutesOfInactivityBeforeScreenTimeout
public Optional<Integer> getPasscodeMinutesOfInactivityBeforeScreenTimeout()
“Minutes of inactivity before the screen times out.”- Returns:
- property passcodeMinutesOfInactivityBeforeScreenTimeout
-
withPasscodeMinutesOfInactivityBeforeScreenTimeout
public IosCompliancePolicy withPasscodeMinutesOfInactivityBeforeScreenTimeout(Integer passcodeMinutesOfInactivityBeforeScreenTimeout)
Returns an immutable copy ofthiswith just thepasscodeMinutesOfInactivityBeforeScreenTimeoutfield 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.“Minutes of inactivity before the screen times out.”
- Parameters:
passcodeMinutesOfInactivityBeforeScreenTimeout- new value ofpasscodeMinutesOfInactivityBeforeScreenTimeoutfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasscodeMinutesOfInactivityBeforeScreenTimeoutfield changed
-
getPasscodePreviousPasscodeBlockCount
public Optional<Integer> getPasscodePreviousPasscodeBlockCount()
“Number of previous passcodes to block. Valid values 1 to 24”- Returns:
- property passcodePreviousPasscodeBlockCount
-
withPasscodePreviousPasscodeBlockCount
public IosCompliancePolicy withPasscodePreviousPasscodeBlockCount(Integer passcodePreviousPasscodeBlockCount)
Returns an immutable copy ofthiswith just thepasscodePreviousPasscodeBlockCountfield 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.“Number of previous passcodes to block. Valid values 1 to 24”
- Parameters:
passcodePreviousPasscodeBlockCount- new value ofpasscodePreviousPasscodeBlockCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasscodePreviousPasscodeBlockCountfield changed
-
getPasscodeRequired
public Optional<Boolean> getPasscodeRequired()
“Indicates whether or not to require a passcode.”- Returns:
- property passcodeRequired
-
withPasscodeRequired
public IosCompliancePolicy withPasscodeRequired(Boolean passcodeRequired)
Returns an immutable copy ofthiswith just thepasscodeRequiredfield 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 or not to require a passcode.”
- Parameters:
passcodeRequired- new value ofpasscodeRequiredfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasscodeRequiredfield changed
-
getPasscodeRequiredType
public Optional<RequiredPasswordType> getPasscodeRequiredType()
“The required passcode type.”- Returns:
- property passcodeRequiredType
-
withPasscodeRequiredType
public IosCompliancePolicy withPasscodeRequiredType(RequiredPasswordType passcodeRequiredType)
Returns an immutable copy ofthiswith just thepasscodeRequiredTypefield 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 required passcode type.”
- Parameters:
passcodeRequiredType- new value ofpasscodeRequiredTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasscodeRequiredTypefield changed
-
getRestrictedApps
public com.github.davidmoten.odata.client.CollectionPage<AppListItem> getRestrictedApps()
“Require the device to not have the specified apps installed. This collection can contain a maximum of 100 elements.”- Returns:
- property restrictedApps
-
withRestrictedApps
public IosCompliancePolicy withRestrictedApps(List<AppListItem> restrictedApps)
Returns an immutable copy ofthiswith just therestrictedAppsfield 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.“Require the device to not have the specified apps installed. This collection can contain a maximum of 100 elements.”
- Parameters:
restrictedApps- new value ofrestrictedAppsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therestrictedAppsfield changed
-
getRestrictedApps
public com.github.davidmoten.odata.client.CollectionPage<AppListItem> getRestrictedApps(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Require the device to not have the specified apps installed. This collection can contain a maximum of 100 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property restrictedApps
-
getSecurityBlockJailbrokenDevices
public Optional<Boolean> getSecurityBlockJailbrokenDevices()
“Devices must not be jailbroken or rooted.”- Returns:
- property securityBlockJailbrokenDevices
-
withSecurityBlockJailbrokenDevices
public IosCompliancePolicy withSecurityBlockJailbrokenDevices(Boolean securityBlockJailbrokenDevices)
Returns an immutable copy ofthiswith just thesecurityBlockJailbrokenDevicesfield 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.“Devices must not be jailbroken or rooted.”
- Parameters:
securityBlockJailbrokenDevices- new value ofsecurityBlockJailbrokenDevicesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesecurityBlockJailbrokenDevicesfield changed
-
withUnmappedField
public IosCompliancePolicy withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceCompliancePolicy
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceCompliancePolicy
-
patch
public IosCompliancePolicy patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classDeviceCompliancePolicy- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public IosCompliancePolicy put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classDeviceCompliancePolicy- 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 classDeviceCompliancePolicy
-
-