|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.opsworks.model.CreateInstanceRequest
public class CreateInstanceRequest
Container for the parameters to the CreateInstance operation
.
Creates an instance in a specified stack. For more information, see Adding an Instance to a Layer .
AWSOpsWorks.createInstance(CreateInstanceRequest)
,
Serialized FormConstructor Summary | |
---|---|
CreateInstanceRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getArchitecture()
The instance architecture. |
String |
getAutoScalingType()
The instance auto scaling type, which has three possible values: AlwaysRunning: A 24/7 instance, which is not affected by auto scaling. TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule. |
String |
getAvailabilityZone()
The instance Availability Zone. |
String |
getHostname()
The instance host name. |
String |
getInstanceType()
The instance type. |
List<String> |
getLayerIds()
An array that contains the instance layer IDs. |
String |
getOs()
The instance's operating system, which must be either "Amazon Linux" or "Ubuntu 12.04 LTS". |
String |
getRootDeviceType()
The instance root device type. |
String |
getSshKeyName()
The instance SSH key name. |
String |
getStackId()
The stack ID. |
int |
hashCode()
|
void |
setArchitecture(Architecture architecture)
The instance architecture. |
void |
setArchitecture(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. TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule. |
void |
setAutoScalingType(String autoScalingType)
The instance auto scaling type, which has three possible values: AlwaysRunning: A 24/7 instance, which is not affected by auto scaling. TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule. |
void |
setAvailabilityZone(String availabilityZone)
The instance Availability Zone. |
void |
setHostname(String hostname)
The instance host name. |
void |
setInstanceType(String instanceType)
The instance type. |
void |
setLayerIds(Collection<String> layerIds)
An array that contains the instance layer IDs. |
void |
setOs(String os)
The instance's operating system, which must be either "Amazon Linux" or "Ubuntu 12.04 LTS". |
void |
setRootDeviceType(RootDeviceType rootDeviceType)
The instance root device type. |
void |
setRootDeviceType(String rootDeviceType)
The instance root device type. |
void |
setSshKeyName(String sshKeyName)
The instance SSH key name. |
void |
setStackId(String stackId)
The stack ID. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateInstanceRequest |
withArchitecture(Architecture architecture)
The instance architecture. |
CreateInstanceRequest |
withArchitecture(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. TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule. |
CreateInstanceRequest |
withAutoScalingType(String autoScalingType)
The instance auto scaling type, which has three possible values: AlwaysRunning: A 24/7 instance, which is not affected by auto scaling. TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule. |
CreateInstanceRequest |
withAvailabilityZone(String availabilityZone)
The instance Availability Zone. |
CreateInstanceRequest |
withHostname(String hostname)
The instance host name. |
CreateInstanceRequest |
withInstanceType(String instanceType)
The instance type. |
CreateInstanceRequest |
withLayerIds(Collection<String> layerIds)
An array that contains the instance layer IDs. |
CreateInstanceRequest |
withLayerIds(String... layerIds)
An array that contains the instance layer IDs. |
CreateInstanceRequest |
withOs(String os)
The instance's operating system, which must be either "Amazon Linux" or "Ubuntu 12.04 LTS". |
CreateInstanceRequest |
withRootDeviceType(RootDeviceType rootDeviceType)
The instance root device type. |
CreateInstanceRequest |
withRootDeviceType(String rootDeviceType)
The instance root device type. |
CreateInstanceRequest |
withSshKeyName(String sshKeyName)
The instance SSH key name. |
CreateInstanceRequest |
withStackId(String stackId)
The stack ID. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateInstanceRequest()
Method Detail |
---|
public String getStackId()
public void setStackId(String stackId)
stackId
- The stack ID.public CreateInstanceRequest withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId
- The stack ID.
public List<String> getLayerIds()
public void setLayerIds(Collection<String> layerIds)
layerIds
- An array that contains the instance layer IDs.public CreateInstanceRequest withLayerIds(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(Collection<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 String getInstanceType()
public void setInstanceType(String instanceType)
instanceType
- The instance type. 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(String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType
- The instance type. 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 String getAutoScalingType()
Constraints:
Allowed Values: load, timer
AutoScalingType
public void setAutoScalingType(String autoScalingType)
Constraints:
Allowed Values: load, timer
autoScalingType
- The instance auto scaling type, which has three possible values: AutoScalingType
public CreateInstanceRequest withAutoScalingType(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: AutoScalingType
public void setAutoScalingType(AutoScalingType autoScalingType)
Constraints:
Allowed Values: load, timer
autoScalingType
- The instance auto scaling type, which has three possible values: AutoScalingType
public 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: AutoScalingType
public String getHostname()
public void setHostname(String hostname)
hostname
- The instance host name.public CreateInstanceRequest withHostname(String hostname)
Returns a reference to this object so that method calls can be chained together.
hostname
- The instance host name.
public String getOs()
public void setOs(String os)
os
- The instance's operating system, which must be either "Amazon Linux"
or "Ubuntu 12.04 LTS".public CreateInstanceRequest withOs(String os)
Returns a reference to this object so that method calls can be chained together.
os
- The instance's operating system, which must be either "Amazon Linux"
or "Ubuntu 12.04 LTS".
public String getSshKeyName()
public void setSshKeyName(String sshKeyName)
sshKeyName
- The instance SSH key name.public CreateInstanceRequest withSshKeyName(String sshKeyName)
Returns a reference to this object so that method calls can be chained together.
sshKeyName
- The instance SSH key name.
public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The instance Availability Zone. For more information, see Regions
and Endpoints.public CreateInstanceRequest withAvailabilityZone(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 String getArchitecture()
Constraints:
Allowed Values: x86_64, i386
Architecture
public void setArchitecture(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.Architecture
public CreateInstanceRequest withArchitecture(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.
Architecture
public 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.Architecture
public 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.
Architecture
public String getRootDeviceType()
Constraints:
Allowed Values: ebs, instance-store
RootDeviceType
public void setRootDeviceType(String rootDeviceType)
Constraints:
Allowed Values: ebs, instance-store
rootDeviceType
- The instance root device type. For more information, see Storage
for the Root Device.RootDeviceType
public CreateInstanceRequest withRootDeviceType(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.
RootDeviceType
public 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.RootDeviceType
public 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.
RootDeviceType
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |