public static final class AuthorizersTrait.Builder extends AbstractTraitBuilder<AuthorizersTrait,AuthorizersTrait.Builder>
AuthorizersTrait
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AuthorizersTrait.Builder |
authorizers(java.util.Map<java.lang.String,AuthorizerDefinition> authorizers)
Replaces all of the authorizers with the given map.
|
AuthorizersTrait |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
AuthorizersTrait.Builder |
clearAuthorizers()
Clears all of the authorizers in the builder.
|
AuthorizersTrait.Builder |
putAuthorizer(java.lang.String name,
AuthorizerDefinition authorizer)
Adds an authorizer.
|
AuthorizersTrait.Builder |
removeAuthorizer(java.lang.String name)
Removes an authorizer by name.
|
getSourceLocation, sourceLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public AuthorizersTrait build()
SmithyBuilder
public AuthorizersTrait.Builder putAuthorizer(java.lang.String name, AuthorizerDefinition authorizer)
name
- Name of the authorizer to add.authorizer
- Authorizer definition.public AuthorizersTrait.Builder authorizers(java.util.Map<java.lang.String,AuthorizerDefinition> authorizers)
authorizers
- Map of authorizer names to their definitions.public AuthorizersTrait.Builder removeAuthorizer(java.lang.String name)
name
- Name of the authorizer to remove.public AuthorizersTrait.Builder clearAuthorizers()