Interface TestAuthorizationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<TestAuthorizationRequest.Builder,
,TestAuthorizationRequest> IotRequest.Builder
,SdkBuilder<TestAuthorizationRequest.Builder,
,TestAuthorizationRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
TestAuthorizationRequest
-
Method Summary
Modifier and TypeMethodDescriptionauthInfos
(Collection<AuthInfo> authInfos) A list of authorization info objects.authInfos
(Consumer<AuthInfo.Builder>... authInfos) A list of authorization info objects.A list of authorization info objects.The MQTT client ID.cognitoIdentityPoolId
(String cognitoIdentityPoolId) The Cognito identity pool ID.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyNamesToAdd
(String... policyNamesToAdd) When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.policyNamesToAdd
(Collection<String> policyNamesToAdd) When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.policyNamesToSkip
(String... policyNamesToSkip) When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.policyNamesToSkip
(Collection<String> policyNamesToSkip) When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.The principal.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iot.model.IotRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
principal
The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
- Parameters:
principal
- The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cognitoIdentityPoolId
The Cognito identity pool ID.
- Parameters:
cognitoIdentityPoolId
- The Cognito identity pool ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authInfos
A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.- Parameters:
authInfos
- A list of authorization info objects. Simulating authorization will create a response for eachauthInfo
object in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authInfos
A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.- Parameters:
authInfos
- A list of authorization info objects. Simulating authorization will create a response for eachauthInfo
object in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authInfos
A list of authorization info objects. Simulating authorization will create a response for each
This is a convenience method that creates an instance of theauthInfo
object in the list.AuthInfo.Builder
avoiding the need to create one manually viaAuthInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toauthInfos(List<AuthInfo>)
.- Parameters:
authInfos
- a consumer that will call methods onAuthInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientId
The MQTT client ID.
- Parameters:
clientId
- The MQTT client ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyNamesToAdd
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
- Parameters:
policyNamesToAdd
- When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyNamesToAdd
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
- Parameters:
policyNamesToAdd
- When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyNamesToSkip
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
- Parameters:
policyNamesToSkip
- When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyNamesToSkip
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
- Parameters:
policyNamesToSkip
- When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
TestAuthorizationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
TestAuthorizationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-