com.microsoft.graph.beta.generated.models.AospDeviceOwnerCompliancePolicy Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* This topic provides descriptions of the declared methods, properties and relationships exposed by the AndroidDeviceOwnerAOSPCompliancePolicy resource.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class AospDeviceOwnerCompliancePolicy extends DeviceCompliancePolicy implements Parsable {
/**
* Instantiates a new {@link AospDeviceOwnerCompliancePolicy} and sets the default values.
*/
public AospDeviceOwnerCompliancePolicy() {
super();
this.setOdataType("#microsoft.graph.aospDeviceOwnerCompliancePolicy");
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link AospDeviceOwnerCompliancePolicy}
*/
@jakarta.annotation.Nonnull
public static AospDeviceOwnerCompliancePolicy createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AospDeviceOwnerCompliancePolicy();
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("minAndroidSecurityPatchLevel", (n) -> { this.setMinAndroidSecurityPatchLevel(n.getStringValue()); });
deserializerMap.put("osMaximumVersion", (n) -> { this.setOsMaximumVersion(n.getStringValue()); });
deserializerMap.put("osMinimumVersion", (n) -> { this.setOsMinimumVersion(n.getStringValue()); });
deserializerMap.put("passwordMinimumLength", (n) -> { this.setPasswordMinimumLength(n.getIntegerValue()); });
deserializerMap.put("passwordMinutesOfInactivityBeforeLock", (n) -> { this.setPasswordMinutesOfInactivityBeforeLock(n.getIntegerValue()); });
deserializerMap.put("passwordRequired", (n) -> { this.setPasswordRequired(n.getBooleanValue()); });
deserializerMap.put("passwordRequiredType", (n) -> { this.setPasswordRequiredType(n.getEnumValue(AndroidDeviceOwnerRequiredPasswordType::forValue)); });
deserializerMap.put("securityBlockJailbrokenDevices", (n) -> { this.setSecurityBlockJailbrokenDevices(n.getBooleanValue()); });
deserializerMap.put("storageRequireEncryption", (n) -> { this.setStorageRequireEncryption(n.getBooleanValue()); });
return deserializerMap;
}
/**
* Gets the minAndroidSecurityPatchLevel property value. Minimum Android security patch level.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMinAndroidSecurityPatchLevel() {
return this.backingStore.get("minAndroidSecurityPatchLevel");
}
/**
* Gets the osMaximumVersion property value. Maximum Android version.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOsMaximumVersion() {
return this.backingStore.get("osMaximumVersion");
}
/**
* Gets the osMinimumVersion property value. Minimum Android version.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOsMinimumVersion() {
return this.backingStore.get("osMinimumVersion");
}
/**
* Gets the passwordMinimumLength property value. Minimum password length. Valid values 4 to 16
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getPasswordMinimumLength() {
return this.backingStore.get("passwordMinimumLength");
}
/**
* Gets the passwordMinutesOfInactivityBeforeLock property value. Minutes of inactivity before a password is required. Valid values 1 to 8640
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getPasswordMinutesOfInactivityBeforeLock() {
return this.backingStore.get("passwordMinutesOfInactivityBeforeLock");
}
/**
* Gets the passwordRequired property value. Require a password to unlock device.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getPasswordRequired() {
return this.backingStore.get("passwordRequired");
}
/**
* Gets the passwordRequiredType property value. Type of characters in password. Possible values are: deviceDefault, required, numeric, numericComplex, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, customPassword.
* @return a {@link AndroidDeviceOwnerRequiredPasswordType}
*/
@jakarta.annotation.Nullable
public AndroidDeviceOwnerRequiredPasswordType getPasswordRequiredType() {
return this.backingStore.get("passwordRequiredType");
}
/**
* Gets the securityBlockJailbrokenDevices property value. Devices must not be jailbroken or rooted.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getSecurityBlockJailbrokenDevices() {
return this.backingStore.get("securityBlockJailbrokenDevices");
}
/**
* Gets the storageRequireEncryption property value. Require encryption on Android devices.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getStorageRequireEncryption() {
return this.backingStore.get("storageRequireEncryption");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeStringValue("minAndroidSecurityPatchLevel", this.getMinAndroidSecurityPatchLevel());
writer.writeStringValue("osMaximumVersion", this.getOsMaximumVersion());
writer.writeStringValue("osMinimumVersion", this.getOsMinimumVersion());
writer.writeIntegerValue("passwordMinimumLength", this.getPasswordMinimumLength());
writer.writeIntegerValue("passwordMinutesOfInactivityBeforeLock", this.getPasswordMinutesOfInactivityBeforeLock());
writer.writeBooleanValue("passwordRequired", this.getPasswordRequired());
writer.writeEnumValue("passwordRequiredType", this.getPasswordRequiredType());
writer.writeBooleanValue("securityBlockJailbrokenDevices", this.getSecurityBlockJailbrokenDevices());
writer.writeBooleanValue("storageRequireEncryption", this.getStorageRequireEncryption());
}
/**
* Sets the minAndroidSecurityPatchLevel property value. Minimum Android security patch level.
* @param value Value to set for the minAndroidSecurityPatchLevel property.
*/
public void setMinAndroidSecurityPatchLevel(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("minAndroidSecurityPatchLevel", value);
}
/**
* Sets the osMaximumVersion property value. Maximum Android version.
* @param value Value to set for the osMaximumVersion property.
*/
public void setOsMaximumVersion(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("osMaximumVersion", value);
}
/**
* Sets the osMinimumVersion property value. Minimum Android version.
* @param value Value to set for the osMinimumVersion property.
*/
public void setOsMinimumVersion(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("osMinimumVersion", value);
}
/**
* Sets the passwordMinimumLength property value. Minimum password length. Valid values 4 to 16
* @param value Value to set for the passwordMinimumLength property.
*/
public void setPasswordMinimumLength(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("passwordMinimumLength", value);
}
/**
* Sets the passwordMinutesOfInactivityBeforeLock property value. Minutes of inactivity before a password is required. Valid values 1 to 8640
* @param value Value to set for the passwordMinutesOfInactivityBeforeLock property.
*/
public void setPasswordMinutesOfInactivityBeforeLock(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("passwordMinutesOfInactivityBeforeLock", value);
}
/**
* Sets the passwordRequired property value. Require a password to unlock device.
* @param value Value to set for the passwordRequired property.
*/
public void setPasswordRequired(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("passwordRequired", value);
}
/**
* Sets the passwordRequiredType property value. Type of characters in password. Possible values are: deviceDefault, required, numeric, numericComplex, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, customPassword.
* @param value Value to set for the passwordRequiredType property.
*/
public void setPasswordRequiredType(@jakarta.annotation.Nullable final AndroidDeviceOwnerRequiredPasswordType value) {
this.backingStore.set("passwordRequiredType", value);
}
/**
* Sets the securityBlockJailbrokenDevices property value. Devices must not be jailbroken or rooted.
* @param value Value to set for the securityBlockJailbrokenDevices property.
*/
public void setSecurityBlockJailbrokenDevices(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("securityBlockJailbrokenDevices", value);
}
/**
* Sets the storageRequireEncryption property value. Require encryption on Android devices.
* @param value Value to set for the storageRequireEncryption property.
*/
public void setStorageRequireEncryption(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("storageRequireEncryption", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy