Class CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty>
- Enclosing interface:
- CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty
@Stability(Stable)
public static final class CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationCidr(String destinationCidr) destinationPrefixListId(String destinationPrefixListId) egressOnlyInternetGatewayId(String egressOnlyInternetGatewayId) instanceId(String instanceId) natGatewayId(String natGatewayId) networkInterfaceId(String networkInterfaceId) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.getOrigin()Sets the value ofCfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.getState()transitGatewayId(String transitGatewayId) vpcPeeringConnectionId(String vpcPeeringConnectionId)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationCidr
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder destinationCidr(String destinationCidr) - Parameters:
destinationCidr- The destination IPv4 address, in CIDR notation.- Returns:
this
-
destinationPrefixListId
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder destinationPrefixListId(String destinationPrefixListId) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.getDestinationPrefixListId()- Parameters:
destinationPrefixListId- The prefix of the AWS service .- Returns:
this
-
egressOnlyInternetGatewayId
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder egressOnlyInternetGatewayId(String egressOnlyInternetGatewayId) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.getEgressOnlyInternetGatewayId()- Parameters:
egressOnlyInternetGatewayId- The ID of an egress-only internet gateway.- Returns:
this
-
gatewayId
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder gatewayId(String gatewayId) - Parameters:
gatewayId- The ID of the gateway, such as an internet gateway or virtual private gateway.- Returns:
this
-
instanceId
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder instanceId(String instanceId) - Parameters:
instanceId- The ID of the instance, such as a NAT instance.- Returns:
this
-
natGatewayId
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder natGatewayId(String natGatewayId) - Parameters:
natGatewayId- The ID of a NAT gateway.- Returns:
this
-
networkInterfaceId
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder networkInterfaceId(String networkInterfaceId) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.getNetworkInterfaceId()- Parameters:
networkInterfaceId- The ID of a network interface.- Returns:
this
-
origin
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder origin(String origin) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.getOrigin()- Parameters:
origin- Describes how the route was created. The following are the possible values:.- CreateRouteTable - The route was automatically created when the route table was created.
- CreateRoute - The route was manually added to the route table.
- EnableVgwRoutePropagation - The route was propagated by route propagation.
- Returns:
this
-
state
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder state(String state) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.getState()- Parameters:
state- The state. The following are the possible values:.- active
- blackhole
- Returns:
this
-
transitGatewayId
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder transitGatewayId(String transitGatewayId) - Parameters:
transitGatewayId- The ID of a transit gateway.- Returns:
this
-
vpcPeeringConnectionId
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.Builder vpcPeeringConnectionId(String vpcPeeringConnectionId) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty.getVpcPeeringConnectionId()- Parameters:
vpcPeeringConnectionId- The ID of a VPC peering connection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty>- Returns:
- a new instance of
CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty - Throws:
NullPointerException- if any required attribute was not provided
-