Package org.jclouds.aws.ec2.options
Class CreateSubnetOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.ec2.options.internal.BaseEC2RequestOptions
-
- org.jclouds.aws.ec2.options.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"));
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateSubnetOptions.Builder
-
Field Summary
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description CreateSubnetOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSubnetOptions
availabilityZone(String availabilityZone)
The Availability Zone for the subnet.CreateSubnetOptions
dryRun()
String
getAvailabilityZone()
boolean
isDryRun()
-
Methods inherited from class org.jclouds.ec2.options.internal.BaseEC2RequestOptions
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader
-
-
-
-
Method Detail
-
availabilityZone
public CreateSubnetOptions availabilityZone(String availabilityZone)
The Availability Zone for the subnet.
-
getAvailabilityZone
public String getAvailabilityZone()
-
dryRun
public CreateSubnetOptions dryRun()
-
isDryRun
public boolean isDryRun()
-
-