public class CreateInstanceRequest extends AmazonWebServiceRequest implements java.io.Serializable
CreateInstance operation.
Creates an instance in a specified stack. For more information, see Adding an Instance to a Layer .
| コンストラクタと説明 |
|---|
CreateInstanceRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAmiId()
A custom AMI ID to be used to create the instance.
|
java.lang.String |
getArchitecture()
The instance architecture.
|
java.lang.String |
getAutoScalingType()
The instance auto scaling type, which has three possible values:
AlwaysRunning: A 24/7 instance, which is not affected by
auto scaling.
|
java.lang.String |
getAvailabilityZone()
The instance Availability Zone.
|
java.lang.String |
getHostname()
The instance host name.
|
java.lang.Boolean |
getInstallUpdatesOnBoot()
Whether to install operating system and package updates when the
instance boots.
|
java.lang.String |
getInstanceType()
The instance type.
|
java.util.List<java.lang.String> |
getLayerIds()
An array that contains the instance layer IDs.
|
java.lang.String |
getOs()
The instance operating system, which must be set to one of the
following.
|
java.lang.String |
getRootDeviceType()
The instance root device type.
|
java.lang.String |
getSshKeyName()
The instance SSH key name.
|
java.lang.String |
getStackId()
The stack ID.
|
int |
hashCode() |
java.lang.Boolean |
isInstallUpdatesOnBoot()
Whether to install operating system and package updates when the
instance boots.
|
void |
setAmiId(java.lang.String amiId)
A custom AMI ID to be used to create the instance.
|
void |
setArchitecture(Architecture architecture)
The instance architecture.
|
void |
setArchitecture(java.lang.String architecture)
The instance architecture.
|
void |
setAutoScalingType(AutoScalingType autoScalingType)
The instance auto scaling type, which has three possible values:
AlwaysRunning: A 24/7 instance, which is not affected by
auto scaling.
|
void |
setAutoScalingType(java.lang.String autoScalingType)
The instance auto scaling type, which has three possible values:
AlwaysRunning: A 24/7 instance, which is not affected by
auto scaling.
|
void |
setAvailabilityZone(java.lang.String availabilityZone)
The instance Availability Zone.
|
void |
setHostname(java.lang.String hostname)
The instance host name.
|
void |
setInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the
instance boots.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type.
|
void |
setLayerIds(java.util.Collection<java.lang.String> layerIds)
An array that contains the instance layer IDs.
|
void |
setOs(java.lang.String os)
The instance operating system, which must be set to one of the
following.
|
void |
setRootDeviceType(RootDeviceType rootDeviceType)
The instance root device type.
|
void |
setRootDeviceType(java.lang.String rootDeviceType)
The instance root device type.
|
void |
setSshKeyName(java.lang.String sshKeyName)
The instance SSH key name.
|
void |
setStackId(java.lang.String stackId)
The stack ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateInstanceRequest |
withAmiId(java.lang.String amiId)
A custom AMI ID to be used to create the instance.
|
CreateInstanceRequest |
withArchitecture(Architecture architecture)
The instance architecture.
|
CreateInstanceRequest |
withArchitecture(java.lang.String architecture)
The instance architecture.
|
CreateInstanceRequest |
withAutoScalingType(AutoScalingType autoScalingType)
The instance auto scaling type, which has three possible values:
AlwaysRunning: A 24/7 instance, which is not affected by
auto scaling.
|
CreateInstanceRequest |
withAutoScalingType(java.lang.String autoScalingType)
The instance auto scaling type, which has three possible values:
AlwaysRunning: A 24/7 instance, which is not affected by
auto scaling.
|
CreateInstanceRequest |
withAvailabilityZone(java.lang.String availabilityZone)
The instance Availability Zone.
|
CreateInstanceRequest |
withHostname(java.lang.String hostname)
The instance host name.
|
CreateInstanceRequest |
withInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the
instance boots.
|
CreateInstanceRequest |
withInstanceType(java.lang.String instanceType)
The instance type.
|
CreateInstanceRequest |
withLayerIds(java.util.Collection<java.lang.String> layerIds)
An array that contains the instance layer IDs.
|
CreateInstanceRequest |
withLayerIds(java.lang.String... layerIds)
An array that contains the instance layer IDs.
|
CreateInstanceRequest |
withOs(java.lang.String os)
The instance operating system, which must be set to one of the
following.
|
CreateInstanceRequest |
withRootDeviceType(RootDeviceType rootDeviceType)
The instance root device type.
|
CreateInstanceRequest |
withRootDeviceType(java.lang.String rootDeviceType)
The instance root device type.
|
CreateInstanceRequest |
withSshKeyName(java.lang.String sshKeyName)
The instance SSH key name.
|
CreateInstanceRequest |
withStackId(java.lang.String stackId)
The stack ID.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getStackId()
public void setStackId(java.lang.String stackId)
stackId - The stack ID.public CreateInstanceRequest withStackId(java.lang.String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId - The stack ID.public java.util.List<java.lang.String> getLayerIds()
public void setLayerIds(java.util.Collection<java.lang.String> layerIds)
layerIds - An array that contains the instance layer IDs.public CreateInstanceRequest withLayerIds(java.lang.String... layerIds)
Returns a reference to this object so that method calls can be chained together.
layerIds - An array that contains the instance layer IDs.public CreateInstanceRequest withLayerIds(java.util.Collection<java.lang.String> layerIds)
Returns a reference to this object so that method calls can be chained together.
layerIds - An array that contains the instance layer IDs.public java.lang.String getInstanceType()
public void setInstanceType(java.lang.String instanceType)
instanceType - The instance type. AWS OpsWorks supports all instance types except
Cluster Compute, Cluster GPU, and High Memory Cluster. For more
information, see Instance
Families and Types. The parameter values that you use to specify
the various types are in the API Name column of the Available Instance
Types table.public CreateInstanceRequest withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType - The instance type. AWS OpsWorks supports all instance types except
Cluster Compute, Cluster GPU, and High Memory Cluster. For more
information, see Instance
Families and Types. The parameter values that you use to specify
the various types are in the API Name column of the Available Instance
Types table.public java.lang.String getAutoScalingType()
Constraints:
Allowed Values: load, timer
AutoScalingTypepublic void setAutoScalingType(java.lang.String autoScalingType)
Constraints:
Allowed Values: load, timer
autoScalingType - The instance auto scaling type, which has three possible values: AutoScalingTypepublic CreateInstanceRequest withAutoScalingType(java.lang.String autoScalingType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: load, timer
autoScalingType - The instance auto scaling type, which has three possible values: AutoScalingTypepublic void setAutoScalingType(AutoScalingType autoScalingType)
Constraints:
Allowed Values: load, timer
autoScalingType - The instance auto scaling type, which has three possible values: AutoScalingTypepublic CreateInstanceRequest withAutoScalingType(AutoScalingType autoScalingType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: load, timer
autoScalingType - The instance auto scaling type, which has three possible values: AutoScalingTypepublic java.lang.String getHostname()
public void setHostname(java.lang.String hostname)
hostname - The instance host name.public CreateInstanceRequest withHostname(java.lang.String hostname)
Returns a reference to this object so that method calls can be chained together.
hostname - The instance host name.public java.lang.String getOs()
Amazon
Linux or Ubuntu 12.04 LTSCustomThe default option is Amazon
Linux. If you set this parameter to Custom, you
must use the CreateInstance action's AmiId parameter to specify
the custom AMI that you want to use. For more information on the
standard operating systems, see Operating
SystemsFor more information on how to use custom AMIs with
OpsWorks, see Using
Custom AMIs.
Amazon
Linux or Ubuntu 12.04 LTSCustomThe default option is Amazon
Linux. If you set this parameter to Custom, you
must use the CreateInstance action's AmiId parameter to specify
the custom AMI that you want to use. For more information on the
standard operating systems, see Operating
SystemsFor more information on how to use custom AMIs with
OpsWorks, see Using
Custom AMIs.
public void setOs(java.lang.String os)
Amazon
Linux or Ubuntu 12.04 LTSCustomThe default option is Amazon
Linux. If you set this parameter to Custom, you
must use the CreateInstance action's AmiId parameter to specify
the custom AMI that you want to use. For more information on the
standard operating systems, see Operating
SystemsFor more information on how to use custom AMIs with
OpsWorks, see Using
Custom AMIs.
os - The instance operating system, which must be set to one of the
following. Amazon
Linux or Ubuntu 12.04 LTSCustomThe default option is Amazon
Linux. If you set this parameter to Custom, you
must use the CreateInstance action's AmiId parameter to specify
the custom AMI that you want to use. For more information on the
standard operating systems, see Operating
SystemsFor more information on how to use custom AMIs with
OpsWorks, see Using
Custom AMIs.
public CreateInstanceRequest withOs(java.lang.String os)
Amazon
Linux or Ubuntu 12.04 LTSCustomThe default option is Amazon
Linux. If you set this parameter to Custom, you
must use the CreateInstance action's AmiId parameter to specify
the custom AMI that you want to use. For more information on the
standard operating systems, see Operating
SystemsFor more information on how to use custom AMIs with
OpsWorks, see Using
Custom AMIs.
Returns a reference to this object so that method calls can be chained together.
os - The instance operating system, which must be set to one of the
following. Amazon
Linux or Ubuntu 12.04 LTSCustomThe default option is Amazon
Linux. If you set this parameter to Custom, you
must use the CreateInstance action's AmiId parameter to specify
the custom AMI that you want to use. For more information on the
standard operating systems, see Operating
SystemsFor more information on how to use custom AMIs with
OpsWorks, see Using
Custom AMIs.
public java.lang.String getAmiId()
public void setAmiId(java.lang.String amiId)
amiId - A custom AMI ID to be used to create the instance. The AMI should be
based on one of the standard AWS OpsWorks APIs: Amazon Linux or Ubuntu
12.04 LTS. For more information, see Instancespublic CreateInstanceRequest withAmiId(java.lang.String amiId)
Returns a reference to this object so that method calls can be chained together.
amiId - A custom AMI ID to be used to create the instance. The AMI should be
based on one of the standard AWS OpsWorks APIs: Amazon Linux or Ubuntu
12.04 LTS. For more information, see Instancespublic java.lang.String getSshKeyName()
public void setSshKeyName(java.lang.String sshKeyName)
sshKeyName - The instance SSH key name.public CreateInstanceRequest withSshKeyName(java.lang.String sshKeyName)
Returns a reference to this object so that method calls can be chained together.
sshKeyName - The instance SSH key name.public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone - The instance Availability Zone. For more information, see Regions
and Endpoints.public CreateInstanceRequest withAvailabilityZone(java.lang.String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone - The instance Availability Zone. For more information, see Regions
and Endpoints.public java.lang.String getArchitecture()
Constraints:
Allowed Values: x86_64, i386
Architecturepublic void setArchitecture(java.lang.String architecture)
Constraints:
Allowed Values: x86_64, i386
architecture - The instance architecture. Instance types do not necessarily support
both architectures. For a list of the architectures that are supported
by the different instance types, see Instance
Families and Types.Architecturepublic CreateInstanceRequest withArchitecture(java.lang.String architecture)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: x86_64, i386
architecture - The instance architecture. Instance types do not necessarily support
both architectures. For a list of the architectures that are supported
by the different instance types, see Instance
Families and Types.Architecturepublic void setArchitecture(Architecture architecture)
Constraints:
Allowed Values: x86_64, i386
architecture - The instance architecture. Instance types do not necessarily support
both architectures. For a list of the architectures that are supported
by the different instance types, see Instance
Families and Types.Architecturepublic CreateInstanceRequest withArchitecture(Architecture architecture)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: x86_64, i386
architecture - The instance architecture. Instance types do not necessarily support
both architectures. For a list of the architectures that are supported
by the different instance types, see Instance
Families and Types.Architecturepublic java.lang.String getRootDeviceType()
Constraints:
Allowed Values: ebs, instance-store
RootDeviceTypepublic void setRootDeviceType(java.lang.String rootDeviceType)
Constraints:
Allowed Values: ebs, instance-store
rootDeviceType - The instance root device type. For more information, see Storage
for the Root Device.RootDeviceTypepublic CreateInstanceRequest withRootDeviceType(java.lang.String rootDeviceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ebs, instance-store
rootDeviceType - The instance root device type. For more information, see Storage
for the Root Device.RootDeviceTypepublic void setRootDeviceType(RootDeviceType rootDeviceType)
Constraints:
Allowed Values: ebs, instance-store
rootDeviceType - The instance root device type. For more information, see Storage
for the Root Device.RootDeviceTypepublic CreateInstanceRequest withRootDeviceType(RootDeviceType rootDeviceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ebs, instance-store
rootDeviceType - The instance root device type. For more information, see Storage
for the Root Device.RootDeviceTypepublic java.lang.Boolean isInstallUpdatesOnBoot()
true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.public void setInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.installUpdatesOnBoot - Whether to install operating system and package updates when the
instance boots. The default value is true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.public CreateInstanceRequest withInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.Returns a reference to this object so that method calls can be chained together.
installUpdatesOnBoot - Whether to install operating system and package updates when the
instance boots. The default value is true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.public java.lang.Boolean getInstallUpdatesOnBoot()
true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object