List of usage examples for com.amazonaws.services.ec2.model CreateVpcRequest getCidrBlock
public String getCidrBlock()
The IPv4 network range for the VPC, in CIDR notation.
From source file:web.component.impl.aws.AWSEC2Impl.java
@Override public CreateVpcResult createVpc(CreateVpcRequest request) { if (request.getCidrBlock() == null || request.getCidrBlock().isEmpty()) throw new IllegalArgumentException("CIDR block not specified."); if (request.getInstanceTenancy() == null || request.getInstanceTenancy().isEmpty()) throw new IllegalArgumentException("Instance tenancy not specified."); return awsHttpClient.createVpc(request); }