public static final class UserPoolResourceServerProps.Builder
extends java.lang.Object
UserPoolResourceServerProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UserPoolResourceServerProps |
build()
Builds the configured instance.
|
UserPoolResourceServerProps.Builder |
identifier(java.lang.String identifier)
Sets the value of
UserPoolResourceServerOptions.getIdentifier() |
UserPoolResourceServerProps.Builder |
scopes(java.util.List<? extends ResourceServerScope> scopes)
Sets the value of
UserPoolResourceServerOptions.getScopes() |
UserPoolResourceServerProps.Builder |
userPool(IUserPool userPool)
Sets the value of
UserPoolResourceServerProps.getUserPool() |
UserPoolResourceServerProps.Builder |
userPoolResourceServerName(java.lang.String userPoolResourceServerName)
Sets the value of
UserPoolResourceServerOptions.getUserPoolResourceServerName() |
public UserPoolResourceServerProps.Builder userPool(IUserPool userPool)
UserPoolResourceServerProps.getUserPool()
userPool
- The user pool to add this resource server to. This parameter is required.this
public UserPoolResourceServerProps.Builder identifier(java.lang.String identifier)
UserPoolResourceServerOptions.getIdentifier()
identifier
- A unique resource server identifier for the resource server. This parameter is required.this
public UserPoolResourceServerProps.Builder scopes(java.util.List<? extends ResourceServerScope> scopes)
UserPoolResourceServerOptions.getScopes()
scopes
- Oauth scopes.this
public UserPoolResourceServerProps.Builder userPoolResourceServerName(java.lang.String userPoolResourceServerName)
UserPoolResourceServerOptions.getUserPoolResourceServerName()
userPoolResourceServerName
- A friendly name for the resource server.this
public UserPoolResourceServerProps build()
UserPoolResourceServerProps
java.lang.NullPointerException
- if any required attribute was not provided