File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
volcengine-java-sdk-vpn/src/main/java/com/volcengine/vpn/examples Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1010import com .volcengine .vpn .VpnApi ;
1111import com .volcengine .vpn .model .*;
1212
13+ import static com .volcengine .vpn .model .CreateVpnGatewayRequest .PeriodUnitEnum .MONTH ;
14+
1315
1416public class TestCreateVpnGateway {
1517 public static void main (String [] args ) throws Exception {
@@ -28,7 +30,7 @@ public static void main(String[] args) throws Exception {
2830 createVpnGatewayRequest .setBillingType (1 );
2931 createVpnGatewayRequest .setDescription ("test" );
3032 createVpnGatewayRequest .setPeriod (1 );
31- createVpnGatewayRequest .setPeriodUnit ("Month" );
33+ createVpnGatewayRequest .setPeriodUnit (MONTH );
3234 createVpnGatewayRequest .setSubnetId ("subnet-2fewbgn7jbk0059gp67ap****" );
3335 createVpnGatewayRequest .setVpcId ("vpc-12bhs1ivo6p6o17q7y2x3****" );
3436 createVpnGatewayRequest .setVpnGatewayName ("test" );
You can’t perform that action at this time.
0 commit comments