Class MacOSCompliancePolicy
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceCompliancePolicy
-
- odata.msgraph.client.beta.entity.MacOSCompliancePolicy
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MacOSCompliancePolicy extends DeviceCompliancePolicy implements com.github.davidmoten.odata.client.ODataEntityType
“This class contains compliance settings for Mac OS.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMacOSCompliancePolicy.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 protectedMacOSCompliancePolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MacOSCompliancePolicy.BuilderbuilderMacOSCompliancePolicy()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>getFirewallBlockAllIncoming()“Corresponds to the “Block all incoming connections” option.”Optional<Boolean>getFirewallEnabled()“Whether the firewall should be enabled or not.”Optional<Boolean>getFirewallEnableStealthMode()“Corresponds to “Enable stealth mode.””Optional<MacOSGatekeeperAppSources>getGatekeeperAllowedAppSource()“System and Privacy setting that determines which download locations apps can be run from on a macOS device.”Optional<String>getOsMaximumBuildVersion()“Maximum MacOS build version.”Optional<String>getOsMaximumVersion()“Maximum MacOS version.”Optional<String>getOsMinimumBuildVersion()“Minimum MacOS build version.”Optional<String>getOsMinimumVersion()“Minimum MacOS version.”Optional<Boolean>getPasswordBlockSimple()“Indicates whether or not to block simple passwords.”Optional<Integer>getPasswordExpirationDays()“Number of days before the password expires.Optional<Integer>getPasswordMinimumCharacterSetCount()“The number of character sets required in the password.”Optional<Integer>getPasswordMinimumLength()“Minimum length of password.Optional<Integer>getPasswordMinutesOfInactivityBeforeLock()“Minutes of inactivity before a password is required.”Optional<Integer>getPasswordPreviousPasswordBlockCount()“Number of previous passwords to block.Optional<Boolean>getPasswordRequired()“Whether or not to require a password.”Optional<RequiredPasswordType>getPasswordRequiredType()“The required password type.”Optional<Boolean>getStorageRequireEncryption()“Require encryption on Mac OS devices.”Optional<Boolean>getSystemIntegrityProtectionEnabled()“Require that devices have enabled system integrity protection.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()MacOSCompliancePolicypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MacOSCompliancePolicyput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MacOSCompliancePolicywithAdvancedThreatProtectionRequiredSecurityLevel(DeviceThreatProtectionLevel advancedThreatProtectionRequiredSecurityLevel)Returns an immutable copy ofthiswith just theadvancedThreatProtectionRequiredSecurityLevelfield changed.MacOSCompliancePolicywithDeviceThreatProtectionEnabled(Boolean deviceThreatProtectionEnabled)Returns an immutable copy ofthiswith just thedeviceThreatProtectionEnabledfield changed.MacOSCompliancePolicywithDeviceThreatProtectionRequiredSecurityLevel(DeviceThreatProtectionLevel deviceThreatProtectionRequiredSecurityLevel)Returns an immutable copy ofthiswith just thedeviceThreatProtectionRequiredSecurityLevelfield changed.MacOSCompliancePolicywithFirewallBlockAllIncoming(Boolean firewallBlockAllIncoming)Returns an immutable copy ofthiswith just thefirewallBlockAllIncomingfield changed.MacOSCompliancePolicywithFirewallEnabled(Boolean firewallEnabled)Returns an immutable copy ofthiswith just thefirewallEnabledfield changed.MacOSCompliancePolicywithFirewallEnableStealthMode(Boolean firewallEnableStealthMode)Returns an immutable copy ofthiswith just thefirewallEnableStealthModefield changed.MacOSCompliancePolicywithGatekeeperAllowedAppSource(MacOSGatekeeperAppSources gatekeeperAllowedAppSource)Returns an immutable copy ofthiswith just thegatekeeperAllowedAppSourcefield changed.MacOSCompliancePolicywithOsMaximumBuildVersion(String osMaximumBuildVersion)Returns an immutable copy ofthiswith just theosMaximumBuildVersionfield changed.MacOSCompliancePolicywithOsMaximumVersion(String osMaximumVersion)Returns an immutable copy ofthiswith just theosMaximumVersionfield changed.MacOSCompliancePolicywithOsMinimumBuildVersion(String osMinimumBuildVersion)Returns an immutable copy ofthiswith just theosMinimumBuildVersionfield changed.MacOSCompliancePolicywithOsMinimumVersion(String osMinimumVersion)Returns an immutable copy ofthiswith just theosMinimumVersionfield changed.MacOSCompliancePolicywithPasswordBlockSimple(Boolean passwordBlockSimple)Returns an immutable copy ofthiswith just thepasswordBlockSimplefield changed.MacOSCompliancePolicywithPasswordExpirationDays(Integer passwordExpirationDays)Returns an immutable copy ofthiswith just thepasswordExpirationDaysfield changed.MacOSCompliancePolicywithPasswordMinimumCharacterSetCount(Integer passwordMinimumCharacterSetCount)Returns an immutable copy ofthiswith just thepasswordMinimumCharacterSetCountfield changed.MacOSCompliancePolicywithPasswordMinimumLength(Integer passwordMinimumLength)Returns an immutable copy ofthiswith just thepasswordMinimumLengthfield changed.MacOSCompliancePolicywithPasswordMinutesOfInactivityBeforeLock(Integer passwordMinutesOfInactivityBeforeLock)Returns an immutable copy ofthiswith just thepasswordMinutesOfInactivityBeforeLockfield changed.MacOSCompliancePolicywithPasswordPreviousPasswordBlockCount(Integer passwordPreviousPasswordBlockCount)Returns an immutable copy ofthiswith just thepasswordPreviousPasswordBlockCountfield changed.MacOSCompliancePolicywithPasswordRequired(Boolean passwordRequired)Returns an immutable copy ofthiswith just thepasswordRequiredfield changed.MacOSCompliancePolicywithPasswordRequiredType(RequiredPasswordType passwordRequiredType)Returns an immutable copy ofthiswith just thepasswordRequiredTypefield changed.MacOSCompliancePolicywithStorageRequireEncryption(Boolean storageRequireEncryption)Returns an immutable copy ofthiswith just thestorageRequireEncryptionfield changed.MacOSCompliancePolicywithSystemIntegrityProtectionEnabled(Boolean systemIntegrityProtectionEnabled)Returns an immutable copy ofthiswith just thesystemIntegrityProtectionEnabledfield changed.MacOSCompliancePolicywithUnmappedField(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
-
firewallBlockAllIncoming
protected Boolean firewallBlockAllIncoming
-
firewallEnabled
protected Boolean firewallEnabled
-
firewallEnableStealthMode
protected Boolean firewallEnableStealthMode
-
gatekeeperAllowedAppSource
protected MacOSGatekeeperAppSources gatekeeperAllowedAppSource
-
osMaximumBuildVersion
protected String osMaximumBuildVersion
-
osMaximumVersion
protected String osMaximumVersion
-
osMinimumBuildVersion
protected String osMinimumBuildVersion
-
osMinimumVersion
protected String osMinimumVersion
-
passwordBlockSimple
protected Boolean passwordBlockSimple
-
passwordExpirationDays
protected Integer passwordExpirationDays
-
passwordMinimumCharacterSetCount
protected Integer passwordMinimumCharacterSetCount
-
passwordMinimumLength
protected Integer passwordMinimumLength
-
passwordMinutesOfInactivityBeforeLock
protected Integer passwordMinutesOfInactivityBeforeLock
-
passwordPreviousPasswordBlockCount
protected Integer passwordPreviousPasswordBlockCount
-
passwordRequired
protected Boolean passwordRequired
-
passwordRequiredType
protected RequiredPasswordType passwordRequiredType
-
storageRequireEncryption
protected Boolean storageRequireEncryption
-
systemIntegrityProtectionEnabled
protected Boolean systemIntegrityProtectionEnabled
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceCompliancePolicy
-
builderMacOSCompliancePolicy
public static MacOSCompliancePolicy.Builder builderMacOSCompliancePolicy()
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 MacOSCompliancePolicy 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 MacOSCompliancePolicy 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 MacOSCompliancePolicy 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
-
getFirewallBlockAllIncoming
public Optional<Boolean> getFirewallBlockAllIncoming()
“Corresponds to the “Block all incoming connections” option.”- Returns:
- property firewallBlockAllIncoming
-
withFirewallBlockAllIncoming
public MacOSCompliancePolicy withFirewallBlockAllIncoming(Boolean firewallBlockAllIncoming)
Returns an immutable copy ofthiswith just thefirewallBlockAllIncomingfield 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.“Corresponds to the “Block all incoming connections” option.”
- Parameters:
firewallBlockAllIncoming- new value offirewallBlockAllIncomingfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefirewallBlockAllIncomingfield changed
-
getFirewallEnabled
public Optional<Boolean> getFirewallEnabled()
“Whether the firewall should be enabled or not.”- Returns:
- property firewallEnabled
-
withFirewallEnabled
public MacOSCompliancePolicy withFirewallEnabled(Boolean firewallEnabled)
Returns an immutable copy ofthiswith just thefirewallEnabledfield 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.“Whether the firewall should be enabled or not.”
- Parameters:
firewallEnabled- new value offirewallEnabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefirewallEnabledfield changed
-
getFirewallEnableStealthMode
public Optional<Boolean> getFirewallEnableStealthMode()
“Corresponds to “Enable stealth mode.””- Returns:
- property firewallEnableStealthMode
-
withFirewallEnableStealthMode
public MacOSCompliancePolicy withFirewallEnableStealthMode(Boolean firewallEnableStealthMode)
Returns an immutable copy ofthiswith just thefirewallEnableStealthModefield 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.“Corresponds to “Enable stealth mode.””
- Parameters:
firewallEnableStealthMode- new value offirewallEnableStealthModefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefirewallEnableStealthModefield changed
-
getGatekeeperAllowedAppSource
public Optional<MacOSGatekeeperAppSources> getGatekeeperAllowedAppSource()
“System and Privacy setting that determines which download locations apps can be run from on a macOS device.”- Returns:
- property gatekeeperAllowedAppSource
-
withGatekeeperAllowedAppSource
public MacOSCompliancePolicy withGatekeeperAllowedAppSource(MacOSGatekeeperAppSources gatekeeperAllowedAppSource)
Returns an immutable copy ofthiswith just thegatekeeperAllowedAppSourcefield 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.“System and Privacy setting that determines which download locations apps can be run from on a macOS device.”
- Parameters:
gatekeeperAllowedAppSource- new value ofgatekeeperAllowedAppSourcefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegatekeeperAllowedAppSourcefield changed
-
getOsMaximumBuildVersion
public Optional<String> getOsMaximumBuildVersion()
“Maximum MacOS build version.”- Returns:
- property osMaximumBuildVersion
-
withOsMaximumBuildVersion
public MacOSCompliancePolicy 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 MacOS 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 MacOS version.”- Returns:
- property osMaximumVersion
-
withOsMaximumVersion
public MacOSCompliancePolicy 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 MacOS 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 MacOS build version.”- Returns:
- property osMinimumBuildVersion
-
withOsMinimumBuildVersion
public MacOSCompliancePolicy 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 MacOS 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 MacOS version.”- Returns:
- property osMinimumVersion
-
withOsMinimumVersion
public MacOSCompliancePolicy 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 MacOS version.”
- Parameters:
osMinimumVersion- new value ofosMinimumVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosMinimumVersionfield changed
-
getPasswordBlockSimple
public Optional<Boolean> getPasswordBlockSimple()
“Indicates whether or not to block simple passwords.”- Returns:
- property passwordBlockSimple
-
withPasswordBlockSimple
public MacOSCompliancePolicy withPasswordBlockSimple(Boolean passwordBlockSimple)
Returns an immutable copy ofthiswith just thepasswordBlockSimplefield 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 passwords.”
- Parameters:
passwordBlockSimple- new value ofpasswordBlockSimplefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasswordBlockSimplefield changed
-
getPasswordExpirationDays
public Optional<Integer> getPasswordExpirationDays()
“Number of days before the password expires. Valid values 1 to 65535”- Returns:
- property passwordExpirationDays
-
withPasswordExpirationDays
public MacOSCompliancePolicy withPasswordExpirationDays(Integer passwordExpirationDays)
Returns an immutable copy ofthiswith just thepasswordExpirationDaysfield 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 password expires. Valid values 1 to 65535”
- Parameters:
passwordExpirationDays- new value ofpasswordExpirationDaysfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasswordExpirationDaysfield changed
-
getPasswordMinimumCharacterSetCount
public Optional<Integer> getPasswordMinimumCharacterSetCount()
“The number of character sets required in the password.”- Returns:
- property passwordMinimumCharacterSetCount
-
withPasswordMinimumCharacterSetCount
public MacOSCompliancePolicy withPasswordMinimumCharacterSetCount(Integer passwordMinimumCharacterSetCount)
Returns an immutable copy ofthiswith just thepasswordMinimumCharacterSetCountfield 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:
passwordMinimumCharacterSetCount- new value ofpasswordMinimumCharacterSetCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasswordMinimumCharacterSetCountfield changed
-
getPasswordMinimumLength
public Optional<Integer> getPasswordMinimumLength()
“Minimum length of password. Valid values 4 to 14”- Returns:
- property passwordMinimumLength
-
withPasswordMinimumLength
public MacOSCompliancePolicy withPasswordMinimumLength(Integer passwordMinimumLength)
Returns an immutable copy ofthiswith just thepasswordMinimumLengthfield 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 password. Valid values 4 to 14”
- Parameters:
passwordMinimumLength- new value ofpasswordMinimumLengthfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasswordMinimumLengthfield changed
-
getPasswordMinutesOfInactivityBeforeLock
public Optional<Integer> getPasswordMinutesOfInactivityBeforeLock()
“Minutes of inactivity before a password is required.”- Returns:
- property passwordMinutesOfInactivityBeforeLock
-
withPasswordMinutesOfInactivityBeforeLock
public MacOSCompliancePolicy withPasswordMinutesOfInactivityBeforeLock(Integer passwordMinutesOfInactivityBeforeLock)
Returns an immutable copy ofthiswith just thepasswordMinutesOfInactivityBeforeLockfield 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 password is required.”
- Parameters:
passwordMinutesOfInactivityBeforeLock- new value ofpasswordMinutesOfInactivityBeforeLockfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasswordMinutesOfInactivityBeforeLockfield changed
-
getPasswordPreviousPasswordBlockCount
public Optional<Integer> getPasswordPreviousPasswordBlockCount()
“Number of previous passwords to block. Valid values 1 to 24”- Returns:
- property passwordPreviousPasswordBlockCount
-
withPasswordPreviousPasswordBlockCount
public MacOSCompliancePolicy withPasswordPreviousPasswordBlockCount(Integer passwordPreviousPasswordBlockCount)
Returns an immutable copy ofthiswith just thepasswordPreviousPasswordBlockCountfield 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 passwords to block. Valid values 1 to 24”
- Parameters:
passwordPreviousPasswordBlockCount- new value ofpasswordPreviousPasswordBlockCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasswordPreviousPasswordBlockCountfield changed
-
getPasswordRequired
public Optional<Boolean> getPasswordRequired()
“Whether or not to require a password.”- Returns:
- property passwordRequired
-
withPasswordRequired
public MacOSCompliancePolicy withPasswordRequired(Boolean passwordRequired)
Returns an immutable copy ofthiswith just thepasswordRequiredfield 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.“Whether or not to require a password.”
- Parameters:
passwordRequired- new value ofpasswordRequiredfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasswordRequiredfield changed
-
getPasswordRequiredType
public Optional<RequiredPasswordType> getPasswordRequiredType()
“The required password type.”- Returns:
- property passwordRequiredType
-
withPasswordRequiredType
public MacOSCompliancePolicy withPasswordRequiredType(RequiredPasswordType passwordRequiredType)
Returns an immutable copy ofthiswith just thepasswordRequiredTypefield 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 password type.”
- Parameters:
passwordRequiredType- new value ofpasswordRequiredTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasswordRequiredTypefield changed
-
getStorageRequireEncryption
public Optional<Boolean> getStorageRequireEncryption()
“Require encryption on Mac OS devices.”- Returns:
- property storageRequireEncryption
-
withStorageRequireEncryption
public MacOSCompliancePolicy withStorageRequireEncryption(Boolean storageRequireEncryption)
Returns an immutable copy ofthiswith just thestorageRequireEncryptionfield 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 encryption on Mac OS devices.”
- Parameters:
storageRequireEncryption- new value ofstorageRequireEncryptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestorageRequireEncryptionfield changed
-
getSystemIntegrityProtectionEnabled
public Optional<Boolean> getSystemIntegrityProtectionEnabled()
“Require that devices have enabled system integrity protection.”- Returns:
- property systemIntegrityProtectionEnabled
-
withSystemIntegrityProtectionEnabled
public MacOSCompliancePolicy withSystemIntegrityProtectionEnabled(Boolean systemIntegrityProtectionEnabled)
Returns an immutable copy ofthiswith just thesystemIntegrityProtectionEnabledfield 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 system integrity protection.”
- Parameters:
systemIntegrityProtectionEnabled- new value ofsystemIntegrityProtectionEnabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesystemIntegrityProtectionEnabledfield changed
-
withUnmappedField
public MacOSCompliancePolicy 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 MacOSCompliancePolicy 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 MacOSCompliancePolicy 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
-
-