Interface AttachThingPrincipalRequest.Builder

  • Method Details

    • 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

      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

      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:
    • overrideConfiguration

      AttachThingPrincipalRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.