Class AndroidForWorkEnrollmentProfile

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

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

      • accountId

        protected String accountId
      • description

        protected String description
      • displayName

        protected String displayName
      • enrolledDeviceCount

        protected Integer enrolledDeviceCount
      • qrCodeContent

        protected String qrCodeContent
      • tokenExpirationDateTime

        protected OffsetDateTime tokenExpirationDateTime
      • tokenValue

        protected String tokenValue
    • Constructor Detail

      • AndroidForWorkEnrollmentProfile

        protected AndroidForWorkEnrollmentProfile()
    • Method Detail

      • odataTypeName

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

        public static AndroidForWorkEnrollmentProfile.Builder builderAndroidForWorkEnrollmentProfile()
        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 AndroidForWorkEnrollmentProfile 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 AndroidForWorkEnrollmentProfile 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 AndroidForWorkEnrollmentProfile 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 AndroidForWorkEnrollmentProfile 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 AndroidForWorkEnrollmentProfile 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
      • getLastModifiedDateTime

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

        public AndroidForWorkEnrollmentProfile 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 AndroidForWorkEnrollmentProfile 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 AndroidForWorkEnrollmentProfile 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
      • getTokenExpirationDateTime

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

        public AndroidForWorkEnrollmentProfile 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 AndroidForWorkEnrollmentProfile 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
      • 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 AndroidForWorkEnrollmentProfile 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 AndroidForWorkEnrollmentProfile 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()