Interface JWTBearerProperties.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<JWTBearerProperties.Builder,JWTBearerProperties>,SdkBuilder<JWTBearerProperties.Builder,JWTBearerProperties>,SdkPojo
- Enclosing class:
- JWTBearerProperties
@Mutable @NotThreadSafe public static interface JWTBearerProperties.Builder extends SdkPojo, CopyableBuilder<JWTBearerProperties.Builder,JWTBearerProperties>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description JWTBearerProperties.BuildercontentType(String contentType)The content type to use for JWT bearer token requests, such as application/x-www-form-urlencoded or application/json.JWTBearerProperties.BuildercontentType(ContentType contentType)The content type to use for JWT bearer token requests, such as application/x-www-form-urlencoded or application/json.default JWTBearerProperties.BuilderjwtToken(Consumer<ConnectorProperty.Builder> jwtToken)The JWT token to be used in the bearer token grant flow for authentication.JWTBearerProperties.BuilderjwtToken(ConnectorProperty jwtToken)The JWT token to be used in the bearer token grant flow for authentication.JWTBearerProperties.BuilderrequestMethod(String requestMethod)The HTTP method to use when making JWT bearer token requests, typically POST.JWTBearerProperties.BuilderrequestMethod(HTTPMethod requestMethod)The HTTP method to use when making JWT bearer token requests, typically POST.default JWTBearerProperties.BuildertokenUrl(Consumer<ConnectorProperty.Builder> tokenUrl)The token endpoint URL where the JWT bearer token will be exchanged for an access token.JWTBearerProperties.BuildertokenUrl(ConnectorProperty tokenUrl)The token endpoint URL where the JWT bearer token will be exchanged for an access token.JWTBearerProperties.BuildertokenUrlParameters(Collection<ConnectorProperty> tokenUrlParameters)Additional parameters to include in token URL requests as key-value pairs.JWTBearerProperties.BuildertokenUrlParameters(Consumer<ConnectorProperty.Builder>... tokenUrlParameters)Additional parameters to include in token URL requests as key-value pairs.JWTBearerProperties.BuildertokenUrlParameters(ConnectorProperty... tokenUrlParameters)Additional parameters to include in token URL requests as key-value pairs.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
tokenUrl
JWTBearerProperties.Builder tokenUrl(ConnectorProperty tokenUrl)
The token endpoint URL where the JWT bearer token will be exchanged for an access token.
- Parameters:
tokenUrl- The token endpoint URL where the JWT bearer token will be exchanged for an access token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenUrl
default JWTBearerProperties.Builder tokenUrl(Consumer<ConnectorProperty.Builder> tokenUrl)
The token endpoint URL where the JWT bearer token will be exchanged for an access token.
This is a convenience method that creates an instance of theConnectorProperty.Builderavoiding the need to create one manually viaConnectorProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totokenUrl(ConnectorProperty).- Parameters:
tokenUrl- a consumer that will call methods onConnectorProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
tokenUrl(ConnectorProperty)
-
requestMethod
JWTBearerProperties.Builder requestMethod(String requestMethod)
The HTTP method to use when making JWT bearer token requests, typically POST.
- Parameters:
requestMethod- The HTTP method to use when making JWT bearer token requests, typically POST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HTTPMethod,HTTPMethod
-
requestMethod
JWTBearerProperties.Builder requestMethod(HTTPMethod requestMethod)
The HTTP method to use when making JWT bearer token requests, typically POST.
- Parameters:
requestMethod- The HTTP method to use when making JWT bearer token requests, typically POST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HTTPMethod,HTTPMethod
-
contentType
JWTBearerProperties.Builder contentType(String contentType)
The content type to use for JWT bearer token requests, such as application/x-www-form-urlencoded or application/json.
- Parameters:
contentType- The content type to use for JWT bearer token requests, such as application/x-www-form-urlencoded or application/json.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ContentType,ContentType
-
contentType
JWTBearerProperties.Builder contentType(ContentType contentType)
The content type to use for JWT bearer token requests, such as application/x-www-form-urlencoded or application/json.
- Parameters:
contentType- The content type to use for JWT bearer token requests, such as application/x-www-form-urlencoded or application/json.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ContentType,ContentType
-
jwtToken
JWTBearerProperties.Builder jwtToken(ConnectorProperty jwtToken)
The JWT token to be used in the bearer token grant flow for authentication.
- Parameters:
jwtToken- The JWT token to be used in the bearer token grant flow for authentication.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jwtToken
default JWTBearerProperties.Builder jwtToken(Consumer<ConnectorProperty.Builder> jwtToken)
The JWT token to be used in the bearer token grant flow for authentication.
This is a convenience method that creates an instance of theConnectorProperty.Builderavoiding the need to create one manually viaConnectorProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tojwtToken(ConnectorProperty).- Parameters:
jwtToken- a consumer that will call methods onConnectorProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
jwtToken(ConnectorProperty)
-
tokenUrlParameters
JWTBearerProperties.Builder tokenUrlParameters(Collection<ConnectorProperty> tokenUrlParameters)
Additional parameters to include in token URL requests as key-value pairs.
- Parameters:
tokenUrlParameters- Additional parameters to include in token URL requests as key-value pairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenUrlParameters
JWTBearerProperties.Builder tokenUrlParameters(ConnectorProperty... tokenUrlParameters)
Additional parameters to include in token URL requests as key-value pairs.
- Parameters:
tokenUrlParameters- Additional parameters to include in token URL requests as key-value pairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenUrlParameters
JWTBearerProperties.Builder tokenUrlParameters(Consumer<ConnectorProperty.Builder>... tokenUrlParameters)
Additional parameters to include in token URL requests as key-value pairs.
This is a convenience method that creates an instance of theConnectorProperty.Builderavoiding the need to create one manually viaConnectorProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tokenUrlParameters(List.) - Parameters:
tokenUrlParameters- a consumer that will call methods onConnectorProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tokenUrlParameters(java.util.Collection)
-
-