Class MCPServerAuthorizationConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MCPServerAuthorizationConfig.Builder,MCPServerAuthorizationConfig>
Authorization configuration options for MCP server, supporting OAuth, API key, bearer token, and authorization discovery methods.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionfinal MCPServerAPIKeyConfigapiKey()MCP server configuration with API key authentication.MCP server authorization discovery configuration.MCP server configuration with Bearer token (RFC 6750).builder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static MCPServerAuthorizationConfigCreate an instance of this class withapiKey()initialized to the given value.static MCPServerAuthorizationConfigfromApiKey(MCPServerAPIKeyConfig apiKey) Create an instance of this class withapiKey()initialized to the given value.static MCPServerAuthorizationConfigfromAuthorizationDiscovery(Consumer<MCPServerAuthorizationDiscoveryConfig.Builder> authorizationDiscovery) Create an instance of this class withauthorizationDiscovery()initialized to the given value.static MCPServerAuthorizationConfigfromAuthorizationDiscovery(MCPServerAuthorizationDiscoveryConfig authorizationDiscovery) Create an instance of this class withauthorizationDiscovery()initialized to the given value.static MCPServerAuthorizationConfigfromBearerToken(Consumer<MCPServerBearerTokenConfig.Builder> bearerToken) Create an instance of this class withbearerToken()initialized to the given value.static MCPServerAuthorizationConfigfromBearerToken(MCPServerBearerTokenConfig bearerToken) Create an instance of this class withbearerToken()initialized to the given value.static MCPServerAuthorizationConfigfromOAuth3LO(Consumer<MCPServerOAuth3LOConfig.Builder> oAuth3LO) Create an instance of this class withoAuth3LO()initialized to the given value.static MCPServerAuthorizationConfigfromOAuth3LO(MCPServerOAuth3LOConfig oAuth3LO) Create an instance of this class withoAuth3LO()initialized to the given value.static MCPServerAuthorizationConfigfromOAuthClientCredentials(Consumer<MCPServerOAuthClientCredentialsConfig.Builder> oAuthClientCredentials) Create an instance of this class withoAuthClientCredentials()initialized to the given value.static MCPServerAuthorizationConfigfromOAuthClientCredentials(MCPServerOAuthClientCredentialsConfig oAuthClientCredentials) Create an instance of this class withoAuthClientCredentials()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final MCPServerOAuth3LOConfigoAuth3LO()MCP server configuration with OAuth 3LO.MCP server configuration with OAuth client credentials.static Class<? extends MCPServerAuthorizationConfig.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
oAuthClientCredentials
MCP server configuration with OAuth client credentials.
- Returns:
- MCP server configuration with OAuth client credentials.
-
oAuth3LO
MCP server configuration with OAuth 3LO.
- Returns:
- MCP server configuration with OAuth 3LO.
-
apiKey
MCP server configuration with API key authentication.
- Returns:
- MCP server configuration with API key authentication.
-
bearerToken
MCP server configuration with Bearer token (RFC 6750).
- Returns:
- MCP server configuration with Bearer token (RFC 6750).
-
authorizationDiscovery
MCP server authorization discovery configuration.
- Returns:
- MCP server authorization discovery configuration.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<MCPServerAuthorizationConfig.Builder,MCPServerAuthorizationConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromOAuthClientCredentials
public static MCPServerAuthorizationConfig fromOAuthClientCredentials(MCPServerOAuthClientCredentialsConfig oAuthClientCredentials) Create an instance of this class withoAuthClientCredentials()initialized to the given value.MCP server configuration with OAuth client credentials.
- Parameters:
oAuthClientCredentials- MCP server configuration with OAuth client credentials.
-
fromOAuthClientCredentials
public static MCPServerAuthorizationConfig fromOAuthClientCredentials(Consumer<MCPServerOAuthClientCredentialsConfig.Builder> oAuthClientCredentials) Create an instance of this class withoAuthClientCredentials()initialized to the given value.MCP server configuration with OAuth client credentials.
- Parameters:
oAuthClientCredentials- MCP server configuration with OAuth client credentials.
-
fromOAuth3LO
Create an instance of this class withoAuth3LO()initialized to the given value.MCP server configuration with OAuth 3LO.
- Parameters:
oAuth3LO- MCP server configuration with OAuth 3LO.
-
fromOAuth3LO
public static MCPServerAuthorizationConfig fromOAuth3LO(Consumer<MCPServerOAuth3LOConfig.Builder> oAuth3LO) Create an instance of this class withoAuth3LO()initialized to the given value.MCP server configuration with OAuth 3LO.
- Parameters:
oAuth3LO- MCP server configuration with OAuth 3LO.
-
fromApiKey
Create an instance of this class withapiKey()initialized to the given value.MCP server configuration with API key authentication.
- Parameters:
apiKey- MCP server configuration with API key authentication.
-
fromApiKey
public static MCPServerAuthorizationConfig fromApiKey(Consumer<MCPServerAPIKeyConfig.Builder> apiKey) Create an instance of this class withapiKey()initialized to the given value.MCP server configuration with API key authentication.
- Parameters:
apiKey- MCP server configuration with API key authentication.
-
fromBearerToken
Create an instance of this class withbearerToken()initialized to the given value.MCP server configuration with Bearer token (RFC 6750).
- Parameters:
bearerToken- MCP server configuration with Bearer token (RFC 6750).
-
fromBearerToken
public static MCPServerAuthorizationConfig fromBearerToken(Consumer<MCPServerBearerTokenConfig.Builder> bearerToken) Create an instance of this class withbearerToken()initialized to the given value.MCP server configuration with Bearer token (RFC 6750).
- Parameters:
bearerToken- MCP server configuration with Bearer token (RFC 6750).
-
fromAuthorizationDiscovery
public static MCPServerAuthorizationConfig fromAuthorizationDiscovery(MCPServerAuthorizationDiscoveryConfig authorizationDiscovery) Create an instance of this class withauthorizationDiscovery()initialized to the given value.MCP server authorization discovery configuration.
- Parameters:
authorizationDiscovery- MCP server authorization discovery configuration.
-
fromAuthorizationDiscovery
public static MCPServerAuthorizationConfig fromAuthorizationDiscovery(Consumer<MCPServerAuthorizationDiscoveryConfig.Builder> authorizationDiscovery) Create an instance of this class withauthorizationDiscovery()initialized to the given value.MCP server authorization discovery configuration.
- Parameters:
authorizationDiscovery- MCP server authorization discovery configuration.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beMCPServerAuthorizationConfig.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beMCPServerAuthorizationConfig.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-