Class CfnConnectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnConnectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectionProps>
- Enclosing interface:
CfnConnectionProps
@Stability(Stable)
public static final class CfnConnectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectionProps>
A builder for
CfnConnectionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationType
(String authorizationType) Sets the value ofCfnConnectionProps.getAuthorizationType()
authParameters
(IResolvable authParameters) Sets the value ofCfnConnectionProps.getAuthParameters()
authParameters
(CfnConnection.AuthParametersProperty authParameters) Sets the value ofCfnConnectionProps.getAuthParameters()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnConnectionProps.getDescription()
Sets the value ofCfnConnectionProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationType
Sets the value ofCfnConnectionProps.getAuthorizationType()
- Parameters:
authorizationType
- The type of authorization to use for the connection. This parameter is required.OAUTH tokens are refreshed when a 401 or 407 response is returned.
- Returns:
this
-
authParameters
Sets the value ofCfnConnectionProps.getAuthParameters()
- Parameters:
authParameters
- ACreateConnectionAuthRequestParameters
object that contains the authorization parameters to use to authorize with the endpoint. This parameter is required.- Returns:
this
-
authParameters
@Stability(Stable) public CfnConnectionProps.Builder authParameters(CfnConnection.AuthParametersProperty authParameters) Sets the value ofCfnConnectionProps.getAuthParameters()
- Parameters:
authParameters
- ACreateConnectionAuthRequestParameters
object that contains the authorization parameters to use to authorize with the endpoint. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnConnectionProps.getDescription()
- Parameters:
description
- A description for the connection to create.- Returns:
this
-
name
Sets the value ofCfnConnectionProps.getName()
- Parameters:
name
- The name for the connection to create.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConnectionProps>
- Returns:
- a new instance of
CfnConnectionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-