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 forCognitoUserPoolsTrait
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CognitoUserPoolsTrait.Builder
addProviderArn(java.lang.String arn)
Adds a provider ARN.CognitoUserPoolsTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.CognitoUserPoolsTrait.Builder
clearProviderArns()
Clears all provider ARNs from the builder.CognitoUserPoolsTrait.Builder
providerArns(java.util.List<java.lang.String> providerArns)
Sets the provider ARNs.-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
build
public CognitoUserPoolsTrait 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
public CognitoUserPoolsTrait.Builder providerArns(java.util.List<java.lang.String> providerArns)
Sets the provider ARNs.- Parameters:
providerArns
- ARNS to set.- Returns:
- Returns the builder.
-
addProviderArn
public CognitoUserPoolsTrait.Builder addProviderArn(java.lang.String arn)
Adds a provider ARN.- Parameters:
arn
- ARN to add.- Returns:
- Returns the builder.
-
clearProviderArns
public CognitoUserPoolsTrait.Builder clearProviderArns()
Clears all provider ARNs from the builder.- Returns:
- Returns the builder.
-
-