public static interface TestAuthorizationRequest.Builder extends IotRequest.Builder, SdkPojo, CopyableBuilder<TestAuthorizationRequest.Builder,TestAuthorizationRequest>
Modifier and Type | Method and Description |
---|---|
TestAuthorizationRequest.Builder |
authInfos(AuthInfo... authInfos)
A list of authorization info objects.
|
TestAuthorizationRequest.Builder |
authInfos(Collection<AuthInfo> authInfos)
A list of authorization info objects.
|
TestAuthorizationRequest.Builder |
authInfos(Consumer<AuthInfo.Builder>... authInfos)
A list of authorization info objects.
|
TestAuthorizationRequest.Builder |
clientId(String clientId)
The MQTT client ID.
|
TestAuthorizationRequest.Builder |
cognitoIdentityPoolId(String cognitoIdentityPoolId)
The Cognito identity pool ID.
|
TestAuthorizationRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
TestAuthorizationRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
TestAuthorizationRequest.Builder |
policyNamesToAdd(Collection<String> policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the
principal being authorized.
|
TestAuthorizationRequest.Builder |
policyNamesToAdd(String... policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the
principal being authorized.
|
TestAuthorizationRequest.Builder |
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.
|
TestAuthorizationRequest.Builder |
policyNamesToSkip(String... policyNamesToSkip)
When testing custom authorization, the policies specified here are treated as if they are not attached to the
principal being authorized.
|
TestAuthorizationRequest.Builder |
principal(String principal)
The principal.
|
build
overrideConfiguration
copy
applyMutation, build
TestAuthorizationRequest.Builder principal(String principal)
The principal.
principal
- The principal.TestAuthorizationRequest.Builder cognitoIdentityPoolId(String cognitoIdentityPoolId)
The Cognito identity pool ID.
cognitoIdentityPoolId
- The Cognito identity pool ID.TestAuthorizationRequest.Builder authInfos(Collection<AuthInfo> authInfos)
A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.
authInfos
- A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.TestAuthorizationRequest.Builder authInfos(AuthInfo... authInfos)
A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.
authInfos
- A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.TestAuthorizationRequest.Builder authInfos(Consumer<AuthInfo.Builder>... authInfos)
A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.
List.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #authInfos(List)
.authInfos
- a consumer that will call methods on List.Builder
#authInfos(List)
TestAuthorizationRequest.Builder clientId(String clientId)
The MQTT client ID.
clientId
- The MQTT client ID.TestAuthorizationRequest.Builder policyNamesToAdd(Collection<String> policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
policyNamesToAdd
- When testing custom authorization, the policies specified here are treated as if they are attached to
the principal being authorized.TestAuthorizationRequest.Builder policyNamesToAdd(String... policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
policyNamesToAdd
- When testing custom authorization, the policies specified here are treated as if they are attached to
the principal being authorized.TestAuthorizationRequest.Builder 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.
policyNamesToSkip
- When testing custom authorization, the policies specified here are treated as if they are not attached
to the principal being authorized.TestAuthorizationRequest.Builder 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
- When testing custom authorization, the policies specified here are treated as if they are not attached
to the principal being authorized.TestAuthorizationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.TestAuthorizationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.