Interface AttachThingPrincipalRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AttachThingPrincipalRequest.Builder,,AttachThingPrincipalRequest> IotRequest.Builder,SdkBuilder<AttachThingPrincipalRequest.Builder,,AttachThingPrincipalRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
AttachThingPrincipalRequest
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.The name of the thing.thingPrincipalType(String thingPrincipalType) The type of the relation you want to specify when you attach a principal to a thing.thingPrincipalType(ThingPrincipalType thingPrincipalType) The type of the relation you want to specify when you attach a principal to a thing.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iot.model.IotRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
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
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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AttachThingPrincipalRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-