Interface AttachThingPrincipalRequest.Builder

    • Method Detail

      • thingName

        AttachThingPrincipalRequest.Builder thingName​(String thingName)

        The name of the thing.

        Parameters:
        thingName - The name of the thing.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • principal

        AttachThingPrincipalRequest.Builder principal​(String principal)

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

        Parameters:
        principal - The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • thingPrincipalType

        AttachThingPrincipalRequest.Builder thingPrincipalType​(String 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ThingPrincipalType, ThingPrincipalType
      • thingPrincipalType

        AttachThingPrincipalRequest.Builder thingPrincipalType​(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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ThingPrincipalType, ThingPrincipalType