Class CfnVPCEndpointConnectionNotificationProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPCEndpointConnectionNotificationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCEndpointConnectionNotificationProps>
- Enclosing interface:
CfnVPCEndpointConnectionNotificationProps
@Stability(Stable)
public static final class CfnVPCEndpointConnectionNotificationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCEndpointConnectionNotificationProps>
A builder for
CfnVPCEndpointConnectionNotificationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.connectionEvents
(List<String> connectionEvents) Sets the value ofCfnVPCEndpointConnectionNotificationProps.getConnectionEvents()
connectionNotificationArn
(String connectionNotificationArn) Sets the value ofCfnVPCEndpointConnectionNotificationProps.getConnectionNotificationArn()
Sets the value ofCfnVPCEndpointConnectionNotificationProps.getServiceId()
vpcEndpointId
(String vpcEndpointId) Sets the value ofCfnVPCEndpointConnectionNotificationProps.getVpcEndpointId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionEvents
@Stability(Stable) public CfnVPCEndpointConnectionNotificationProps.Builder connectionEvents(List<String> connectionEvents) Sets the value ofCfnVPCEndpointConnectionNotificationProps.getConnectionEvents()
- Parameters:
connectionEvents
- The endpoint events for which to receive notifications. This parameter is required. Valid values areAccept
,Connect
,Delete
, andReject
.- Returns:
this
-
connectionNotificationArn
@Stability(Stable) public CfnVPCEndpointConnectionNotificationProps.Builder connectionNotificationArn(String connectionNotificationArn) Sets the value ofCfnVPCEndpointConnectionNotificationProps.getConnectionNotificationArn()
- Parameters:
connectionNotificationArn
- The ARN of the SNS topic for the notifications. This parameter is required.- Returns:
this
-
serviceId
@Stability(Stable) public CfnVPCEndpointConnectionNotificationProps.Builder serviceId(String serviceId) Sets the value ofCfnVPCEndpointConnectionNotificationProps.getServiceId()
- Parameters:
serviceId
- The ID of the endpoint service.- Returns:
this
-
vpcEndpointId
@Stability(Stable) public CfnVPCEndpointConnectionNotificationProps.Builder vpcEndpointId(String vpcEndpointId) Sets the value ofCfnVPCEndpointConnectionNotificationProps.getVpcEndpointId()
- Parameters:
vpcEndpointId
- The ID of the endpoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVPCEndpointConnectionNotificationProps>
- Returns:
- a new instance of
CfnVPCEndpointConnectionNotificationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-