Class OAuth2AuthorizationServerMetadata.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.OAuth2AuthorizationServerMetadata.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OAuth2AuthorizationServerMetadata>
- Enclosing interface:
OAuth2AuthorizationServerMetadata
@Stability(Stable)
public static final class OAuth2AuthorizationServerMetadata.Builder
extends Object
implements software.amazon.jsii.Builder<OAuth2AuthorizationServerMetadata>
A builder for
OAuth2AuthorizationServerMetadata-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizationEndpoint(String authorizationEndpoint) Sets the value ofOAuth2AuthorizationServerMetadata.getAuthorizationEndpoint()build()Builds the configured instance.Sets the value ofOAuth2AuthorizationServerMetadata.getIssuer()responseTypes(List<String> responseTypes) Sets the value ofOAuth2AuthorizationServerMetadata.getResponseTypes()tokenEndpoint(String tokenEndpoint) Sets the value ofOAuth2AuthorizationServerMetadata.getTokenEndpoint()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationEndpoint
@Stability(Stable) public OAuth2AuthorizationServerMetadata.Builder authorizationEndpoint(String authorizationEndpoint) Sets the value ofOAuth2AuthorizationServerMetadata.getAuthorizationEndpoint()- Parameters:
authorizationEndpoint- The authorization endpoint URL. This parameter is required.- Returns:
this
-
issuer
Sets the value ofOAuth2AuthorizationServerMetadata.getIssuer()- Parameters:
issuer- The issuer URL for the OAuth2 authorization server. This parameter is required.- Returns:
this
-
tokenEndpoint
@Stability(Stable) public OAuth2AuthorizationServerMetadata.Builder tokenEndpoint(String tokenEndpoint) Sets the value ofOAuth2AuthorizationServerMetadata.getTokenEndpoint()- Parameters:
tokenEndpoint- The token endpoint URL. This parameter is required.- Returns:
this
-
responseTypes
@Stability(Stable) public OAuth2AuthorizationServerMetadata.Builder responseTypes(List<String> responseTypes) Sets the value ofOAuth2AuthorizationServerMetadata.getResponseTypes()- Parameters:
responseTypes- The supported response types.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OAuth2AuthorizationServerMetadata>- Returns:
- a new instance of
OAuth2AuthorizationServerMetadata - Throws:
NullPointerException- if any required attribute was not provided
-