Class CfnConnection.OAuthParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnConnection.OAuthParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnection.OAuthParametersProperty>
- Enclosing interface:
- CfnConnection.OAuthParametersProperty
@Stability(Stable)
public static final class CfnConnection.OAuthParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnection.OAuthParametersProperty>
A builder for
CfnConnection.OAuthParametersProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizationEndpoint
(String authorizationEndpoint) Sets the value ofCfnConnection.OAuthParametersProperty.getAuthorizationEndpoint()
build()
Builds the configured instance.clientParameters
(IResolvable clientParameters) Sets the value ofCfnConnection.OAuthParametersProperty.getClientParameters()
clientParameters
(CfnConnection.ClientParametersProperty clientParameters) Sets the value ofCfnConnection.OAuthParametersProperty.getClientParameters()
httpMethod
(String httpMethod) Sets the value ofCfnConnection.OAuthParametersProperty.getHttpMethod()
oAuthHttpParameters
(IResolvable oAuthHttpParameters) Sets the value ofCfnConnection.OAuthParametersProperty.getOAuthHttpParameters()
oAuthHttpParameters
(CfnConnection.ConnectionHttpParametersProperty oAuthHttpParameters) Sets the value ofCfnConnection.OAuthParametersProperty.getOAuthHttpParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationEndpoint
@Stability(Stable) public CfnConnection.OAuthParametersProperty.Builder authorizationEndpoint(String authorizationEndpoint) Sets the value ofCfnConnection.OAuthParametersProperty.getAuthorizationEndpoint()
- Parameters:
authorizationEndpoint
- The URL to the authorization endpoint when OAuth is specified as the authorization type. This parameter is required.- Returns:
this
-
clientParameters
@Stability(Stable) public CfnConnection.OAuthParametersProperty.Builder clientParameters(IResolvable clientParameters) Sets the value ofCfnConnection.OAuthParametersProperty.getClientParameters()
- Parameters:
clientParameters
- ACreateConnectionOAuthClientRequestParameters
object that contains the client parameters for OAuth authorization. This parameter is required.- Returns:
this
-
clientParameters
@Stability(Stable) public CfnConnection.OAuthParametersProperty.Builder clientParameters(CfnConnection.ClientParametersProperty clientParameters) Sets the value ofCfnConnection.OAuthParametersProperty.getClientParameters()
- Parameters:
clientParameters
- ACreateConnectionOAuthClientRequestParameters
object that contains the client parameters for OAuth authorization. This parameter is required.- Returns:
this
-
httpMethod
@Stability(Stable) public CfnConnection.OAuthParametersProperty.Builder httpMethod(String httpMethod) Sets the value ofCfnConnection.OAuthParametersProperty.getHttpMethod()
- Parameters:
httpMethod
- The method to use for the authorization request. This parameter is required.- Returns:
this
-
oAuthHttpParameters
@Stability(Stable) public CfnConnection.OAuthParametersProperty.Builder oAuthHttpParameters(IResolvable oAuthHttpParameters) Sets the value ofCfnConnection.OAuthParametersProperty.getOAuthHttpParameters()
- Parameters:
oAuthHttpParameters
- AConnectionHttpParameters
object that contains details about the additional parameters to use for the connection.- Returns:
this
-
oAuthHttpParameters
@Stability(Stable) public CfnConnection.OAuthParametersProperty.Builder oAuthHttpParameters(CfnConnection.ConnectionHttpParametersProperty oAuthHttpParameters) Sets the value ofCfnConnection.OAuthParametersProperty.getOAuthHttpParameters()
- Parameters:
oAuthHttpParameters
- AConnectionHttpParameters
object that contains details about the additional parameters to use for the connection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConnection.OAuthParametersProperty>
- Returns:
- a new instance of
CfnConnection.OAuthParametersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-