Package com.ibm.cloud.is.vpc.v1.model
Class CreateVpcRoutingTableRouteOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateVpcRoutingTableRouteOptions.Builder
-
- Enclosing class:
- CreateVpcRoutingTableRouteOptions
public static class CreateVpcRoutingTableRouteOptions.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateVpcRoutingTableRouteOptions.Builder
action(String action)
Set the action.CreateVpcRoutingTableRouteOptions.Builder
advertise(Boolean advertise)
Set the advertise.CreateVpcRoutingTableRouteOptions
build()
Builds a CreateVpcRoutingTableRouteOptions.CreateVpcRoutingTableRouteOptions.Builder
destination(String destination)
Set the destination.CreateVpcRoutingTableRouteOptions.Builder
name(String name)
Set the name.CreateVpcRoutingTableRouteOptions.Builder
nextHop(RouteNextHopPrototype nextHop)
Set the nextHop.CreateVpcRoutingTableRouteOptions.Builder
priority(long priority)
Set the priority.CreateVpcRoutingTableRouteOptions.Builder
routingTableId(String routingTableId)
Set the routingTableId.CreateVpcRoutingTableRouteOptions.Builder
vpcId(String vpcId)
Set the vpcId.CreateVpcRoutingTableRouteOptions.Builder
zone(ZoneIdentity zone)
Set the zone.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String vpcId, String routingTableId, String destination, ZoneIdentity zone)
Instantiates a new builder with required properties.- Parameters:
vpcId
- the vpcIdroutingTableId
- the routingTableIddestination
- the destinationzone
- the zone
-
-
Method Detail
-
build
public CreateVpcRoutingTableRouteOptions build()
Builds a CreateVpcRoutingTableRouteOptions.- Returns:
- the new CreateVpcRoutingTableRouteOptions instance
-
vpcId
public CreateVpcRoutingTableRouteOptions.Builder vpcId(String vpcId)
Set the vpcId.- Parameters:
vpcId
- the vpcId- Returns:
- the CreateVpcRoutingTableRouteOptions builder
-
routingTableId
public CreateVpcRoutingTableRouteOptions.Builder routingTableId(String routingTableId)
Set the routingTableId.- Parameters:
routingTableId
- the routingTableId- Returns:
- the CreateVpcRoutingTableRouteOptions builder
-
destination
public CreateVpcRoutingTableRouteOptions.Builder destination(String destination)
Set the destination.- Parameters:
destination
- the destination- Returns:
- the CreateVpcRoutingTableRouteOptions builder
-
zone
public CreateVpcRoutingTableRouteOptions.Builder zone(ZoneIdentity zone)
Set the zone.- Parameters:
zone
- the zone- Returns:
- the CreateVpcRoutingTableRouteOptions builder
-
action
public CreateVpcRoutingTableRouteOptions.Builder action(String action)
Set the action.- Parameters:
action
- the action- Returns:
- the CreateVpcRoutingTableRouteOptions builder
-
advertise
public CreateVpcRoutingTableRouteOptions.Builder advertise(Boolean advertise)
Set the advertise.- Parameters:
advertise
- the advertise- Returns:
- the CreateVpcRoutingTableRouteOptions builder
-
name
public CreateVpcRoutingTableRouteOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateVpcRoutingTableRouteOptions builder
-
nextHop
public CreateVpcRoutingTableRouteOptions.Builder nextHop(RouteNextHopPrototype nextHop)
Set the nextHop.- Parameters:
nextHop
- the nextHop- Returns:
- the CreateVpcRoutingTableRouteOptions builder
-
priority
public CreateVpcRoutingTableRouteOptions.Builder priority(long priority)
Set the priority.- Parameters:
priority
- the priority- Returns:
- the CreateVpcRoutingTableRouteOptions builder
-
-