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