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