Class CreateVpcRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateVpcRequest>
,Serializable
,Cloneable
Contains the parameters for CreateVpc.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for CreateVpcRequest object.CreateVpcRequest
(String cidrBlock) Constructs a new CreateVpcRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The network range for the VPC, in CIDR notation.This method is intended for internal use only.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.toString()
Returns a string representation of this object; useful for testing and debugging.withCidrBlock
(String cidrBlock) The network range for the VPC, in CIDR notation.withInstanceTenancy
(Tenancy instanceTenancy) The tenancy options for instances launched into the VPC.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 Details
-
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
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 Details
-
setCidrBlock
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
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
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
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:
-
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:
-
withInstanceTenancy
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:
-
setInstanceTenancy
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:
-
withInstanceTenancy
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:
-
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-