public class CreateVpcRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CreateVpcRequest>
Contains the parameters for CreateVpc.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cidrBlock
The network range for the VPC, in CIDR notation.
|
private java.lang.String |
instanceTenancy
The tenancy options for instances launched into the VPC.
|
NOOP
Constructor and Description |
---|
CreateVpcRequest()
Default constructor for CreateVpcRequest object.
|
CreateVpcRequest(java.lang.String cidrBlock)
Constructs a new CreateVpcRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateVpcRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCidrBlock()
The network range for the VPC, in CIDR notation.
|
Request<CreateVpcRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getInstanceTenancy()
The tenancy options for instances launched into the VPC.
|
int |
hashCode() |
void |
setCidrBlock(java.lang.String cidrBlock)
The network range for the VPC, in CIDR notation.
|
void |
setInstanceTenancy(java.lang.String instanceTenancy)
The tenancy options for instances launched into the VPC.
|
void |
setInstanceTenancy(Tenancy instanceTenancy)
The tenancy options for instances launched into the VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVpcRequest |
withCidrBlock(java.lang.String cidrBlock)
The network range for the VPC, in CIDR notation.
|
CreateVpcRequest |
withInstanceTenancy(java.lang.String instanceTenancy)
The tenancy options for instances launched into the VPC.
|
CreateVpcRequest |
withInstanceTenancy(Tenancy instanceTenancy)
The tenancy options for instances launched into the VPC.
|
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
private java.lang.String cidrBlock
The network range for the VPC, in CIDR notation. For example,
10.0.0.0/16
.
private java.lang.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. For dedicated
, instances are launched as dedicated
tenancy instances by default. You can only launch instances with a
tenancy of dedicated
or host
into a dedicated
tenancy VPC.
Important: The host
value cannot be used with this
parameter. Use the default
or dedicated
values
only.
Default: default
public CreateVpcRequest()
public CreateVpcRequest(java.lang.String cidrBlock)
cidrBlock
- The network range for the VPC, in CIDR notation. For example,
10.0.0.0/16
.public void setCidrBlock(java.lang.String cidrBlock)
The network range for the VPC, in CIDR notation. For example,
10.0.0.0/16
.
cidrBlock
- The network range for the VPC, in CIDR notation. For example,
10.0.0.0/16
.public java.lang.String getCidrBlock()
The network range for the VPC, in CIDR notation. For example,
10.0.0.0/16
.
10.0.0.0/16
.public CreateVpcRequest withCidrBlock(java.lang.String cidrBlock)
The network range for the VPC, in CIDR notation. For example,
10.0.0.0/16
.
cidrBlock
- The network range for the VPC, in CIDR notation. For example,
10.0.0.0/16
.public void setInstanceTenancy(java.lang.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. For dedicated
, instances are launched as dedicated
tenancy instances by default. You can only launch instances with a
tenancy of dedicated
or host
into a dedicated
tenancy VPC.
Important: The host
value cannot be used with this
parameter. Use the default
or dedicated
values
only.
Default: default
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. For dedicated
, instances are
launched as dedicated tenancy instances by default. You can only
launch instances with a tenancy of dedicated
or
host
into a dedicated tenancy VPC.
Important: The host
value cannot be used with
this parameter. Use the default
or
dedicated
values only.
Default: default
Tenancy
public java.lang.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. For dedicated
, instances are launched as dedicated
tenancy instances by default. You can only launch instances with a
tenancy of dedicated
or host
into a dedicated
tenancy VPC.
Important: The host
value cannot be used with this
parameter. Use the default
or dedicated
values
only.
Default: default
default
, instances are launched with shared tenancy
by default. You can launch instances with any tenancy into a
shared tenancy VPC. For dedicated
, instances are
launched as dedicated tenancy instances by default. You can only
launch instances with a tenancy of dedicated
or
host
into a dedicated tenancy VPC.
Important: The host
value cannot be used with
this parameter. Use the default
or
dedicated
values only.
Default: default
Tenancy
public CreateVpcRequest withInstanceTenancy(java.lang.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. For dedicated
, instances are launched as dedicated
tenancy instances by default. You can only launch instances with a
tenancy of dedicated
or host
into a dedicated
tenancy VPC.
Important: The host
value cannot be used with this
parameter. Use the default
or dedicated
values
only.
Default: default
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. For dedicated
, instances are
launched as dedicated tenancy instances by default. You can only
launch instances with a tenancy of dedicated
or
host
into a dedicated tenancy VPC.
Important: The host
value cannot be used with
this parameter. Use the default
or
dedicated
values only.
Default: default
Tenancy
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. For dedicated
, instances are launched as dedicated
tenancy instances by default. You can only launch instances with a
tenancy of dedicated
or host
into a dedicated
tenancy VPC.
Important: The host
value cannot be used with this
parameter. Use the default
or dedicated
values
only.
Default: default
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. For dedicated
, instances are
launched as dedicated tenancy instances by default. You can only
launch instances with a tenancy of dedicated
or
host
into a dedicated tenancy VPC.
Important: The host
value cannot be used with
this parameter. Use the default
or
dedicated
values only.
Default: default
Tenancy
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. For dedicated
, instances are launched as dedicated
tenancy instances by default. You can only launch instances with a
tenancy of dedicated
or host
into a dedicated
tenancy VPC.
Important: The host
value cannot be used with this
parameter. Use the default
or dedicated
values
only.
Default: default
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. For dedicated
, instances are
launched as dedicated tenancy instances by default. You can only
launch instances with a tenancy of dedicated
or
host
into a dedicated tenancy VPC.
Important: The host
value cannot be used with
this parameter. Use the default
or
dedicated
values only.
Default: default
Tenancy
public Request<CreateVpcRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateVpcRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateVpcRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()