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
Constructors -
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()
invocationConnectivityParameters
(IResolvable invocationConnectivityParameters) Sets the value ofCfnConnectionProps.getInvocationConnectivityParameters()
invocationConnectivityParameters
(CfnConnection.InvocationConnectivityParametersProperty invocationConnectivityParameters) Sets the value ofCfnConnectionProps.getInvocationConnectivityParameters()
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.OAUTH tokens are refreshed when a 401 or 407 response is returned.
- Returns:
this
-
authParameters
Sets the value ofCfnConnectionProps.getAuthParameters()
- Parameters:
authParameters
- The authorization parameters to use to authorize with the endpoint. You must include only authorization parameters for theAuthorizationType
you specify.- Returns:
this
-
authParameters
@Stability(Stable) public CfnConnectionProps.Builder authParameters(CfnConnection.AuthParametersProperty authParameters) Sets the value ofCfnConnectionProps.getAuthParameters()
- Parameters:
authParameters
- The authorization parameters to use to authorize with the endpoint. You must include only authorization parameters for theAuthorizationType
you specify.- Returns:
this
-
description
Sets the value ofCfnConnectionProps.getDescription()
- Parameters:
description
- A description for the connection to create.- Returns:
this
-
invocationConnectivityParameters
@Stability(Stable) public CfnConnectionProps.Builder invocationConnectivityParameters(IResolvable invocationConnectivityParameters) Sets the value ofCfnConnectionProps.getInvocationConnectivityParameters()
- Parameters:
invocationConnectivityParameters
- For connections to private APIs, the parameters to use for invoking the API. For more information, see Connecting to private APIs in the Amazon EventBridge User Guide .- Returns:
this
-
invocationConnectivityParameters
@Stability(Stable) public CfnConnectionProps.Builder invocationConnectivityParameters(CfnConnection.InvocationConnectivityParametersProperty invocationConnectivityParameters) Sets the value ofCfnConnectionProps.getInvocationConnectivityParameters()
- Parameters:
invocationConnectivityParameters
- For connections to private APIs, the parameters to use for invoking the API. For more information, see Connecting to private APIs in the Amazon EventBridge User Guide .- 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
-