Class ConnectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.ConnectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ConnectionProps>
- Enclosing interface:
ConnectionProps
@Stability(Stable)
public static final class ConnectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<ConnectionProps>
A builder for
ConnectionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthorization
(Authorization authorization) Sets the value ofConnectionProps.getAuthorization()
bodyParameters
(Map<String, ? extends HttpParameter> bodyParameters) Sets the value ofConnectionProps.getBodyParameters()
build()
Builds the configured instance.connectionName
(String connectionName) Sets the value ofConnectionProps.getConnectionName()
description
(String description) Sets the value ofConnectionProps.getDescription()
headerParameters
(Map<String, ? extends HttpParameter> headerParameters) Sets the value ofConnectionProps.getHeaderParameters()
queryStringParameters
(Map<String, ? extends HttpParameter> queryStringParameters) Sets the value ofConnectionProps.getQueryStringParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorization
Sets the value ofConnectionProps.getAuthorization()
- Parameters:
authorization
- The authorization type for the connection. This parameter is required.- Returns:
this
-
bodyParameters
@Stability(Stable) public ConnectionProps.Builder bodyParameters(Map<String, ? extends HttpParameter> bodyParameters) Sets the value ofConnectionProps.getBodyParameters()
- Parameters:
bodyParameters
- Additional string parameters to add to the invocation bodies.- Returns:
this
-
connectionName
Sets the value ofConnectionProps.getConnectionName()
- Parameters:
connectionName
- The name of the connection.- Returns:
this
-
description
Sets the value ofConnectionProps.getDescription()
- Parameters:
description
- The name of the connection.- Returns:
this
-
headerParameters
@Stability(Stable) public ConnectionProps.Builder headerParameters(Map<String, ? extends HttpParameter> headerParameters) Sets the value ofConnectionProps.getHeaderParameters()
- Parameters:
headerParameters
- Additional string parameters to add to the invocation headers.- Returns:
this
-
queryStringParameters
@Stability(Stable) public ConnectionProps.Builder queryStringParameters(Map<String, ? extends HttpParameter> queryStringParameters) Sets the value ofConnectionProps.getQueryStringParameters()
- Parameters:
queryStringParameters
- Additional string parameters to add to the invocation query strings.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ConnectionProps>
- Returns:
- a new instance of
ConnectionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-