Class CognitoUserPoolsTrait.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<CognitoUserPoolsTrait,CognitoUserPoolsTrait.Builder>
software.amazon.smithy.aws.traits.auth.CognitoUserPoolsTrait.Builder
- All Implemented Interfaces:
SmithyBuilder<CognitoUserPoolsTrait>
- Enclosing class:
- CognitoUserPoolsTrait
public static final class CognitoUserPoolsTrait.Builder
extends AbstractTraitBuilder<CognitoUserPoolsTrait,CognitoUserPoolsTrait.Builder>
Builder for
CognitoUserPoolsTrait
.-
Method Summary
Modifier and TypeMethodDescriptionaddProviderArn
(String arn) Adds a provider ARN.build()
Creates an immutable object that is created from the properties that have been set on the builder.Clears all provider ARNs from the builder.providerArns
(List<String> providerArns) Sets the provider ARNs.Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
Method Details
-
build
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
providerArns
Sets the provider ARNs.- Parameters:
providerArns
- ARNS to set.- Returns:
- Returns the builder.
-
addProviderArn
Adds a provider ARN.- Parameters:
arn
- ARN to add.- Returns:
- Returns the builder.
-
clearProviderArns
Clears all provider ARNs from the builder.- Returns:
- Returns the builder.
-