Package com.ibm.cloud.is.vpc.v1.model
Class RoutingTablePatch.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.RoutingTablePatch.Builder
-
- Enclosing class:
- RoutingTablePatch
public static class RoutingTablePatch.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoutingTablePatch.Builder
acceptRoutesFrom(List<ResourceFilter> acceptRoutesFrom)
Set the acceptRoutesFrom.RoutingTablePatch.Builder
addAcceptRoutesFrom(ResourceFilter acceptRoutesFrom)
Adds a new element to acceptRoutesFrom.RoutingTablePatch.Builder
addAdvertiseRoutesTo(String advertiseRoutesTo)
Adds a new element to advertiseRoutesTo.RoutingTablePatch.Builder
advertiseRoutesTo(List<String> advertiseRoutesTo)
Set the advertiseRoutesTo.RoutingTablePatch
build()
Builds a RoutingTablePatch.RoutingTablePatch.Builder
name(String name)
Set the name.RoutingTablePatch.Builder
routeDirectLinkIngress(Boolean routeDirectLinkIngress)
Set the routeDirectLinkIngress.RoutingTablePatch.Builder
routeInternetIngress(Boolean routeInternetIngress)
Set the routeInternetIngress.RoutingTablePatch.Builder
routeTransitGatewayIngress(Boolean routeTransitGatewayIngress)
Set the routeTransitGatewayIngress.RoutingTablePatch.Builder
routeVpcZoneIngress(Boolean routeVpcZoneIngress)
Set the routeVpcZoneIngress.
-
-
-
Method Detail
-
build
public RoutingTablePatch build()
Builds a RoutingTablePatch.- Returns:
- the new RoutingTablePatch instance
-
addAcceptRoutesFrom
public RoutingTablePatch.Builder addAcceptRoutesFrom(ResourceFilter acceptRoutesFrom)
Adds a new element to acceptRoutesFrom.- Parameters:
acceptRoutesFrom
- the new element to be added- Returns:
- the RoutingTablePatch builder
-
addAdvertiseRoutesTo
public RoutingTablePatch.Builder addAdvertiseRoutesTo(String advertiseRoutesTo)
Adds a new element to advertiseRoutesTo.- Parameters:
advertiseRoutesTo
- the new element to be added- Returns:
- the RoutingTablePatch builder
-
acceptRoutesFrom
public RoutingTablePatch.Builder acceptRoutesFrom(List<ResourceFilter> acceptRoutesFrom)
Set the acceptRoutesFrom. Existing acceptRoutesFrom will be replaced.- Parameters:
acceptRoutesFrom
- the acceptRoutesFrom- Returns:
- the RoutingTablePatch builder
-
advertiseRoutesTo
public RoutingTablePatch.Builder advertiseRoutesTo(List<String> advertiseRoutesTo)
Set the advertiseRoutesTo. Existing advertiseRoutesTo will be replaced.- Parameters:
advertiseRoutesTo
- the advertiseRoutesTo- Returns:
- the RoutingTablePatch builder
-
name
public RoutingTablePatch.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the RoutingTablePatch builder
-
routeDirectLinkIngress
public RoutingTablePatch.Builder routeDirectLinkIngress(Boolean routeDirectLinkIngress)
Set the routeDirectLinkIngress.- Parameters:
routeDirectLinkIngress
- the routeDirectLinkIngress- Returns:
- the RoutingTablePatch builder
-
routeInternetIngress
public RoutingTablePatch.Builder routeInternetIngress(Boolean routeInternetIngress)
Set the routeInternetIngress.- Parameters:
routeInternetIngress
- the routeInternetIngress- Returns:
- the RoutingTablePatch builder
-
routeTransitGatewayIngress
public RoutingTablePatch.Builder routeTransitGatewayIngress(Boolean routeTransitGatewayIngress)
Set the routeTransitGatewayIngress.- Parameters:
routeTransitGatewayIngress
- the routeTransitGatewayIngress- Returns:
- the RoutingTablePatch builder
-
routeVpcZoneIngress
public RoutingTablePatch.Builder routeVpcZoneIngress(Boolean routeVpcZoneIngress)
Set the routeVpcZoneIngress.- Parameters:
routeVpcZoneIngress
- the routeVpcZoneIngress- Returns:
- the RoutingTablePatch builder
-
-