@@ -26,6 +26,7 @@ public class CreateVpcRoutingTableOptions extends GenericModel {
26
26
protected List <ResourceFilter > acceptRoutesFrom ;
27
27
protected String name ;
28
28
protected Boolean routeDirectLinkIngress ;
29
+ protected Boolean routeInternetIngress ;
29
30
protected Boolean routeTransitGatewayIngress ;
30
31
protected Boolean routeVpcZoneIngress ;
31
32
protected List <RoutePrototype > routes ;
@@ -38,6 +39,7 @@ public static class Builder {
38
39
private List <ResourceFilter > acceptRoutesFrom ;
39
40
private String name ;
40
41
private Boolean routeDirectLinkIngress ;
42
+ private Boolean routeInternetIngress ;
41
43
private Boolean routeTransitGatewayIngress ;
42
44
private Boolean routeVpcZoneIngress ;
43
45
private List <RoutePrototype > routes ;
@@ -52,6 +54,7 @@ private Builder(CreateVpcRoutingTableOptions createVpcRoutingTableOptions) {
52
54
this .acceptRoutesFrom = createVpcRoutingTableOptions .acceptRoutesFrom ;
53
55
this .name = createVpcRoutingTableOptions .name ;
54
56
this .routeDirectLinkIngress = createVpcRoutingTableOptions .routeDirectLinkIngress ;
57
+ this .routeInternetIngress = createVpcRoutingTableOptions .routeInternetIngress ;
55
58
this .routeTransitGatewayIngress = createVpcRoutingTableOptions .routeTransitGatewayIngress ;
56
59
this .routeVpcZoneIngress = createVpcRoutingTableOptions .routeVpcZoneIngress ;
57
60
this .routes = createVpcRoutingTableOptions .routes ;
@@ -158,6 +161,17 @@ public Builder routeDirectLinkIngress(Boolean routeDirectLinkIngress) {
158
161
return this ;
159
162
}
160
163
164
+ /**
165
+ * Set the routeInternetIngress.
166
+ *
167
+ * @param routeInternetIngress the routeInternetIngress
168
+ * @return the CreateVpcRoutingTableOptions builder
169
+ */
170
+ public Builder routeInternetIngress (Boolean routeInternetIngress ) {
171
+ this .routeInternetIngress = routeInternetIngress ;
172
+ return this ;
173
+ }
174
+
161
175
/**
162
176
* Set the routeTransitGatewayIngress.
163
177
*
@@ -202,6 +216,7 @@ protected CreateVpcRoutingTableOptions(Builder builder) {
202
216
acceptRoutesFrom = builder .acceptRoutesFrom ;
203
217
name = builder .name ;
204
218
routeDirectLinkIngress = builder .routeDirectLinkIngress ;
219
+ routeInternetIngress = builder .routeInternetIngress ;
205
220
routeTransitGatewayIngress = builder .routeTransitGatewayIngress ;
206
221
routeVpcZoneIngress = builder .routeVpcZoneIngress ;
207
222
routes = builder .routes ;
@@ -257,36 +272,56 @@ public String name() {
257
272
* Gets the routeDirectLinkIngress.
258
273
*
259
274
* If set to `true`, this routing table will be used to route traffic that originates from [Direct
260
- * Link](https://cloud.ibm.com/docs/dl/ ) to this VPC. For this to succeed, the VPC must not already have a routing
261
- * table with this property set to `true`.
275
+ * Link](https://cloud.ibm.com/docs/dl) to this VPC. The VPC must not already have a routing table with this property
276
+ * set to `true`.
262
277
*
263
278
* Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of
264
279
* `deliver` are treated as `drop` unless the `next_hop` is an IP address bound to a network interface on a subnet in
265
280
* the route's `zone`. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP
266
281
* address or a VPN gateway connection, the packet will be dropped.
267
282
*
283
+ * If [Classic Access](https://cloud.ibm.com/docs/vpc?topic=vpc-setting-up-access-to-classic-infrastructure) is
284
+ * enabled for this VPC, and this property is set to `true`, its incoming traffic will also be routed according to
285
+ * this routing table.
286
+ *
268
287
* @return the routeDirectLinkIngress
269
288
*/
270
289
public Boolean routeDirectLinkIngress () {
271
290
return routeDirectLinkIngress ;
272
291
}
273
292
293
+ /**
294
+ * Gets the routeInternetIngress.
295
+ *
296
+ * If set to `true`, this routing table will be used to route traffic that originates from the internet. For this to
297
+ * succeed, the VPC must not already have a routing table with this property set to `true`.
298
+ *
299
+ * Incoming traffic will be routed according to the routing table with two exceptions:
300
+ * - Traffic destined for IP addresses associated with public gateways will not be
301
+ * subject to routes in this routing table.
302
+ * - Routes with an action of deliver are treated as drop unless the `next_hop` is an
303
+ * IP address bound to a network interface on a subnet in the route's `zone`.
304
+ * Therefore, if an incoming packet matches a route with a `next_hop` of an
305
+ * internet-bound IP address or a VPN gateway connection, the packet will be dropped.
306
+ *
307
+ * @return the routeInternetIngress
308
+ */
309
+ public Boolean routeInternetIngress () {
310
+ return routeInternetIngress ;
311
+ }
312
+
274
313
/**
275
314
* Gets the routeTransitGatewayIngress.
276
315
*
277
316
* If set to `true`, this routing table will be used to route traffic that originates from [Transit
278
- * Gateway](https://cloud.ibm.com/cloud /transit-gateway/ ) to this VPC. For this to succeed, the VPC must not already
279
- * have a routing table with this property set to `true`.
317
+ * Gateway](https://cloud.ibm.com/docs /transit-gateway) to this VPC. The VPC must not already have a routing table
318
+ * with this property set to `true`.
280
319
*
281
320
* Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of
282
321
* `deliver` are treated as `drop` unless the `next_hop` is an IP address bound to a network interface on a subnet in
283
322
* the route's `zone`. Therefore, if an incoming packet matches a route with a `next_hop` of an internet-bound IP
284
323
* address or a VPN gateway connection, the packet will be dropped.
285
324
*
286
- * If [Classic Access](https://cloud.ibm.com/docs/vpc?topic=vpc-setting-up-access-to-classic-infrastructure) is
287
- * enabled for this VPC, and this property is set to `true`, its incoming traffic will also be routed according to
288
- * this routing table.
289
- *
290
325
* @return the routeTransitGatewayIngress
291
326
*/
292
327
public Boolean routeTransitGatewayIngress () {
@@ -297,7 +332,7 @@ public Boolean routeTransitGatewayIngress() {
297
332
* Gets the routeVpcZoneIngress.
298
333
*
299
334
* If set to `true`, this routing table will be used to route traffic that originates from subnets in other zones in
300
- * this VPC. For this to succeed, the VPC must not already have a routing table with this property set to `true`.
335
+ * this VPC. The VPC must not already have a routing table with this property set to `true`.
301
336
*
302
337
* Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of
303
338
* `deliver` are treated as `drop` unless the `next_hop` is an IP address within the VPC's address prefix ranges.
0 commit comments