Class AttachThingPrincipalRequest

    • Method Detail

      • thingName

        public final String thingName()

        The name of the thing.

        Returns:
        The name of the thing.
      • principal

        public final String principal()

        The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.

        Returns:
        The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
      • thingPrincipalType

        public final ThingPrincipalType thingPrincipalType()

        The type of the relation you want to specify when you attach a principal to a thing.

        • EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.

        • NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.

        If the service returns an enum value that is not available in the current SDK version, thingPrincipalType will return ThingPrincipalType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from thingPrincipalTypeAsString().

        Returns:
        The type of the relation you want to specify when you attach a principal to a thing.

        • EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.

        • NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.

        See Also:
        ThingPrincipalType
      • thingPrincipalTypeAsString

        public final String thingPrincipalTypeAsString()

        The type of the relation you want to specify when you attach a principal to a thing.

        • EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.

        • NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.

        If the service returns an enum value that is not available in the current SDK version, thingPrincipalType will return ThingPrincipalType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from thingPrincipalTypeAsString().

        Returns:
        The type of the relation you want to specify when you attach a principal to a thing.

        • EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.

        • NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.

        See Also:
        ThingPrincipalType
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object