Class UserPoolResourceServerProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolResourceServerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolResourceServerProps>
- Enclosing interface:
UserPoolResourceServerProps
@Stability(Stable)
public static final class UserPoolResourceServerProps.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolResourceServerProps>
A builder for
UserPoolResourceServerProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.identifier
(String identifier) Sets the value ofUserPoolResourceServerOptions.getIdentifier()
scopes
(List<? extends ResourceServerScope> scopes) Sets the value ofUserPoolResourceServerOptions.getScopes()
Sets the value ofUserPoolResourceServerProps.getUserPool()
userPoolResourceServerName
(String userPoolResourceServerName) Sets the value ofUserPoolResourceServerOptions.getUserPoolResourceServerName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
userPool
Sets the value ofUserPoolResourceServerProps.getUserPool()
- Parameters:
userPool
- The user pool to add this resource server to. This parameter is required.- Returns:
this
-
identifier
Sets the value ofUserPoolResourceServerOptions.getIdentifier()
- Parameters:
identifier
- A unique resource server identifier for the resource server. This parameter is required.- Returns:
this
-
scopes
@Stability(Stable) public UserPoolResourceServerProps.Builder scopes(List<? extends ResourceServerScope> scopes) Sets the value ofUserPoolResourceServerOptions.getScopes()
- Parameters:
scopes
- Oauth scopes.- Returns:
this
-
userPoolResourceServerName
@Stability(Stable) public UserPoolResourceServerProps.Builder userPoolResourceServerName(String userPoolResourceServerName) Sets the value ofUserPoolResourceServerOptions.getUserPoolResourceServerName()
- Parameters:
userPoolResourceServerName
- A friendly name for the resource server.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserPoolResourceServerProps>
- Returns:
- a new instance of
UserPoolResourceServerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-