Class CreateVpcRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.CreateVpcRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateVpcRequest>
,Serializable
,Cloneable
public class CreateVpcRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateVpcRequest>
Contains the parameters for CreateVpc.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateVpcRequest()
Default constructor for CreateVpcRequest object.CreateVpcRequest(String cidrBlock)
Constructs a new CreateVpcRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateVpcRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getCidrBlock()
The network range for the VPC, in CIDR notation.Request<CreateVpcRequest>
getDryRunRequest()
This method is intended for internal use only.String
getInstanceTenancy()
The tenancy options for instances launched into the VPC.int
hashCode()
void
setCidrBlock(String cidrBlock)
The network range for the VPC, in CIDR notation.void
setInstanceTenancy(Tenancy instanceTenancy)
The tenancy options for instances launched into the VPC.void
setInstanceTenancy(String instanceTenancy)
The tenancy options for instances launched into the VPC.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateVpcRequest
withCidrBlock(String cidrBlock)
The network range for the VPC, in CIDR notation.CreateVpcRequest
withInstanceTenancy(Tenancy instanceTenancy)
The tenancy options for instances launched into the VPC.CreateVpcRequest
withInstanceTenancy(String instanceTenancy)
The tenancy options for instances launched into the VPC.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Constructor Detail
-
CreateVpcRequest
public CreateVpcRequest()
Default constructor for CreateVpcRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
CreateVpcRequest
public CreateVpcRequest(String cidrBlock)
Constructs a new CreateVpcRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
cidrBlock
- The network range for the VPC, in CIDR notation. For example,10.0.0.0/16
.
-
-
Method Detail
-
setCidrBlock
public void setCidrBlock(String cidrBlock)
The network range for the VPC, in CIDR notation. For example,
10.0.0.0/16
.- Parameters:
cidrBlock
- The network range for the VPC, in CIDR notation. For example,10.0.0.0/16
.
-
getCidrBlock
public String getCidrBlock()
The network range for the VPC, in CIDR notation. For example,
10.0.0.0/16
.- Returns:
- The network range for the VPC, in CIDR notation. For example,
10.0.0.0/16
.
-
withCidrBlock
public CreateVpcRequest withCidrBlock(String cidrBlock)
The network range for the VPC, in CIDR notation. For example,
10.0.0.0/16
.- Parameters:
cidrBlock
- The network range for the VPC, in CIDR notation. For example,10.0.0.0/16
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceTenancy
public void setInstanceTenancy(String instanceTenancy)
The tenancy options for instances launched into the VPC. For
default
, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. Fordedicated
, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy ofdedicated
orhost
into a dedicated tenancy VPC.Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- Parameters:
instanceTenancy
- The tenancy options for instances launched into the VPC. Fordefault
, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. Fordedicated
, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy ofdedicated
orhost
into a dedicated tenancy VPC.Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- See Also:
Tenancy
-
getInstanceTenancy
public String getInstanceTenancy()
The tenancy options for instances launched into the VPC. For
default
, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. Fordedicated
, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy ofdedicated
orhost
into a dedicated tenancy VPC.Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- Returns:
- The tenancy options for instances launched into the VPC. For
default
, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. Fordedicated
, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy ofdedicated
orhost
into a dedicated tenancy VPC.Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- See Also:
Tenancy
-
withInstanceTenancy
public CreateVpcRequest withInstanceTenancy(String instanceTenancy)
The tenancy options for instances launched into the VPC. For
default
, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. Fordedicated
, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy ofdedicated
orhost
into a dedicated tenancy VPC.Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- Parameters:
instanceTenancy
- The tenancy options for instances launched into the VPC. Fordefault
, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. Fordedicated
, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy ofdedicated
orhost
into a dedicated tenancy VPC.Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Tenancy
-
setInstanceTenancy
public void setInstanceTenancy(Tenancy instanceTenancy)
The tenancy options for instances launched into the VPC. For
default
, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. Fordedicated
, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy ofdedicated
orhost
into a dedicated tenancy VPC.Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- Parameters:
instanceTenancy
- The tenancy options for instances launched into the VPC. Fordefault
, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. Fordedicated
, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy ofdedicated
orhost
into a dedicated tenancy VPC.Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- See Also:
Tenancy
-
withInstanceTenancy
public CreateVpcRequest withInstanceTenancy(Tenancy instanceTenancy)
The tenancy options for instances launched into the VPC. For
default
, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. Fordedicated
, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy ofdedicated
orhost
into a dedicated tenancy VPC.Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- Parameters:
instanceTenancy
- The tenancy options for instances launched into the VPC. Fordefault
, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. Fordedicated
, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy ofdedicated
orhost
into a dedicated tenancy VPC.Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Tenancy
-
getDryRunRequest
public Request<CreateVpcRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<CreateVpcRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateVpcRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-