Interface TestAuthorizationRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<TestAuthorizationRequest.Builder,TestAuthorizationRequest>,IotRequest.Builder,SdkBuilder<TestAuthorizationRequest.Builder,TestAuthorizationRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- TestAuthorizationRequest
public static interface TestAuthorizationRequest.Builder extends IotRequest.Builder, SdkPojo, CopyableBuilder<TestAuthorizationRequest.Builder,TestAuthorizationRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TestAuthorizationRequest.BuilderauthInfos(Collection<AuthInfo> authInfos)A list of authorization info objects.TestAuthorizationRequest.BuilderauthInfos(Consumer<AuthInfo.Builder>... authInfos)A list of authorization info objects.TestAuthorizationRequest.BuilderauthInfos(AuthInfo... authInfos)A list of authorization info objects.TestAuthorizationRequest.BuilderclientId(String clientId)The MQTT client ID.TestAuthorizationRequest.BuildercognitoIdentityPoolId(String cognitoIdentityPoolId)The Cognito identity pool ID.TestAuthorizationRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)TestAuthorizationRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)TestAuthorizationRequest.BuilderpolicyNamesToAdd(String... policyNamesToAdd)When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.TestAuthorizationRequest.BuilderpolicyNamesToAdd(Collection<String> policyNamesToAdd)When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.TestAuthorizationRequest.BuilderpolicyNamesToSkip(String... policyNamesToSkip)When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.TestAuthorizationRequest.BuilderpolicyNamesToSkip(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.Builderprincipal(String principal)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 Detail
-
principal
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).
- 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
TestAuthorizationRequest.Builder cognitoIdentityPoolId(String 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
TestAuthorizationRequest.Builder authInfos(Collection<AuthInfo> authInfos)
A list of authorization info objects. Simulating authorization will create a response for each
authInfoobject in the list.- Parameters:
authInfos- A list of authorization info objects. Simulating authorization will create a response for eachauthInfoobject in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authInfos
TestAuthorizationRequest.Builder authInfos(AuthInfo... authInfos)
A list of authorization info objects. Simulating authorization will create a response for each
authInfoobject in the list.- Parameters:
authInfos- A list of authorization info objects. Simulating authorization will create a response for eachauthInfoobject in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authInfos
TestAuthorizationRequest.Builder authInfos(Consumer<AuthInfo.Builder>... 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 theauthInfoobject in the list.AuthInfo.Builderavoiding the need to create one manually viaAuthInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#authInfos(List.) - 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:
#authInfos(java.util.Collection)
-
clientId
TestAuthorizationRequest.Builder clientId(String 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
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.
- 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
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.
- 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
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.
- 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
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.
- 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
TestAuthorizationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-