com.amazonaws.services.ec2.model
Class CreateSubnetRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateSubnetRequest

public class CreateSubnetRequest
extends AmazonWebServiceRequest


Constructor Summary
CreateSubnetRequest()
           
 
Method Summary
 String getAvailabilityZone()
          The Availability Zone to create the subnet in.
 String getCidrBlock()
          The CIDR block the subnet is to cover.
 String getVpcId()
          The ID of the VPC to create the subnet in.
 void setAvailabilityZone(String availabilityZone)
          The Availability Zone to create the subnet in.
 void setCidrBlock(String cidrBlock)
          The CIDR block the subnet is to cover.
 void setVpcId(String vpcId)
          The ID of the VPC to create the subnet in.
 String toString()
           
 CreateSubnetRequest withAvailabilityZone(String availabilityZone)
          The Availability Zone to create the subnet in.
 CreateSubnetRequest withCidrBlock(String cidrBlock)
          The CIDR block the subnet is to cover.
 CreateSubnetRequest withVpcId(String vpcId)
          The ID of the VPC to create the subnet in.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateSubnetRequest

public CreateSubnetRequest()
Method Detail

getVpcId

public String getVpcId()
The ID of the VPC to create the subnet in.

Returns:
The ID of the VPC to create the subnet in.

setVpcId

public void setVpcId(String vpcId)
The ID of the VPC to create the subnet in.

Parameters:
vpcId - The ID of the VPC to create the subnet in.

withVpcId

public CreateSubnetRequest withVpcId(String vpcId)
The ID of the VPC to create the subnet in.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcId - The ID of the VPC to create the subnet in.
Returns:
A reference to this updated object so that method calls can be chained together.

getCidrBlock

public String getCidrBlock()
The CIDR block the subnet is to cover.

Returns:
The CIDR block the subnet is to cover.

setCidrBlock

public void setCidrBlock(String cidrBlock)
The CIDR block the subnet is to cover.

Parameters:
cidrBlock - The CIDR block the subnet is to cover.

withCidrBlock

public CreateSubnetRequest withCidrBlock(String cidrBlock)
The CIDR block the subnet is to cover.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cidrBlock - The CIDR block the subnet is to cover.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZone

public String getAvailabilityZone()
The Availability Zone to create the subnet in.

Returns:
The Availability Zone to create the subnet in.

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
The Availability Zone to create the subnet in.

Parameters:
availabilityZone - The Availability Zone to create the subnet in.

withAvailabilityZone

public CreateSubnetRequest withAvailabilityZone(String availabilityZone)
The Availability Zone to create the subnet in.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone - The Availability Zone to create the subnet in.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.