Package com.ibm.cloud.is.vpc.v1.model
Class CreateVpcRoutingTableOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateVpcRoutingTableOptions.Builder
-
- Enclosing class:
- CreateVpcRoutingTableOptions
public static class CreateVpcRoutingTableOptions.Builder extends Object
Builder.
-
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String vpcId)
Instantiates a new builder with required properties.- Parameters:
vpcId
- the vpcId
-
-
Method Detail
-
build
public CreateVpcRoutingTableOptions build()
Builds a CreateVpcRoutingTableOptions.- Returns:
- the new CreateVpcRoutingTableOptions instance
-
addAcceptRoutesFrom
public CreateVpcRoutingTableOptions.Builder addAcceptRoutesFrom(ResourceFilter acceptRoutesFrom)
Adds a new element to acceptRoutesFrom.- Parameters:
acceptRoutesFrom
- the new element to be added- Returns:
- the CreateVpcRoutingTableOptions builder
-
addAdvertiseRoutesTo
public CreateVpcRoutingTableOptions.Builder addAdvertiseRoutesTo(String advertiseRoutesTo)
Adds a new element to advertiseRoutesTo.- Parameters:
advertiseRoutesTo
- the new element to be added- Returns:
- the CreateVpcRoutingTableOptions builder
-
addRoutes
public CreateVpcRoutingTableOptions.Builder addRoutes(RoutePrototype routes)
Adds a new element to routes.- Parameters:
routes
- the new element to be added- Returns:
- the CreateVpcRoutingTableOptions builder
-
vpcId
public CreateVpcRoutingTableOptions.Builder vpcId(String vpcId)
Set the vpcId.- Parameters:
vpcId
- the vpcId- Returns:
- the CreateVpcRoutingTableOptions builder
-
acceptRoutesFrom
public CreateVpcRoutingTableOptions.Builder acceptRoutesFrom(List<ResourceFilter> acceptRoutesFrom)
Set the acceptRoutesFrom. Existing acceptRoutesFrom will be replaced.- Parameters:
acceptRoutesFrom
- the acceptRoutesFrom- Returns:
- the CreateVpcRoutingTableOptions builder
-
advertiseRoutesTo
public CreateVpcRoutingTableOptions.Builder advertiseRoutesTo(List<String> advertiseRoutesTo)
Set the advertiseRoutesTo. Existing advertiseRoutesTo will be replaced.- Parameters:
advertiseRoutesTo
- the advertiseRoutesTo- Returns:
- the CreateVpcRoutingTableOptions builder
-
name
public CreateVpcRoutingTableOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateVpcRoutingTableOptions builder
-
routeDirectLinkIngress
public CreateVpcRoutingTableOptions.Builder routeDirectLinkIngress(Boolean routeDirectLinkIngress)
Set the routeDirectLinkIngress.- Parameters:
routeDirectLinkIngress
- the routeDirectLinkIngress- Returns:
- the CreateVpcRoutingTableOptions builder
-
routeInternetIngress
public CreateVpcRoutingTableOptions.Builder routeInternetIngress(Boolean routeInternetIngress)
Set the routeInternetIngress.- Parameters:
routeInternetIngress
- the routeInternetIngress- Returns:
- the CreateVpcRoutingTableOptions builder
-
routeTransitGatewayIngress
public CreateVpcRoutingTableOptions.Builder routeTransitGatewayIngress(Boolean routeTransitGatewayIngress)
Set the routeTransitGatewayIngress.- Parameters:
routeTransitGatewayIngress
- the routeTransitGatewayIngress- Returns:
- the CreateVpcRoutingTableOptions builder
-
routeVpcZoneIngress
public CreateVpcRoutingTableOptions.Builder routeVpcZoneIngress(Boolean routeVpcZoneIngress)
Set the routeVpcZoneIngress.- Parameters:
routeVpcZoneIngress
- the routeVpcZoneIngress- Returns:
- the CreateVpcRoutingTableOptions builder
-
routes
public CreateVpcRoutingTableOptions.Builder routes(List<RoutePrototype> routes)
Set the routes. Existing routes will be replaced.- Parameters:
routes
- the routes- Returns:
- the CreateVpcRoutingTableOptions builder
-
-