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) |
TestAuthorizationRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
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
equalsBySdkFields, sdkFields
copy
applyMutation, build
TestAuthorizationRequest.Builder principal(String 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).
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).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.
AuthInfo.Builder
avoiding the need to create one manually
via AuthInfo.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and its
result is passed to #authInfos(List
.
authInfos
- a consumer that will call methods on
AuthInfo.Builder
#authInfos(java.util.Collection)
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)
overrideConfiguration
in interface AwsRequest.Builder
TestAuthorizationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2023. All rights reserved.