Class AndroidEnrollmentCompanyCode

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

    public class AndroidEnrollmentCompanyCode
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “A class to hold specialty enrollment data used for enrolling via Google's Android Management API, such as Token, Url, and QR code content”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • enrollmentToken

        protected String enrollmentToken
      • qrCodeContent

        protected String qrCodeContent
    • Constructor Detail

      • AndroidEnrollmentCompanyCode

        protected AndroidEnrollmentCompanyCode()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getEnrollmentToken

        public Optional<String> getEnrollmentToken()
        “Enrollment Token used by the User to enroll their device.”
        Returns:
        property enrollmentToken
      • withEnrollmentToken

        public AndroidEnrollmentCompanyCode withEnrollmentToken​(String enrollmentToken)
        Returns an immutable copy of this with just the enrollmentToken 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.

        “Enrollment Token used by the User to enroll their device.”

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

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

        public AndroidEnrollmentCompanyCode 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()
        “Generated QR code for the token.”
        Returns:
        property qrCodeImage
      • withQrCodeImage

        public AndroidEnrollmentCompanyCode 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.

        “Generated 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
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

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

        public static AndroidEnrollmentCompanyCode.Builder builder()
        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