Class CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty>
- Enclosing interface:
CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty
@Stability(Stable)
public static final class CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachmentId(String attachmentId) build()Builds the configured instance.destinationCidr(String destinationCidr) prefixListId(String prefixListId) resourceId(String resourceId) resourceType(String resourceType) routeOrigin(String routeOrigin)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachmentId
@Stability(Stable) public CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.Builder attachmentId(String attachmentId) Sets the value ofCfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.getAttachmentId()- Parameters:
attachmentId- The ID of the route attachment.- Returns:
this
-
destinationCidr
@Stability(Stable) public CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.Builder destinationCidr(String destinationCidr) Sets the value ofCfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.getDestinationCidr()- Parameters:
destinationCidr- The CIDR block used for destination matches.- Returns:
this
-
prefixListId
@Stability(Stable) public CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.Builder prefixListId(String prefixListId) Sets the value ofCfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.getPrefixListId()- Parameters:
prefixListId- The ID of the prefix list.- Returns:
this
-
resourceId
@Stability(Stable) public CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.Builder resourceId(String resourceId) - Parameters:
resourceId- The ID of the resource for the route attachment.- Returns:
this
-
resourceType
@Stability(Stable) public CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.Builder resourceType(String resourceType) Sets the value ofCfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.getResourceType()- Parameters:
resourceType- The resource type for the route attachment.- Returns:
this
-
routeOrigin
@Stability(Stable) public CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.Builder routeOrigin(String routeOrigin) - Parameters:
routeOrigin- The route origin. The following are the possible values:.- static
- propagated
- Returns:
this
-
state
@Stability(Stable) public CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty.Builder state(String state) - Parameters:
state- The state of the route.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty>- Returns:
- a new instance of
CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty - Throws:
NullPointerException- if any required attribute was not provided
-