Class CfnTopicRuleDestination.VpcDestinationPropertiesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRuleDestination.VpcDestinationPropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRuleDestination.VpcDestinationPropertiesProperty>
- Enclosing interface:
CfnTopicRuleDestination.VpcDestinationPropertiesProperty
@Stability(Stable)
public static final class CfnTopicRuleDestination.VpcDestinationPropertiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRuleDestination.VpcDestinationPropertiesProperty>
A builder for
CfnTopicRuleDestination.VpcDestinationPropertiesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTopicRuleDestination.VpcDestinationPropertiesProperty.getRoleArn()
securityGroups
(List<String> securityGroups) Sets the value ofCfnTopicRuleDestination.VpcDestinationPropertiesProperty.getSubnetIds()
Sets the value ofCfnTopicRuleDestination.VpcDestinationPropertiesProperty.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
@Stability(Stable) public CfnTopicRuleDestination.VpcDestinationPropertiesProperty.Builder roleArn(String roleArn) Sets the value ofCfnTopicRuleDestination.VpcDestinationPropertiesProperty.getRoleArn()
- Parameters:
roleArn
- The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).- Returns:
this
-
securityGroups
@Stability(Stable) public CfnTopicRuleDestination.VpcDestinationPropertiesProperty.Builder securityGroups(List<String> securityGroups) - Parameters:
securityGroups
- The security groups of the VPC destination.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnTopicRuleDestination.VpcDestinationPropertiesProperty.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnTopicRuleDestination.VpcDestinationPropertiesProperty.getSubnetIds()
- Parameters:
subnetIds
- The subnet IDs of the VPC destination.- Returns:
this
-
vpcId
@Stability(Stable) public CfnTopicRuleDestination.VpcDestinationPropertiesProperty.Builder vpcId(String vpcId) Sets the value ofCfnTopicRuleDestination.VpcDestinationPropertiesProperty.getVpcId()
- Parameters:
vpcId
- The ID of the VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRuleDestination.VpcDestinationPropertiesProperty>
- Returns:
- a new instance of
CfnTopicRuleDestination.VpcDestinationPropertiesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-