Class NetworkRoute.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.NetworkRoute.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkRoute>
- Enclosing interface:
NetworkRoute
@Stability(Experimental)
public static final class NetworkRoute.Builder
extends Object
implements software.amazon.jsii.Builder<NetworkRoute>
A builder for
NetworkRoute-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofNetworkRoute.getCidr()Sets the value ofNetworkRoute.getGateway()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidr
Sets the value ofNetworkRoute.getCidr()- Parameters:
cidr- The CIDR block for the route. This parameter is required.- Returns:
this
-
gateway
Sets the value ofNetworkRoute.getGateway()- Parameters:
gateway- The gateway for the route. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkRoute>- Returns:
- a new instance of
NetworkRoute - Throws:
NullPointerException- if any required attribute was not provided
-