Class MacOSGeneralDeviceConfiguration

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class MacOSGeneralDeviceConfiguration
    extends DeviceConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSGeneralDeviceConfiguration resource.”
    • Field Detail

      • compliantAppListType

        protected AppListType compliantAppListType
      • compliantAppsListNextLink

        protected String compliantAppsListNextLink
      • emailInDomainSuffixes

        protected List<String> emailInDomainSuffixes
      • emailInDomainSuffixesNextLink

        protected String emailInDomainSuffixesNextLink
      • passwordBlockSimple

        protected Boolean passwordBlockSimple
      • passwordExpirationDays

        protected Integer passwordExpirationDays
      • passwordMinimumCharacterSetCount

        protected Integer passwordMinimumCharacterSetCount
      • passwordMinimumLength

        protected Integer passwordMinimumLength
      • passwordMinutesOfInactivityBeforeLock

        protected Integer passwordMinutesOfInactivityBeforeLock
      • passwordMinutesOfInactivityBeforeScreenTimeout

        protected Integer passwordMinutesOfInactivityBeforeScreenTimeout
      • passwordPreviousPasswordBlockCount

        protected Integer passwordPreviousPasswordBlockCount
      • passwordRequired

        protected Boolean passwordRequired
    • Constructor Detail

      • MacOSGeneralDeviceConfiguration

        protected MacOSGeneralDeviceConfiguration()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class DeviceConfiguration
      • builderMacOSGeneralDeviceConfiguration

        public static MacOSGeneralDeviceConfiguration.Builder builderMacOSGeneralDeviceConfiguration()
        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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class DeviceConfiguration
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class DeviceConfiguration
      • getCompliantAppListType

        public Optional<AppListType> getCompliantAppListType()
        “List that is in the CompliantAppsList.”
        Returns:
        property compliantAppListType
      • withCompliantAppListType

        public MacOSGeneralDeviceConfiguration withCompliantAppListType​(AppListType compliantAppListType)
        Returns an immutable copy of this with just the compliantAppListType field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “List that is in the CompliantAppsList.”

        Parameters:
        compliantAppListType - new value of compliantAppListType field (as defined in service metadata)
        Returns:
        immutable copy of this with just the compliantAppListType field changed
      • getCompliantAppsList

        public com.github.davidmoten.odata.client.CollectionPage<AppListItem> getCompliantAppsList()
        “List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements.”
        Returns:
        property compliantAppsList
      • withCompliantAppsList

        public MacOSGeneralDeviceConfiguration withCompliantAppsList​(List<AppListItem> compliantAppsList)
        Returns an immutable copy of this with just the compliantAppsList field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements.”

        Parameters:
        compliantAppsList - new value of compliantAppsList field (as defined in service metadata)
        Returns:
        immutable copy of this with just the compliantAppsList field changed
      • getCompliantAppsList

        public com.github.davidmoten.odata.client.CollectionPage<AppListItem> getCompliantAppsList​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property compliantAppsList
      • getEmailInDomainSuffixes

        public com.github.davidmoten.odata.client.CollectionPage<String> getEmailInDomainSuffixes()
        “An email address lacking a suffix that matches any of these strings will be considered out-of-domain.”
        Returns:
        property emailInDomainSuffixes
      • withEmailInDomainSuffixes

        public MacOSGeneralDeviceConfiguration withEmailInDomainSuffixes​(List<String> emailInDomainSuffixes)
        Returns an immutable copy of this with just the emailInDomainSuffixes field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “An email address lacking a suffix that matches any of these strings will be considered out-of-domain.”

        Parameters:
        emailInDomainSuffixes - new value of emailInDomainSuffixes field (as defined in service metadata)
        Returns:
        immutable copy of this with just the emailInDomainSuffixes field changed
      • getEmailInDomainSuffixes

        public com.github.davidmoten.odata.client.CollectionPage<String> getEmailInDomainSuffixes​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “An email address lacking a suffix that matches any of these strings will be considered out-of-domain.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property emailInDomainSuffixes
      • getPasswordBlockSimple

        public Optional<Boolean> getPasswordBlockSimple()
        “Block simple passwords.”
        Returns:
        property passwordBlockSimple
      • withPasswordBlockSimple

        public MacOSGeneralDeviceConfiguration withPasswordBlockSimple​(Boolean passwordBlockSimple)
        Returns an immutable copy of this with just the passwordBlockSimple field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Block simple passwords.”

        Parameters:
        passwordBlockSimple - new value of passwordBlockSimple field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordBlockSimple field changed
      • getPasswordExpirationDays

        public Optional<Integer> getPasswordExpirationDays()
        “Number of days before the password expires.”
        Returns:
        property passwordExpirationDays
      • withPasswordExpirationDays

        public MacOSGeneralDeviceConfiguration withPasswordExpirationDays​(Integer passwordExpirationDays)
        Returns an immutable copy of this with just the passwordExpirationDays field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of days before the password expires.”

        Parameters:
        passwordExpirationDays - new value of passwordExpirationDays field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordExpirationDays field changed
      • getPasswordMinimumCharacterSetCount

        public Optional<Integer> getPasswordMinimumCharacterSetCount()
        “Number of character sets a password must contain. Valid values 0 to 4”
        Returns:
        property passwordMinimumCharacterSetCount
      • withPasswordMinimumCharacterSetCount

        public MacOSGeneralDeviceConfiguration withPasswordMinimumCharacterSetCount​(Integer passwordMinimumCharacterSetCount)
        Returns an immutable copy of this with just the passwordMinimumCharacterSetCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of character sets a password must contain. Valid values 0 to 4”

        Parameters:
        passwordMinimumCharacterSetCount - new value of passwordMinimumCharacterSetCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordMinimumCharacterSetCount field changed
      • getPasswordMinimumLength

        public Optional<Integer> getPasswordMinimumLength()
        “Minimum length of passwords.”
        Returns:
        property passwordMinimumLength
      • withPasswordMinimumLength

        public MacOSGeneralDeviceConfiguration withPasswordMinimumLength​(Integer passwordMinimumLength)
        Returns an immutable copy of this with just the passwordMinimumLength field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Minimum length of passwords.”

        Parameters:
        passwordMinimumLength - new value of passwordMinimumLength field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordMinimumLength field changed
      • getPasswordMinutesOfInactivityBeforeLock

        public Optional<Integer> getPasswordMinutesOfInactivityBeforeLock()
        “Minutes of inactivity required before a password is required.”
        Returns:
        property passwordMinutesOfInactivityBeforeLock
      • withPasswordMinutesOfInactivityBeforeLock

        public MacOSGeneralDeviceConfiguration withPasswordMinutesOfInactivityBeforeLock​(Integer passwordMinutesOfInactivityBeforeLock)
        Returns an immutable copy of this with just the passwordMinutesOfInactivityBeforeLock field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Minutes of inactivity required before a password is required.”

        Parameters:
        passwordMinutesOfInactivityBeforeLock - new value of passwordMinutesOfInactivityBeforeLock field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordMinutesOfInactivityBeforeLock field changed
      • getPasswordMinutesOfInactivityBeforeScreenTimeout

        public Optional<Integer> getPasswordMinutesOfInactivityBeforeScreenTimeout()
        “Minutes of inactivity required before the screen times out.”
        Returns:
        property passwordMinutesOfInactivityBeforeScreenTimeout
      • withPasswordMinutesOfInactivityBeforeScreenTimeout

        public MacOSGeneralDeviceConfiguration withPasswordMinutesOfInactivityBeforeScreenTimeout​(Integer passwordMinutesOfInactivityBeforeScreenTimeout)
        Returns an immutable copy of this with just the passwordMinutesOfInactivityBeforeScreenTimeout field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Minutes of inactivity required before the screen times out.”

        Parameters:
        passwordMinutesOfInactivityBeforeScreenTimeout - new value of passwordMinutesOfInactivityBeforeScreenTimeout field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordMinutesOfInactivityBeforeScreenTimeout field changed
      • getPasswordPreviousPasswordBlockCount

        public Optional<Integer> getPasswordPreviousPasswordBlockCount()
        “Number of previous passwords to block.”
        Returns:
        property passwordPreviousPasswordBlockCount
      • withPasswordPreviousPasswordBlockCount

        public MacOSGeneralDeviceConfiguration withPasswordPreviousPasswordBlockCount​(Integer passwordPreviousPasswordBlockCount)
        Returns an immutable copy of this with just the passwordPreviousPasswordBlockCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of previous passwords to block.”

        Parameters:
        passwordPreviousPasswordBlockCount - new value of passwordPreviousPasswordBlockCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordPreviousPasswordBlockCount field changed
      • getPasswordRequired

        public Optional<Boolean> getPasswordRequired()
        “Whether or not to require a password.”
        Returns:
        property passwordRequired
      • withPasswordRequired

        public MacOSGeneralDeviceConfiguration withPasswordRequired​(Boolean passwordRequired)
        Returns an immutable copy of this with just the passwordRequired field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of passwordRequired field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordRequired field changed
      • getPasswordRequiredType

        public Optional<RequiredPasswordType> getPasswordRequiredType()
        “Type of password that is required.”
        Returns:
        property passwordRequiredType
      • withPasswordRequiredType

        public MacOSGeneralDeviceConfiguration withPasswordRequiredType​(RequiredPasswordType passwordRequiredType)
        Returns an immutable copy of this with just the passwordRequiredType field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Type of password that is required.”

        Parameters:
        passwordRequiredType - new value of passwordRequiredType field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordRequiredType field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class DeviceConfiguration
      • patch

        public MacOSGeneralDeviceConfiguration patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class DeviceConfiguration
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public MacOSGeneralDeviceConfiguration put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class DeviceConfiguration
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected