Class CfnUserPoolResourceServerProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPoolResourceServerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolResourceServerProps>
- Enclosing interface:
- CfnUserPoolResourceServerProps
@Stability(Stable)
public static final class CfnUserPoolResourceServerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolResourceServerProps>
A builder for
CfnUserPoolResourceServerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.identifier(String identifier) Sets the value ofCfnUserPoolResourceServerProps.getIdentifier()Sets the value ofCfnUserPoolResourceServerProps.getName()Sets the value ofCfnUserPoolResourceServerProps.getScopes()scopes(IResolvable scopes) Sets the value ofCfnUserPoolResourceServerProps.getScopes()userPoolId(String userPoolId) Sets the value ofCfnUserPoolResourceServerProps.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identifier
Sets the value ofCfnUserPoolResourceServerProps.getIdentifier()- Parameters:
identifier- A unique resource server identifier for the resource server. This parameter is required. This could be an HTTPS endpoint where the resource server is located. For example:https://my-weather-api.example.com.- Returns:
this
-
name
Sets the value ofCfnUserPoolResourceServerProps.getName()- Parameters:
name- A friendly name for the resource server. This parameter is required.- Returns:
this
-
userPoolId
Sets the value ofCfnUserPoolResourceServerProps.getUserPoolId()- Parameters:
userPoolId- The user pool ID for the user pool. This parameter is required.- Returns:
this
-
scopes
Sets the value ofCfnUserPoolResourceServerProps.getScopes()- Parameters:
scopes- A list of scopes. Each scope is a map with keysScopeNameandScopeDescription.- Returns:
this
-
scopes
@Stability(Stable) public CfnUserPoolResourceServerProps.Builder scopes(List<? extends Object> scopes) Sets the value ofCfnUserPoolResourceServerProps.getScopes()- Parameters:
scopes- A list of scopes. Each scope is a map with keysScopeNameandScopeDescription.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPoolResourceServerProps>- Returns:
- a new instance of
CfnUserPoolResourceServerProps - Throws:
NullPointerException- if any required attribute was not provided
-