public class UpdateInstanceRequest extends AmazonWebServiceRequest implements java.io.Serializable
UpdateInstance operation.
Updates a specified instance.
| コンストラクタと説明 |
|---|
UpdateInstanceRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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's auto scaling type, which has three possible values:
AlwaysRunning: A 24/7 instance, which is not affected
by auto scaling.
|
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 |
getInstanceId()
The instance ID.
|
java.lang.String |
getInstanceType()
The instance type.
|
java.util.List<java.lang.String> |
getLayerIds()
The instance's layer IDs.
|
java.lang.String |
getOs()
The instance operating system, which must be set to one of the
following.
|
java.lang.String |
getSshKeyName()
The instance SSH key name.
|
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's 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's auto scaling type, which has three possible values:
AlwaysRunning: A 24/7 instance, which is not affected
by auto scaling.
|
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 |
setInstanceId(java.lang.String instanceId)
The instance ID.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type.
|
void |
setLayerIds(java.util.Collection<java.lang.String> layerIds)
The instance's layer IDs.
|
void |
setOs(java.lang.String os)
The instance operating system, which must be set to one of the
following.
|
void |
setSshKeyName(java.lang.String sshKeyName)
The instance SSH key name.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateInstanceRequest |
withAmiId(java.lang.String amiId)
A custom AMI ID to be used to create the instance.
|
UpdateInstanceRequest |
withArchitecture(Architecture architecture)
The instance architecture.
|
UpdateInstanceRequest |
withArchitecture(java.lang.String architecture)
The instance architecture.
|
UpdateInstanceRequest |
withAutoScalingType(AutoScalingType autoScalingType)
The instance's auto scaling type, which has three possible values:
AlwaysRunning: A 24/7 instance, which is not affected
by auto scaling.
|
UpdateInstanceRequest |
withAutoScalingType(java.lang.String autoScalingType)
The instance's auto scaling type, which has three possible values:
AlwaysRunning: A 24/7 instance, which is not affected
by auto scaling.
|
UpdateInstanceRequest |
withHostname(java.lang.String hostname)
The instance host name.
|
UpdateInstanceRequest |
withInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the
instance boots.
|
UpdateInstanceRequest |
withInstanceId(java.lang.String instanceId)
The instance ID.
|
UpdateInstanceRequest |
withInstanceType(java.lang.String instanceType)
The instance type.
|
UpdateInstanceRequest |
withLayerIds(java.util.Collection<java.lang.String> layerIds)
The instance's layer IDs.
|
UpdateInstanceRequest |
withLayerIds(java.lang.String... layerIds)
The instance's layer IDs.
|
UpdateInstanceRequest |
withOs(java.lang.String os)
The instance operating system, which must be set to one of the
following.
|
UpdateInstanceRequest |
withSshKeyName(java.lang.String sshKeyName)
The instance SSH key name.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The instance ID.public UpdateInstanceRequest withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The instance ID.public java.util.List<java.lang.String> getLayerIds()
public void setLayerIds(java.util.Collection<java.lang.String> layerIds)
layerIds - The instance's layer IDs.public UpdateInstanceRequest withLayerIds(java.lang.String... layerIds)
Returns a reference to this object so that method calls can be chained together.
layerIds - The instance's layer IDs.public UpdateInstanceRequest withLayerIds(java.util.Collection<java.lang.String> layerIds)
Returns a reference to this object so that method calls can be chained together.
layerIds - The instance's 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 UpdateInstanceRequest 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's auto scaling type, which has three possible values:
AutoScalingTypepublic UpdateInstanceRequest 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's auto scaling type, which has three possible values:
AutoScalingTypepublic void setAutoScalingType(AutoScalingType autoScalingType)
Constraints:
Allowed Values: load, timer
autoScalingType - The instance's auto scaling type, which has three possible values:
AutoScalingTypepublic UpdateInstanceRequest 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's 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 UpdateInstanceRequest 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 UpdateInstanceRequest 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 UpdateInstanceRequest 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 UpdateInstanceRequest 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 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 UpdateInstanceRequest 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 UpdateInstanceRequest 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.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 UpdateInstanceRequest 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