private CreateSubnetResponseType createSubnet ( final String vpcId , final String cidrBlock ) { CreateSubnetResponseType ret = new CreateSubnetResponseType ( ) ; ret . setRequestId ( UUID . randomUUID ( ) . toString ( ) ) ; MockSubnet mockSubnet = mockSubnetController . createSubnet ( cidrBlock , vpcId ) ; SubnetType subnetType = new SubnetType ( ) ; subnetType . setVpcId ( mockSubnet . getVpcId ( ) ) ; subnetType . setSubnetId ( mockSubnet . getSubnetId ( ) ) ; ret . setSubnet ( subnetType ) ; return ret ; }
Handles createSubnet request to create Subnet and returns response with a subnet .