Skip to content

Commit 069fa5f

Browse files
authored
Update CreateInstanceExample.java
Fix for #120
1 parent 4eaad3f commit 069fa5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bmc-examples/src/main/java/CreateInstanceExample.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,9 @@ public static void addInternetGatewayToRouteTable(
288288
List<RouteRule> routeRules = new ArrayList<RouteRule>();
289289
RouteRule internetAccessRoute =
290290
RouteRule.builder()
291-
.cidrBlock("0.0.0.0/0")
292-
.destination(internetGateway.getId())
291+
.destination("0.0.0.0/0")
292+
.destinationType(RouteRule.DestinationType.CidrBlock)
293+
.networkEntityId(internetGateway.getId())
293294
.build();
294295
routeRules.add(internetAccessRoute);
295296

0 commit comments

Comments
 (0)