Class CreateSubnetOptions

  • All Implemented Interfaces:
    HttpRequestOptions

    public class CreateSubnetOptions
    extends BaseEC2RequestOptions
    Contains options supported in the Form API for the CreateSubnet operation.

    Usage

    The recommended way to instantiate a CreateSubnetOptions object is to statically import CreateSubnetOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):

    import static org.jclouds.aws.ec2.options.CreateSubnetOptions.Builder.*

    AWSEC2Api connection = // get connection String vpcId = "vpc-1a2b3c4d"; String cidrBlock = "10.0.1.0/24"; group = connection.getAWSSubnetApi().createSubnetInRegion(vpcId, cirdBlock, availabilityZone("us-east-1a"));

    See Also:
    • Constructor Detail

      • CreateSubnetOptions

        public CreateSubnetOptions()
    • Method Detail

      • availabilityZone

        public CreateSubnetOptions availabilityZone​(String availabilityZone)
        The Availability Zone for the subnet.
      • getAvailabilityZone

        public String getAvailabilityZone()
      • isDryRun

        public boolean isDryRun()