|
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.
AWSOpsWorks.createInstance(CreateInstanceRequest)
Constructor Summary | |
---|---|
CreateInstanceRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAutoScalingType()
The instance auto scaling type, which has three possible values: AlwaysRunning: A 24x7 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, which can be one of the following: m1.small m1.medium m1.large m1.xlarge c1.medium c1.xlarge m2.xlarge m2.2xlarge m2.4xlarge |
List<String> |
getLayerIds()
An array that contains the instance layer IDs. |
String |
getOs()
The instance operating system. |
String |
getSshKeyName()
The instance SSH key name. |
String |
getStackId()
The stack ID. |
int |
hashCode()
|
void |
setAutoScalingType(AutoScalingType autoScalingType)
The instance auto scaling type, which has three possible values: AlwaysRunning: A 24x7 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 24x7 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, which can be one of the following: m1.small m1.medium m1.large m1.xlarge c1.medium c1.xlarge m2.xlarge m2.2xlarge m2.4xlarge |
void |
setLayerIds(Collection<String> layerIds)
An array that contains the instance layer IDs. |
void |
setOs(String os)
The instance operating system. |
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 |
withAutoScalingType(AutoScalingType autoScalingType)
The instance auto scaling type, which has three possible values: AlwaysRunning: A 24x7 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 24x7 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, which can be one of the following: m1.small m1.medium m1.large m1.xlarge c1.medium c1.xlarge m2.xlarge m2.2xlarge m2.4xlarge |
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 operating system. |
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, which can be one of the following: public CreateInstanceRequest withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType
- The instance type, which can be one of the following: public String getAutoScalingType()
Constraints:
Allowed Values: AlwaysRunning, TimeBasedAutoScaling, LoadBasedAutoScaling
AutoScalingType
public void setAutoScalingType(String autoScalingType)
Constraints:
Allowed Values: AlwaysRunning, TimeBasedAutoScaling, LoadBasedAutoScaling
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: AlwaysRunning, TimeBasedAutoScaling, LoadBasedAutoScaling
autoScalingType
- The instance auto scaling type, which has three possible values: AutoScalingType
public void setAutoScalingType(AutoScalingType autoScalingType)
Constraints:
Allowed Values: AlwaysRunning, TimeBasedAutoScaling, LoadBasedAutoScaling
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: AlwaysRunning, TimeBasedAutoScaling, LoadBasedAutoScaling
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 operating system.public CreateInstanceRequest withOs(String os)
Returns a reference to this object so that method calls can be chained together.
os
- The instance operating system.
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 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 |