Class ConnectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.alpha.ConnectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ConnectionProps>
- Enclosing interface:
ConnectionProps
@Stability(Experimental)
public static final class ConnectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<ConnectionProps>
A builder for
ConnectionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.connectionName(String connectionName) Sets the value ofConnectionOptions.getConnectionName()description(String description) Sets the value ofConnectionOptions.getDescription()matchCriteria(List<String> matchCriteria) Sets the value ofConnectionOptions.getMatchCriteria()properties(Map<String, String> properties) Sets the value ofConnectionOptions.getProperties()securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofConnectionOptions.getSecurityGroups()Sets the value ofConnectionOptions.getSubnet()type(ConnectionType type) Sets the value ofConnectionProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofConnectionProps.getType()- Parameters:
type- The type of the connection. This parameter is required.- Returns:
this
-
connectionName
Sets the value ofConnectionOptions.getConnectionName()- Parameters:
connectionName- The name of the connection.- Returns:
this
-
description
Sets the value ofConnectionOptions.getDescription()- Parameters:
description- The description of the connection.- Returns:
this
-
matchCriteria
Sets the value ofConnectionOptions.getMatchCriteria()- Parameters:
matchCriteria- A list of criteria that can be used in selecting this connection. This is useful for filtering the results of https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/get-connections.html- Returns:
this
-
properties
Sets the value ofConnectionOptions.getProperties()- Parameters:
properties- Key-Value pairs that define parameters for the connection.- Returns:
this
-
securityGroups
@Stability(Experimental) public ConnectionProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofConnectionOptions.getSecurityGroups()- Parameters:
securityGroups- The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC.- Returns:
this
-
subnet
Sets the value ofConnectionOptions.getSubnet()- Parameters:
subnet- The VPC subnet to connect to resources within a VPC. See more at https://docs.aws.amazon.com/glue/latest/dg/start-connecting.html.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ConnectionProps>- Returns:
- a new instance of
ConnectionProps - Throws:
NullPointerException- if any required attribute was not provided
-