Package odata.msgraph.client.beta.entity
Class Windows81CompliancePolicy
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceCompliancePolicy
-
- odata.msgraph.client.beta.entity.Windows81CompliancePolicy
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Windows81CompliancePolicy extends DeviceCompliancePolicy implements com.github.davidmoten.odata.client.ODataEntityType
“This class contains compliance settings for Windows 8.1.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindows81CompliancePolicy.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringosMaximumVersionprotected StringosMinimumVersionprotected BooleanpasswordBlockSimpleprotected IntegerpasswordExpirationDaysprotected IntegerpasswordMinimumCharacterSetCountprotected IntegerpasswordMinimumLengthprotected IntegerpasswordMinutesOfInactivityBeforeLockprotected IntegerpasswordPreviousPasswordBlockCountprotected BooleanpasswordRequiredprotected RequiredPasswordTypepasswordRequiredTypeprotected 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 protectedWindows81CompliancePolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Windows81CompliancePolicy.BuilderbuilderWindows81CompliancePolicy()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>getOsMaximumVersion()“Maximum Windows 8.1 version.”Optional<String>getOsMinimumVersion()“Minimum Windows 8.1 version.”Optional<Boolean>getPasswordBlockSimple()“Indicates whether or not to block simple password.”Optional<Integer>getPasswordExpirationDays()“Password expiration in days.”Optional<Integer>getPasswordMinimumCharacterSetCount()“The number of character sets required in the password.”Optional<Integer>getPasswordMinimumLength()“The minimum password length.”Optional<Integer>getPasswordMinutesOfInactivityBeforeLock()“Minutes of inactivity before a password is required.”Optional<Integer>getPasswordPreviousPasswordBlockCount()“The number of previous passwords to prevent re-use of.Optional<Boolean>getPasswordRequired()“Require a password to unlock Windows device.”Optional<RequiredPasswordType>getPasswordRequiredType()“The required password type.”Optional<Boolean>getStorageRequireEncryption()“Indicates whether or not to require encryption on a windows 8.1 device.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()Windows81CompliancePolicypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Windows81CompliancePolicyput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()Windows81CompliancePolicywithOsMaximumVersion(String osMaximumVersion)Returns an immutable copy ofthiswith just theosMaximumVersionfield changed.Windows81CompliancePolicywithOsMinimumVersion(String osMinimumVersion)Returns an immutable copy ofthiswith just theosMinimumVersionfield changed.Windows81CompliancePolicywithPasswordBlockSimple(Boolean passwordBlockSimple)Returns an immutable copy ofthiswith just thepasswordBlockSimplefield changed.Windows81CompliancePolicywithPasswordExpirationDays(Integer passwordExpirationDays)Returns an immutable copy ofthiswith just thepasswordExpirationDaysfield changed.Windows81CompliancePolicywithPasswordMinimumCharacterSetCount(Integer passwordMinimumCharacterSetCount)Returns an immutable copy ofthiswith just thepasswordMinimumCharacterSetCountfield changed.Windows81CompliancePolicywithPasswordMinimumLength(Integer passwordMinimumLength)Returns an immutable copy ofthiswith just thepasswordMinimumLengthfield changed.Windows81CompliancePolicywithPasswordMinutesOfInactivityBeforeLock(Integer passwordMinutesOfInactivityBeforeLock)Returns an immutable copy ofthiswith just thepasswordMinutesOfInactivityBeforeLockfield changed.Windows81CompliancePolicywithPasswordPreviousPasswordBlockCount(Integer passwordPreviousPasswordBlockCount)Returns an immutable copy ofthiswith just thepasswordPreviousPasswordBlockCountfield changed.Windows81CompliancePolicywithPasswordRequired(Boolean passwordRequired)Returns an immutable copy ofthiswith just thepasswordRequiredfield changed.Windows81CompliancePolicywithPasswordRequiredType(RequiredPasswordType passwordRequiredType)Returns an immutable copy ofthiswith just thepasswordRequiredTypefield changed.Windows81CompliancePolicywithStorageRequireEncryption(Boolean storageRequireEncryption)Returns an immutable copy ofthiswith just thestorageRequireEncryptionfield changed.Windows81CompliancePolicywithUnmappedField(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
-
osMaximumVersion
protected String osMaximumVersion
-
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
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceCompliancePolicy
-
builderWindows81CompliancePolicy
public static Windows81CompliancePolicy.Builder builderWindows81CompliancePolicy()
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
-
getOsMaximumVersion
public Optional<String> getOsMaximumVersion()
“Maximum Windows 8.1 version.”- Returns:
- property osMaximumVersion
-
withOsMaximumVersion
public Windows81CompliancePolicy 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 Windows 8.1 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 Windows 8.1 version.”- Returns:
- property osMinimumVersion
-
withOsMinimumVersion
public Windows81CompliancePolicy 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 Windows 8.1 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 password.”- Returns:
- property passwordBlockSimple
-
withPasswordBlockSimple
public Windows81CompliancePolicy 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 password.”
- Parameters:
passwordBlockSimple- new value ofpasswordBlockSimplefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepasswordBlockSimplefield changed
-
getPasswordExpirationDays
public Optional<Integer> getPasswordExpirationDays()
“Password expiration in days.”- Returns:
- property passwordExpirationDays
-
withPasswordExpirationDays
public Windows81CompliancePolicy 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.“Password expiration in days.”
- 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 Windows81CompliancePolicy 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()
“The minimum password length.”- Returns:
- property passwordMinimumLength
-
withPasswordMinimumLength
public Windows81CompliancePolicy 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.“The minimum password length.”
- 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 Windows81CompliancePolicy 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()
“The number of previous passwords to prevent re-use of. Valid values 0 to 24”- Returns:
- property passwordPreviousPasswordBlockCount
-
withPasswordPreviousPasswordBlockCount
public Windows81CompliancePolicy 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.“The number of previous passwords to prevent re-use of. Valid values 0 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()
“Require a password to unlock Windows device.”- Returns:
- property passwordRequired
-
withPasswordRequired
public Windows81CompliancePolicy 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 Windows device.”
- 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 Windows81CompliancePolicy 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()
“Indicates whether or not to require encryption on a windows 8.1 device.”- Returns:
- property storageRequireEncryption
-
withStorageRequireEncryption
public Windows81CompliancePolicy 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.“Indicates whether or not to require encryption on a windows 8.1 device.”
- Parameters:
storageRequireEncryption- new value ofstorageRequireEncryptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestorageRequireEncryptionfield changed
-
withUnmappedField
public Windows81CompliancePolicy 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 Windows81CompliancePolicy 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 Windows81CompliancePolicy 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
-
-