Class UserPoolResourceServerOptions.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolResourceServerOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolResourceServerOptions>
- Enclosing interface:
UserPoolResourceServerOptions
@Stability(Stable)
public static final class UserPoolResourceServerOptions.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolResourceServerOptions>
A builder for
UserPoolResourceServerOptions
-
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()
userPoolResourceServerName
(String userPoolResourceServerName) Sets the value ofUserPoolResourceServerOptions.getUserPoolResourceServerName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 UserPoolResourceServerOptions.Builder scopes(List<? extends ResourceServerScope> scopes) Sets the value ofUserPoolResourceServerOptions.getScopes()
- Parameters:
scopes
- Oauth scopes.- Returns:
this
-
userPoolResourceServerName
@Stability(Stable) public UserPoolResourceServerOptions.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<UserPoolResourceServerOptions>
- Returns:
- a new instance of
UserPoolResourceServerOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-