Class ConnectionGroupReference.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.ConnectionGroupReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ConnectionGroupReference>
- Enclosing interface:
ConnectionGroupReference
@Stability(Stable)
public static final class ConnectionGroupReference.Builder
extends Object
implements software.amazon.jsii.Builder<ConnectionGroupReference>
A builder for
ConnectionGroupReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.connectionGroupArn
(String connectionGroupArn) Sets the value ofConnectionGroupReference.getConnectionGroupArn()
connectionGroupId
(String connectionGroupId) Sets the value ofConnectionGroupReference.getConnectionGroupId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionGroupArn
@Stability(Stable) public ConnectionGroupReference.Builder connectionGroupArn(String connectionGroupArn) Sets the value ofConnectionGroupReference.getConnectionGroupArn()
- Parameters:
connectionGroupArn
- The ARN of the ConnectionGroup resource. This parameter is required.- Returns:
this
-
connectionGroupId
@Stability(Stable) public ConnectionGroupReference.Builder connectionGroupId(String connectionGroupId) Sets the value ofConnectionGroupReference.getConnectionGroupId()
- Parameters:
connectionGroupId
- The Id of the ConnectionGroup resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ConnectionGroupReference>
- Returns:
- a new instance of
ConnectionGroupReference
- Throws:
NullPointerException
- if any required attribute was not provided
-