Package odata.msgraph.client.beta.entity
Class AospDeviceOwnerCompliancePolicy
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceCompliancePolicy
-
- odata.msgraph.client.beta.entity.AospDeviceOwnerCompliancePolicy
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AospDeviceOwnerCompliancePolicy extends DeviceCompliancePolicy implements com.github.davidmoten.odata.client.ODataEntityType
“This topic provides descriptions of the declared methods, properties and relationships exposed by the AndroidDeviceOwnerAOSPCompliancePolicy resource.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAospDeviceOwnerCompliancePolicy.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringminAndroidSecurityPatchLevelprotected StringosMaximumVersionprotected StringosMinimumVersionprotected IntegerpasswordMinimumLengthprotected IntegerpasswordMinutesOfInactivityBeforeLockprotected BooleanpasswordRequiredprotected AndroidDeviceOwnerRequiredPasswordTypepasswordRequiredTypeprotected BooleansecurityBlockJailbrokenDevicesprotected BooleanstorageRequireEncryption-
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 protectedAospDeviceOwnerCompliancePolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AospDeviceOwnerCompliancePolicy.BuilderbuilderAospDeviceOwnerCompliancePolicy()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getMinAndroidSecurityPatchLevel()“Minimum Android security patch level.”Optional<String>getOsMaximumVersion()“Maximum Android version.”Optional<String>getOsMinimumVersion()“Minimum Android version.”Optional<Integer>getPasswordMinimumLength()“Minimum password length.Optional<Integer>getPasswordMinutesOfInactivityBeforeLock()“Minutes of inactivity before a password is required.Optional<Boolean>getPasswordRequired()“Require a password to unlock device.”Optional<AndroidDeviceOwnerRequiredPasswordType>getPasswordRequiredType()“Type of characters in password”Optional<Boolean>getSecurityBlockJailbrokenDevices()“Devices must not be jailbroken or rooted.”Optional<Boolean>getStorageRequireEncryption()“Require encryption on Android devices.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()AospDeviceOwnerCompliancePolicypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AospDeviceOwnerCompliancePolicyput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AospDeviceOwnerCompliancePolicywithMinAndroidSecurityPatchLevel(String minAndroidSecurityPatchLevel)Returns an immutable copy ofthiswith just theminAndroidSecurityPatchLevelfield changed.AospDeviceOwnerCompliancePolicywithOsMaximumVersion(String osMaximumVersion)Returns an immutable copy ofthiswith just theosMaximumVersionfield changed.AospDeviceOwnerCompliancePolicywithOsMinimumVersion(String osMinimumVersion)Returns an immutable copy ofthiswith just theosMinimumVersionfield changed.AospDeviceOwnerCompliancePolicywithPasswordMinimumLength(Integer passwordMinimumLength)Returns an immutable copy ofthiswith just thepasswordMinimumLengthfield changed.AospDeviceOwnerCompliancePolicywithPasswordMinutesOfInactivityBeforeLock(Integer passwordMinutesOfInactivityBeforeLock)Returns an immutable copy ofthiswith just thepasswordMinutesOfInactivityBeforeLockfield changed.AospDeviceOwnerCompliancePolicywithPasswordRequired(Boolean passwordRequired)Returns an immutable copy ofthiswith just thepasswordRequiredfield changed.AospDeviceOwnerCompliancePolicywithPasswordRequiredType(AndroidDeviceOwnerRequiredPasswordType passwordRequiredType)Returns an immutable copy ofthiswith just thepasswordRequiredTypefield changed.AospDeviceOwnerCompliancePolicywithSecurityBlockJailbrokenDevices(Boolean securityBlockJailbrokenDevices)Returns an immutable copy ofthiswith just thesecurityBlockJailbrokenDevicesfield changed.AospDeviceOwnerCompliancePolicywithStorageRequireEncryption(Boolean storageRequireEncryption)Returns an immutable copy ofthiswith just thestorageRequireEncryptionfield changed.AospDeviceOwnerCompliancePolicywithUnmappedField(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
-
minAndroidSecurityPatchLevel
protected String minAndroidSecurityPatchLevel
-
osMaximumVersion
protected String osMaximumVersion
-
osMinimumVersion
protected String osMinimumVersion
-
passwordMinimumLength
protected Integer passwordMinimumLength
-
passwordMinutesOfInactivityBeforeLock
protected Integer passwordMinutesOfInactivityBeforeLock
-
passwordRequired
protected Boolean passwordRequired
-
passwordRequiredType
protected AndroidDeviceOwnerRequiredPasswordType passwordRequiredType
-
securityBlockJailbrokenDevices
protected Boolean securityBlockJailbrokenDevices
-
storageRequireEncryption
protected Boolean storageRequireEncryption
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceCompliancePolicy
-
builderAospDeviceOwnerCompliancePolicy
public static AospDeviceOwnerCompliancePolicy.Builder builderAospDeviceOwnerCompliancePolicy()
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
-
getMinAndroidSecurityPatchLevel
public Optional<String> getMinAndroidSecurityPatchLevel()
“Minimum Android security patch level.”- Returns:
- property minAndroidSecurityPatchLevel
-
withMinAndroidSecurityPatchLevel
public AospDeviceOwnerCompliancePolicy withMinAndroidSecurityPatchLevel(String minAndroidSecurityPatchLevel)
Returns an immutable copy ofthiswith just theminAndroidSecurityPatchLevelfield 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 Android security patch level.”
- Parameters:
minAndroidSecurityPatchLevel- new value ofminAndroidSecurityPatchLevelfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminAndroidSecurityPatchLevelfield changed
-
getOsMaximumVersion
public Optional<String> getOsMaximumVersion()
“Maximum Android version.”- Returns:
- property osMaximumVersion
-
withOsMaximumVersion
public AospDeviceOwnerCompliancePolicy 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 Android version.”
- Parameters:
osMaximumVersion- new value ofosMaximumVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosMaximumVersionfield changed
-
getOsMinimumVersion
public Optional<String> getOsMinimumVersion()
“Minimum Android version.”- Returns:
- property osMinimumVersion
-
withOsMinimumVersion
public AospDeviceOwnerCompliancePolicy 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 Android version.”
- Parameters:
osMinimumVersion- new value ofosMinimumVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosMinimumVersionfield changed
-
getPasswordMinimumLength
public Optional<Integer> getPasswordMinimumLength()
“Minimum password length. Valid values 4 to 16”- Returns:
- property passwordMinimumLength
-
withPasswordMinimumLength
public AospDeviceOwnerCompliancePolicy 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 password length. Valid values 4 to 16”
- 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. Valid values 1 to 8640”- Returns:
- property passwordMinutesOfInactivityBeforeLock
-
withPasswordMinutesOfInactivityBeforeLock
public AospDeviceOwnerCompliancePolicy 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. Valid values 1 to 8640”
- Parameters:
passwordMinutesOfInactivityBeforeLock- new value ofpasswordMinutesOfInactivityBeforeLockfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasswordMinutesOfInactivityBeforeLockfield changed
-
getPasswordRequired
public Optional<Boolean> getPasswordRequired()
“Require a password to unlock device.”- Returns:
- property passwordRequired
-
withPasswordRequired
public AospDeviceOwnerCompliancePolicy 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.“Require a password to unlock device.”
- Parameters:
passwordRequired- new value ofpasswordRequiredfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasswordRequiredfield changed
-
getPasswordRequiredType
public Optional<AndroidDeviceOwnerRequiredPasswordType> getPasswordRequiredType()
“Type of characters in password”- Returns:
- property passwordRequiredType
-
withPasswordRequiredType
public AospDeviceOwnerCompliancePolicy withPasswordRequiredType(AndroidDeviceOwnerRequiredPasswordType 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.“Type of characters in password”
- Parameters:
passwordRequiredType- new value ofpasswordRequiredTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasswordRequiredTypefield changed
-
getSecurityBlockJailbrokenDevices
public Optional<Boolean> getSecurityBlockJailbrokenDevices()
“Devices must not be jailbroken or rooted.”- Returns:
- property securityBlockJailbrokenDevices
-
withSecurityBlockJailbrokenDevices
public AospDeviceOwnerCompliancePolicy 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
-
getStorageRequireEncryption
public Optional<Boolean> getStorageRequireEncryption()
“Require encryption on Android devices.”- Returns:
- property storageRequireEncryption
-
withStorageRequireEncryption
public AospDeviceOwnerCompliancePolicy 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 Android devices.”
- Parameters:
storageRequireEncryption- new value ofstorageRequireEncryptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestorageRequireEncryptionfield changed
-
withUnmappedField
public AospDeviceOwnerCompliancePolicy 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 AospDeviceOwnerCompliancePolicy 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 AospDeviceOwnerCompliancePolicy 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
-
-