Interface CreateResourceServerRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CognitoIdentityProviderRequest.Builder,CopyableBuilder<CreateResourceServerRequest.Builder,CreateResourceServerRequest>,SdkBuilder<CreateResourceServerRequest.Builder,CreateResourceServerRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateResourceServerRequest
public static interface CreateResourceServerRequest.Builder extends CognitoIdentityProviderRequest.Builder, SdkPojo, CopyableBuilder<CreateResourceServerRequest.Builder,CreateResourceServerRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateResourceServerRequest.Builderidentifier(String identifier)A unique resource server identifier for the resource server.CreateResourceServerRequest.Buildername(String name)A friendly name for the resource server.CreateResourceServerRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateResourceServerRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateResourceServerRequest.Builderscopes(Collection<ResourceServerScopeType> scopes)A list of scopes.CreateResourceServerRequest.Builderscopes(Consumer<ResourceServerScopeType.Builder>... scopes)A list of scopes.CreateResourceServerRequest.Builderscopes(ResourceServerScopeType... scopes)A list of scopes.CreateResourceServerRequest.BuilderuserPoolId(String userPoolId)The user pool ID for the user pool.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cognitoidentityprovider.model.CognitoIdentityProviderRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
userPoolId
CreateResourceServerRequest.Builder userPoolId(String userPoolId)
The user pool ID for the user pool.
- Parameters:
userPoolId- The user pool ID for the user pool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identifier
CreateResourceServerRequest.Builder identifier(String identifier)
A unique resource server identifier for the resource server. The identifier can be an API friendly name like
solar-system-data. You can also set an API URL likehttps://solar-system-data-api.example.comas your identifier.Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope. Longer scope-identifier strings increase the size of your access tokens.- Parameters:
identifier- A unique resource server identifier for the resource server. The identifier can be an API friendly name likesolar-system-data. You can also set an API URL likehttps://solar-system-data-api.example.comas your identifier.Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope. Longer scope-identifier strings increase the size of your access tokens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateResourceServerRequest.Builder name(String name)
A friendly name for the resource server.
- Parameters:
name- A friendly name for the resource server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopes
CreateResourceServerRequest.Builder scopes(Collection<ResourceServerScopeType> scopes)
A list of scopes. Each scope is a key-value map with the keys
nameanddescription.- Parameters:
scopes- A list of scopes. Each scope is a key-value map with the keysnameanddescription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopes
CreateResourceServerRequest.Builder scopes(ResourceServerScopeType... scopes)
A list of scopes. Each scope is a key-value map with the keys
nameanddescription.- Parameters:
scopes- A list of scopes. Each scope is a key-value map with the keysnameanddescription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopes
CreateResourceServerRequest.Builder scopes(Consumer<ResourceServerScopeType.Builder>... scopes)
A list of scopes. Each scope is a key-value map with the keys
This is a convenience method that creates an instance of thenameanddescription.ResourceServerScopeType.Builderavoiding the need to create one manually viaResourceServerScopeType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#scopes(List.) - Parameters:
scopes- a consumer that will call methods onResourceServerScopeType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#scopes(java.util.Collection)
-
overrideConfiguration
CreateResourceServerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateResourceServerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-