![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.graph.generated.models.WindowsInformationProtectionPolicy Maven / Gradle / Ivy
package com.microsoft.graph.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;
/**
* Policy for Windows information protection without MDM
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class WindowsInformationProtectionPolicy extends WindowsInformationProtection implements Parsable {
/**
* Instantiates a new {@link WindowsInformationProtectionPolicy} and sets the default values.
*/
public WindowsInformationProtectionPolicy() {
super();
this.setOdataType("#microsoft.graph.windowsInformationProtectionPolicy");
}
/**
* 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 WindowsInformationProtectionPolicy}
*/
@jakarta.annotation.Nonnull
public static WindowsInformationProtectionPolicy createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new WindowsInformationProtectionPolicy();
}
/**
* Gets the daysWithoutContactBeforeUnenroll property value. Offline interval before app data is wiped (days)
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getDaysWithoutContactBeforeUnenroll() {
return this.backingStore.get("daysWithoutContactBeforeUnenroll");
}
/**
* 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("daysWithoutContactBeforeUnenroll", (n) -> { this.setDaysWithoutContactBeforeUnenroll(n.getIntegerValue()); });
deserializerMap.put("mdmEnrollmentUrl", (n) -> { this.setMdmEnrollmentUrl(n.getStringValue()); });
deserializerMap.put("minutesOfInactivityBeforeDeviceLock", (n) -> { this.setMinutesOfInactivityBeforeDeviceLock(n.getIntegerValue()); });
deserializerMap.put("numberOfPastPinsRemembered", (n) -> { this.setNumberOfPastPinsRemembered(n.getIntegerValue()); });
deserializerMap.put("passwordMaximumAttemptCount", (n) -> { this.setPasswordMaximumAttemptCount(n.getIntegerValue()); });
deserializerMap.put("pinExpirationDays", (n) -> { this.setPinExpirationDays(n.getIntegerValue()); });
deserializerMap.put("pinLowercaseLetters", (n) -> { this.setPinLowercaseLetters(n.getEnumValue(WindowsInformationProtectionPinCharacterRequirements::forValue)); });
deserializerMap.put("pinMinimumLength", (n) -> { this.setPinMinimumLength(n.getIntegerValue()); });
deserializerMap.put("pinSpecialCharacters", (n) -> { this.setPinSpecialCharacters(n.getEnumValue(WindowsInformationProtectionPinCharacterRequirements::forValue)); });
deserializerMap.put("pinUppercaseLetters", (n) -> { this.setPinUppercaseLetters(n.getEnumValue(WindowsInformationProtectionPinCharacterRequirements::forValue)); });
deserializerMap.put("revokeOnMdmHandoffDisabled", (n) -> { this.setRevokeOnMdmHandoffDisabled(n.getBooleanValue()); });
deserializerMap.put("windowsHelloForBusinessBlocked", (n) -> { this.setWindowsHelloForBusinessBlocked(n.getBooleanValue()); });
return deserializerMap;
}
/**
* Gets the mdmEnrollmentUrl property value. Enrollment url for the MDM
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMdmEnrollmentUrl() {
return this.backingStore.get("mdmEnrollmentUrl");
}
/**
* Gets the minutesOfInactivityBeforeDeviceLock property value. Specifies the maximum amount of time (in minutes) allowed after the device is idle that will cause the device to become PIN or password locked. Range is an integer X where 0 <= X <= 999.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getMinutesOfInactivityBeforeDeviceLock() {
return this.backingStore.get("minutesOfInactivityBeforeDeviceLock");
}
/**
* Gets the numberOfPastPinsRemembered property value. Integer value that specifies the number of past PINs that can be associated to a user account that can't be reused. The largest number you can configure for this policy setting is 50. The lowest number you can configure for this policy setting is 0. If this policy is set to 0, then storage of previous PINs is not required. This node was added in Windows 10, version 1511. Default is 0.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getNumberOfPastPinsRemembered() {
return this.backingStore.get("numberOfPastPinsRemembered");
}
/**
* Gets the passwordMaximumAttemptCount property value. The number of authentication failures allowed before the device will be wiped. A value of 0 disables device wipe functionality. Range is an integer X where 4 <= X <= 16 for desktop and 0 <= X <= 999 for mobile devices.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getPasswordMaximumAttemptCount() {
return this.backingStore.get("passwordMaximumAttemptCount");
}
/**
* Gets the pinExpirationDays property value. Integer value specifies the period of time (in days) that a PIN can be used before the system requires the user to change it. The largest number you can configure for this policy setting is 730. The lowest number you can configure for this policy setting is 0. If this policy is set to 0, then the user's PIN will never expire. This node was added in Windows 10, version 1511. Default is 0.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getPinExpirationDays() {
return this.backingStore.get("pinExpirationDays");
}
/**
* Gets the pinLowercaseLetters property value. Pin Character Requirements
* @return a {@link WindowsInformationProtectionPinCharacterRequirements}
*/
@jakarta.annotation.Nullable
public WindowsInformationProtectionPinCharacterRequirements getPinLowercaseLetters() {
return this.backingStore.get("pinLowercaseLetters");
}
/**
* Gets the pinMinimumLength property value. Integer value that sets the minimum number of characters required for the PIN. Default value is 4. The lowest number you can configure for this policy setting is 4. The largest number you can configure must be less than the number configured in the Maximum PIN length policy setting or the number 127, whichever is the lowest.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getPinMinimumLength() {
return this.backingStore.get("pinMinimumLength");
}
/**
* Gets the pinSpecialCharacters property value. Pin Character Requirements
* @return a {@link WindowsInformationProtectionPinCharacterRequirements}
*/
@jakarta.annotation.Nullable
public WindowsInformationProtectionPinCharacterRequirements getPinSpecialCharacters() {
return this.backingStore.get("pinSpecialCharacters");
}
/**
* Gets the pinUppercaseLetters property value. Pin Character Requirements
* @return a {@link WindowsInformationProtectionPinCharacterRequirements}
*/
@jakarta.annotation.Nullable
public WindowsInformationProtectionPinCharacterRequirements getPinUppercaseLetters() {
return this.backingStore.get("pinUppercaseLetters");
}
/**
* Gets the revokeOnMdmHandoffDisabled property value. New property in RS2, pending documentation
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getRevokeOnMdmHandoffDisabled() {
return this.backingStore.get("revokeOnMdmHandoffDisabled");
}
/**
* Gets the windowsHelloForBusinessBlocked property value. Boolean value that sets Windows Hello for Business as a method for signing into Windows.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getWindowsHelloForBusinessBlocked() {
return this.backingStore.get("windowsHelloForBusinessBlocked");
}
/**
* 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.writeIntegerValue("daysWithoutContactBeforeUnenroll", this.getDaysWithoutContactBeforeUnenroll());
writer.writeStringValue("mdmEnrollmentUrl", this.getMdmEnrollmentUrl());
writer.writeIntegerValue("minutesOfInactivityBeforeDeviceLock", this.getMinutesOfInactivityBeforeDeviceLock());
writer.writeIntegerValue("numberOfPastPinsRemembered", this.getNumberOfPastPinsRemembered());
writer.writeIntegerValue("passwordMaximumAttemptCount", this.getPasswordMaximumAttemptCount());
writer.writeIntegerValue("pinExpirationDays", this.getPinExpirationDays());
writer.writeEnumValue("pinLowercaseLetters", this.getPinLowercaseLetters());
writer.writeIntegerValue("pinMinimumLength", this.getPinMinimumLength());
writer.writeEnumValue("pinSpecialCharacters", this.getPinSpecialCharacters());
writer.writeEnumValue("pinUppercaseLetters", this.getPinUppercaseLetters());
writer.writeBooleanValue("revokeOnMdmHandoffDisabled", this.getRevokeOnMdmHandoffDisabled());
writer.writeBooleanValue("windowsHelloForBusinessBlocked", this.getWindowsHelloForBusinessBlocked());
}
/**
* Sets the daysWithoutContactBeforeUnenroll property value. Offline interval before app data is wiped (days)
* @param value Value to set for the daysWithoutContactBeforeUnenroll property.
*/
public void setDaysWithoutContactBeforeUnenroll(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("daysWithoutContactBeforeUnenroll", value);
}
/**
* Sets the mdmEnrollmentUrl property value. Enrollment url for the MDM
* @param value Value to set for the mdmEnrollmentUrl property.
*/
public void setMdmEnrollmentUrl(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("mdmEnrollmentUrl", value);
}
/**
* Sets the minutesOfInactivityBeforeDeviceLock property value. Specifies the maximum amount of time (in minutes) allowed after the device is idle that will cause the device to become PIN or password locked. Range is an integer X where 0 <= X <= 999.
* @param value Value to set for the minutesOfInactivityBeforeDeviceLock property.
*/
public void setMinutesOfInactivityBeforeDeviceLock(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("minutesOfInactivityBeforeDeviceLock", value);
}
/**
* Sets the numberOfPastPinsRemembered property value. Integer value that specifies the number of past PINs that can be associated to a user account that can't be reused. The largest number you can configure for this policy setting is 50. The lowest number you can configure for this policy setting is 0. If this policy is set to 0, then storage of previous PINs is not required. This node was added in Windows 10, version 1511. Default is 0.
* @param value Value to set for the numberOfPastPinsRemembered property.
*/
public void setNumberOfPastPinsRemembered(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("numberOfPastPinsRemembered", value);
}
/**
* Sets the passwordMaximumAttemptCount property value. The number of authentication failures allowed before the device will be wiped. A value of 0 disables device wipe functionality. Range is an integer X where 4 <= X <= 16 for desktop and 0 <= X <= 999 for mobile devices.
* @param value Value to set for the passwordMaximumAttemptCount property.
*/
public void setPasswordMaximumAttemptCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("passwordMaximumAttemptCount", value);
}
/**
* Sets the pinExpirationDays property value. Integer value specifies the period of time (in days) that a PIN can be used before the system requires the user to change it. The largest number you can configure for this policy setting is 730. The lowest number you can configure for this policy setting is 0. If this policy is set to 0, then the user's PIN will never expire. This node was added in Windows 10, version 1511. Default is 0.
* @param value Value to set for the pinExpirationDays property.
*/
public void setPinExpirationDays(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("pinExpirationDays", value);
}
/**
* Sets the pinLowercaseLetters property value. Pin Character Requirements
* @param value Value to set for the pinLowercaseLetters property.
*/
public void setPinLowercaseLetters(@jakarta.annotation.Nullable final WindowsInformationProtectionPinCharacterRequirements value) {
this.backingStore.set("pinLowercaseLetters", value);
}
/**
* Sets the pinMinimumLength property value. Integer value that sets the minimum number of characters required for the PIN. Default value is 4. The lowest number you can configure for this policy setting is 4. The largest number you can configure must be less than the number configured in the Maximum PIN length policy setting or the number 127, whichever is the lowest.
* @param value Value to set for the pinMinimumLength property.
*/
public void setPinMinimumLength(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("pinMinimumLength", value);
}
/**
* Sets the pinSpecialCharacters property value. Pin Character Requirements
* @param value Value to set for the pinSpecialCharacters property.
*/
public void setPinSpecialCharacters(@jakarta.annotation.Nullable final WindowsInformationProtectionPinCharacterRequirements value) {
this.backingStore.set("pinSpecialCharacters", value);
}
/**
* Sets the pinUppercaseLetters property value. Pin Character Requirements
* @param value Value to set for the pinUppercaseLetters property.
*/
public void setPinUppercaseLetters(@jakarta.annotation.Nullable final WindowsInformationProtectionPinCharacterRequirements value) {
this.backingStore.set("pinUppercaseLetters", value);
}
/**
* Sets the revokeOnMdmHandoffDisabled property value. New property in RS2, pending documentation
* @param value Value to set for the revokeOnMdmHandoffDisabled property.
*/
public void setRevokeOnMdmHandoffDisabled(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("revokeOnMdmHandoffDisabled", value);
}
/**
* Sets the windowsHelloForBusinessBlocked property value. Boolean value that sets Windows Hello for Business as a method for signing into Windows.
* @param value Value to set for the windowsHelloForBusinessBlocked property.
*/
public void setWindowsHelloForBusinessBlocked(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("windowsHelloForBusinessBlocked", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy