Class OAuthAuthorizationProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.OAuthAuthorizationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OAuthAuthorizationProps>
- Enclosing interface:
OAuthAuthorizationProps
@Stability(Stable)
public static final class OAuthAuthorizationProps.Builder
extends Object
implements software.amazon.jsii.Builder<OAuthAuthorizationProps>
A builder for
OAuthAuthorizationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizationEndpoint(String authorizationEndpoint) Sets the value ofOAuthAuthorizationProps.getAuthorizationEndpoint()bodyParameters(Map<String, ? extends HttpParameter> bodyParameters) Sets the value ofOAuthAuthorizationProps.getBodyParameters()build()Builds the configured instance.Sets the value ofOAuthAuthorizationProps.getClientId()clientSecret(SecretValue clientSecret) Sets the value ofOAuthAuthorizationProps.getClientSecret()headerParameters(Map<String, ? extends HttpParameter> headerParameters) Sets the value ofOAuthAuthorizationProps.getHeaderParameters()httpMethod(HttpMethod httpMethod) Sets the value ofOAuthAuthorizationProps.getHttpMethod()queryStringParameters(Map<String, ? extends HttpParameter> queryStringParameters) Sets the value ofOAuthAuthorizationProps.getQueryStringParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationEndpoint
@Stability(Stable) public OAuthAuthorizationProps.Builder authorizationEndpoint(String authorizationEndpoint) Sets the value ofOAuthAuthorizationProps.getAuthorizationEndpoint()- Parameters:
authorizationEndpoint- The URL to the authorization endpoint. This parameter is required.- Returns:
this
-
clientId
Sets the value ofOAuthAuthorizationProps.getClientId()- Parameters:
clientId- The client ID to use for OAuth authorization for the connection. This parameter is required.- Returns:
this
-
clientSecret
Sets the value ofOAuthAuthorizationProps.getClientSecret()- Parameters:
clientSecret- The client secret associated with the client ID to use for OAuth authorization for the connection. This parameter is required.- Returns:
this
-
httpMethod
Sets the value ofOAuthAuthorizationProps.getHttpMethod()- Parameters:
httpMethod- The method to use for the authorization request. This parameter is required. (Can only choose POST, GET or PUT).- Returns:
this
-
bodyParameters
@Stability(Stable) public OAuthAuthorizationProps.Builder bodyParameters(Map<String, ? extends HttpParameter> bodyParameters) Sets the value ofOAuthAuthorizationProps.getBodyParameters()- Parameters:
bodyParameters- Additional string parameters to add to the OAuth request body.- Returns:
this
-
headerParameters
@Stability(Stable) public OAuthAuthorizationProps.Builder headerParameters(Map<String, ? extends HttpParameter> headerParameters) Sets the value ofOAuthAuthorizationProps.getHeaderParameters()- Parameters:
headerParameters- Additional string parameters to add to the OAuth request header.- Returns:
this
-
queryStringParameters
@Stability(Stable) public OAuthAuthorizationProps.Builder queryStringParameters(Map<String, ? extends HttpParameter> queryStringParameters) Sets the value ofOAuthAuthorizationProps.getQueryStringParameters()- Parameters:
queryStringParameters- Additional string parameters to add to the OAuth request query string.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OAuthAuthorizationProps>- Returns:
- a new instance of
OAuthAuthorizationProps - Throws:
NullPointerException- if any required attribute was not provided
-