Class AndroidDeviceOwnerEnrollmentProfile

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

    public class AndroidDeviceOwnerEnrollmentProfile
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Enrollment Profile used to enroll Android Enterprise devices using Google's Cloud Management.”
    • Constructor Detail

      • AndroidDeviceOwnerEnrollmentProfile

        protected AndroidDeviceOwnerEnrollmentProfile()
    • Method Detail

      • odataTypeName

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

        public static AndroidDeviceOwnerEnrollmentProfile.Builder builderAndroidDeviceOwnerEnrollmentProfile()
        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 Entity
      • postInject

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

        public Optional<String> getAccountId()
        “Tenant GUID the enrollment profile belongs to.”
        Returns:
        property accountId
      • withAccountId

        public AndroidDeviceOwnerEnrollmentProfile withAccountId​(String accountId)
        Returns an immutable copy of this with just the accountId 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.

        “Tenant GUID the enrollment profile belongs to.”

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

        public Optional<OffsetDateTime> getCreatedDateTime()
        “Date time the enrollment profile was created.”
        Returns:
        property createdDateTime
      • withCreatedDateTime

        public AndroidDeviceOwnerEnrollmentProfile withCreatedDateTime​(OffsetDateTime createdDateTime)
        Returns an immutable copy of this with just the createdDateTime 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.

        “Date time the enrollment profile was created.”

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

        public Optional<String> getDescription()
        “Description for the enrollment profile.”
        Returns:
        property description
      • withDescription

        public AndroidDeviceOwnerEnrollmentProfile withDescription​(String description)
        Returns an immutable copy of this with just the description 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.

        “Description for the enrollment profile.”

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

        public Optional<String> getDisplayName()
        “Display name for the enrollment profile.”
        Returns:
        property displayName
      • withDisplayName

        public AndroidDeviceOwnerEnrollmentProfile withDisplayName​(String displayName)
        Returns an immutable copy of this with just the displayName 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.

        “Display name for the enrollment profile.”

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

        public Optional<Integer> getEnrolledDeviceCount()
        “Total number of Android devices that have enrolled using this enrollment profile .”
        Returns:
        property enrolledDeviceCount
      • withEnrolledDeviceCount

        public AndroidDeviceOwnerEnrollmentProfile withEnrolledDeviceCount​(Integer enrolledDeviceCount)
        Returns an immutable copy of this with just the enrolledDeviceCount 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.

        “Total number of Android devices that have enrolled using this enrollment profile .”

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

        public AndroidDeviceOwnerEnrollmentProfile withEnrollmentMode​(AndroidDeviceOwnerEnrollmentMode enrollmentMode)
        Returns an immutable copy of this with just the enrollmentMode 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.

        “The enrollment mode of devices that use this enrollment profile.”

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

        public AndroidDeviceOwnerEnrollmentProfile withEnrollmentTokenType​(AndroidDeviceOwnerEnrollmentTokenType enrollmentTokenType)
        Returns an immutable copy of this with just the enrollmentTokenType 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.

        “The enrollment token type for an enrollment profile.”

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

        public Optional<Integer> getEnrollmentTokenUsageCount()
        “Total number of AOSP devices that have enrolled using the current token.”
        Returns:
        property enrollmentTokenUsageCount
      • withEnrollmentTokenUsageCount

        public AndroidDeviceOwnerEnrollmentProfile withEnrollmentTokenUsageCount​(Integer enrollmentTokenUsageCount)
        Returns an immutable copy of this with just the enrollmentTokenUsageCount 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.

        “Total number of AOSP devices that have enrolled using the current token.”

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

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “Date time the enrollment profile was last modified.”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public AndroidDeviceOwnerEnrollmentProfile withLastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        Returns an immutable copy of this with just the lastModifiedDateTime 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.

        “Date time the enrollment profile was last modified.”

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

        public Optional<String> getQrCodeContent()
        “String used to generate a QR code for the token.”
        Returns:
        property qrCodeContent
      • withQrCodeContent

        public AndroidDeviceOwnerEnrollmentProfile withQrCodeContent​(String qrCodeContent)
        Returns an immutable copy of this with just the qrCodeContent 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.

        “String used to generate a QR code for the token.”

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

        public Optional<MimeContent> getQrCodeImage()
        “String used to generate a QR code for the token.”
        Returns:
        property qrCodeImage
      • withQrCodeImage

        public AndroidDeviceOwnerEnrollmentProfile withQrCodeImage​(MimeContent qrCodeImage)
        Returns an immutable copy of this with just the qrCodeImage 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.

        “String used to generate a QR code for the token.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
        “List of Scope Tags for this Entity instance.”
        Returns:
        property roleScopeTagIds
      • withRoleScopeTagIds

        public AndroidDeviceOwnerEnrollmentProfile withRoleScopeTagIds​(List<String> roleScopeTagIds)
        Returns an immutable copy of this with just the roleScopeTagIds 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 Scope Tags for this Entity instance.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “List of Scope Tags for this Entity instance.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property roleScopeTagIds
      • getTokenCreationDateTime

        public Optional<OffsetDateTime> getTokenCreationDateTime()
        “Date time the most recently created token was created.”
        Returns:
        property tokenCreationDateTime
      • withTokenCreationDateTime

        public AndroidDeviceOwnerEnrollmentProfile withTokenCreationDateTime​(OffsetDateTime tokenCreationDateTime)
        Returns an immutable copy of this with just the tokenCreationDateTime 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.

        “Date time the most recently created token was created.”

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

        public Optional<OffsetDateTime> getTokenExpirationDateTime()
        “Date time the most recently created token will expire.”
        Returns:
        property tokenExpirationDateTime
      • withTokenExpirationDateTime

        public AndroidDeviceOwnerEnrollmentProfile withTokenExpirationDateTime​(OffsetDateTime tokenExpirationDateTime)
        Returns an immutable copy of this with just the tokenExpirationDateTime 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.

        “Date time the most recently created token will expire.”

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

        public Optional<String> getTokenValue()
        “Value of the most recently created token for this enrollment profile.”
        Returns:
        property tokenValue
      • withTokenValue

        public AndroidDeviceOwnerEnrollmentProfile withTokenValue​(String tokenValue)
        Returns an immutable copy of this with just the tokenValue 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.

        “Value of the most recently created token for this enrollment profile.”

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

        public Optional<Boolean> getWifiHidden()
        “Boolean that indicates if hidden wifi networks are enabled”
        Returns:
        property wifiHidden
      • withWifiHidden

        public AndroidDeviceOwnerEnrollmentProfile withWifiHidden​(Boolean wifiHidden)
        Returns an immutable copy of this with just the wifiHidden 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.

        “Boolean that indicates if hidden wifi networks are enabled”

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

        public Optional<String> getWifiPassword()
        “String that contains the wi-fi login password”
        Returns:
        property wifiPassword
      • withWifiPassword

        public AndroidDeviceOwnerEnrollmentProfile withWifiPassword​(String wifiPassword)
        Returns an immutable copy of this with just the wifiPassword 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.

        “String that contains the wi-fi login password”

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

        public Optional<AospWifiSecurityType> getWifiSecurityType()
        “String that contains the wi-fi security type”
        Returns:
        property wifiSecurityType
      • withWifiSecurityType

        public AndroidDeviceOwnerEnrollmentProfile withWifiSecurityType​(AospWifiSecurityType wifiSecurityType)
        Returns an immutable copy of this with just the wifiSecurityType 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.

        “String that contains the wi-fi security type”

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

        public Optional<String> getWifiSsid()
        “String that contains the wi-fi login ssid”
        Returns:
        property wifiSsid
      • withWifiSsid

        public AndroidDeviceOwnerEnrollmentProfile withWifiSsid​(String wifiSsid)
        Returns an immutable copy of this with just the wifiSsid 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.

        “String that contains the wi-fi login ssid”

        Parameters:
        wifiSsid - new value of wifiSsid field (as defined in service metadata)
        Returns:
        immutable copy of this with just the wifiSsid 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 Entity
      • patch

        public AndroidDeviceOwnerEnrollmentProfile patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        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 AndroidDeviceOwnerEnrollmentProfile 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 Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • createToken

        public com.github.davidmoten.odata.client.ActionRequestNoReturn createToken​(Integer tokenValidityInSeconds)
      • revokeToken

        public com.github.davidmoten.odata.client.ActionRequestNoReturn revokeToken()