Class CfnConnection.AuthParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnConnection.AuthParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnection.AuthParametersProperty>
- Enclosing interface:
CfnConnection.AuthParametersProperty
@Stability(Stable)
public static final class CfnConnection.AuthParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnection.AuthParametersProperty>
A builder for
CfnConnection.AuthParametersProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiKeyAuthParameters
(IResolvable apiKeyAuthParameters) Sets the value ofCfnConnection.AuthParametersProperty.getApiKeyAuthParameters()
apiKeyAuthParameters
(CfnConnection.ApiKeyAuthParametersProperty apiKeyAuthParameters) Sets the value ofCfnConnection.AuthParametersProperty.getApiKeyAuthParameters()
basicAuthParameters
(IResolvable basicAuthParameters) Sets the value ofCfnConnection.AuthParametersProperty.getBasicAuthParameters()
basicAuthParameters
(CfnConnection.BasicAuthParametersProperty basicAuthParameters) Sets the value ofCfnConnection.AuthParametersProperty.getBasicAuthParameters()
build()
Builds the configured instance.invocationHttpParameters
(IResolvable invocationHttpParameters) Sets the value ofCfnConnection.AuthParametersProperty.getInvocationHttpParameters()
invocationHttpParameters
(CfnConnection.ConnectionHttpParametersProperty invocationHttpParameters) Sets the value ofCfnConnection.AuthParametersProperty.getInvocationHttpParameters()
oAuthParameters
(IResolvable oAuthParameters) Sets the value ofCfnConnection.AuthParametersProperty.getOAuthParameters()
oAuthParameters
(CfnConnection.OAuthParametersProperty oAuthParameters) Sets the value ofCfnConnection.AuthParametersProperty.getOAuthParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKeyAuthParameters
@Stability(Stable) public CfnConnection.AuthParametersProperty.Builder apiKeyAuthParameters(IResolvable apiKeyAuthParameters) Sets the value ofCfnConnection.AuthParametersProperty.getApiKeyAuthParameters()
- Parameters:
apiKeyAuthParameters
- The API Key parameters to use for authorization.- Returns:
this
-
apiKeyAuthParameters
@Stability(Stable) public CfnConnection.AuthParametersProperty.Builder apiKeyAuthParameters(CfnConnection.ApiKeyAuthParametersProperty apiKeyAuthParameters) Sets the value ofCfnConnection.AuthParametersProperty.getApiKeyAuthParameters()
- Parameters:
apiKeyAuthParameters
- The API Key parameters to use for authorization.- Returns:
this
-
basicAuthParameters
@Stability(Stable) public CfnConnection.AuthParametersProperty.Builder basicAuthParameters(IResolvable basicAuthParameters) Sets the value ofCfnConnection.AuthParametersProperty.getBasicAuthParameters()
- Parameters:
basicAuthParameters
- The authorization parameters for Basic authorization.- Returns:
this
-
basicAuthParameters
@Stability(Stable) public CfnConnection.AuthParametersProperty.Builder basicAuthParameters(CfnConnection.BasicAuthParametersProperty basicAuthParameters) Sets the value ofCfnConnection.AuthParametersProperty.getBasicAuthParameters()
- Parameters:
basicAuthParameters
- The authorization parameters for Basic authorization.- Returns:
this
-
invocationHttpParameters
@Stability(Stable) public CfnConnection.AuthParametersProperty.Builder invocationHttpParameters(IResolvable invocationHttpParameters) Sets the value ofCfnConnection.AuthParametersProperty.getInvocationHttpParameters()
- Parameters:
invocationHttpParameters
- Additional parameters for the connection that are passed through with every invocation to the HTTP endpoint.- Returns:
this
-
invocationHttpParameters
@Stability(Stable) public CfnConnection.AuthParametersProperty.Builder invocationHttpParameters(CfnConnection.ConnectionHttpParametersProperty invocationHttpParameters) Sets the value ofCfnConnection.AuthParametersProperty.getInvocationHttpParameters()
- Parameters:
invocationHttpParameters
- Additional parameters for the connection that are passed through with every invocation to the HTTP endpoint.- Returns:
this
-
oAuthParameters
@Stability(Stable) public CfnConnection.AuthParametersProperty.Builder oAuthParameters(IResolvable oAuthParameters) Sets the value ofCfnConnection.AuthParametersProperty.getOAuthParameters()
- Parameters:
oAuthParameters
- The OAuth parameters to use for authorization.- Returns:
this
-
oAuthParameters
@Stability(Stable) public CfnConnection.AuthParametersProperty.Builder oAuthParameters(CfnConnection.OAuthParametersProperty oAuthParameters) Sets the value ofCfnConnection.AuthParametersProperty.getOAuthParameters()
- Parameters:
oAuthParameters
- The OAuth parameters to use for authorization.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConnection.AuthParametersProperty>
- Returns:
- a new instance of
CfnConnection.AuthParametersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-