Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class CreateInstanceRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.opsworks.model.CreateInstanceRequest

public class CreateInstanceRequest
extends AmazonWebServiceRequest

Container for the parameters to the CreateInstance operation.

Creates an instance in a specified stack.

See Also:
AWSOpsWorks.createInstance(CreateInstanceRequest)

Constructor Summary
CreateInstanceRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.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.
 java.lang.String getAvailabilityZone()
          The instance Availability Zone.
 java.lang.String getHostname()
          The instance host name.
 java.lang.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
 java.util.List<java.lang.String> getLayerIds()
          An array that contains the instance layer IDs.
 java.lang.String getOs()
          The instance operating system.
 java.lang.String getSshKeyName()
          The instance SSH key name.
 java.lang.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(java.lang.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(java.lang.String availabilityZone)
          The instance Availability Zone.
 void setHostname(java.lang.String hostname)
          The instance host name.
 void setInstanceType(java.lang.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(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.
 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 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(java.lang.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(java.lang.String availabilityZone)
          The instance Availability Zone.
 CreateInstanceRequest withHostname(java.lang.String hostname)
          The instance host name.
 CreateInstanceRequest withInstanceType(java.lang.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(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.
 CreateInstanceRequest withSshKeyName(java.lang.String sshKeyName)
          The instance SSH key name.
 CreateInstanceRequest withStackId(java.lang.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

CreateInstanceRequest

public CreateInstanceRequest()
Method Detail

getStackId

public java.lang.String getStackId()
The stack ID.

Returns:
The stack ID.

setStackId

public void setStackId(java.lang.String stackId)
The stack ID.

Parameters:
stackId - The stack ID.

withStackId

public CreateInstanceRequest withStackId(java.lang.String stackId)
The stack ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
stackId - The stack ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getLayerIds

public java.util.List<java.lang.String> getLayerIds()
An array that contains the instance layer IDs.

Returns:
An array that contains the instance layer IDs.

setLayerIds

public void setLayerIds(java.util.Collection<java.lang.String> layerIds)
An array that contains the instance layer IDs.

Parameters:
layerIds - An array that contains the instance layer IDs.

withLayerIds

public CreateInstanceRequest withLayerIds(java.lang.String... layerIds)
An array that contains the instance layer IDs.

Returns a reference to this object so that method calls can be chained together.

Parameters:
layerIds - An array that contains the instance layer IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

withLayerIds

public CreateInstanceRequest withLayerIds(java.util.Collection<java.lang.String> layerIds)
An array that contains the instance layer IDs.

Returns a reference to this object so that method calls can be chained together.

Parameters:
layerIds - An array that contains the instance layer IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

public java.lang.String getInstanceType()
The instance type, which can be one of the following:

Returns:
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

setInstanceType

public void setInstanceType(java.lang.String instanceType)
The instance type, which can be one of the following:

Parameters:
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

withInstanceType

public CreateInstanceRequest withInstanceType(java.lang.String instanceType)
The instance type, which can be one of the following:

Returns a reference to this object so that method calls can be chained together.

Parameters:
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
Returns:
A reference to this updated object so that method calls can be chained together.

getAutoScalingType

public java.lang.String getAutoScalingType()
The instance auto scaling type, which has three possible values:

Constraints:
Allowed Values: AlwaysRunning, TimeBasedAutoScaling, LoadBasedAutoScaling

Returns:
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. To specify the schedule, call SetTimeBasedAutoScaling.
  • LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics. To use load-based auto scaling, you must enable it for the instance layer and configure the thresholds by calling SetLoadBasedAutoScaling.
See Also:
AutoScalingType

setAutoScalingType

public void setAutoScalingType(java.lang.String autoScalingType)
The instance auto scaling type, which has three possible values:

Constraints:
Allowed Values: AlwaysRunning, TimeBasedAutoScaling, LoadBasedAutoScaling

Parameters:
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. To specify the schedule, call SetTimeBasedAutoScaling.
  • LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics. To use load-based auto scaling, you must enable it for the instance layer and configure the thresholds by calling SetLoadBasedAutoScaling.
See Also:
AutoScalingType

withAutoScalingType

public CreateInstanceRequest withAutoScalingType(java.lang.String autoScalingType)
The instance auto scaling type, which has three possible values:

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: AlwaysRunning, TimeBasedAutoScaling, LoadBasedAutoScaling

Parameters:
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. To specify the schedule, call SetTimeBasedAutoScaling.
  • LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics. To use load-based auto scaling, you must enable it for the instance layer and configure the thresholds by calling SetLoadBasedAutoScaling.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AutoScalingType

setAutoScalingType

public void setAutoScalingType(AutoScalingType autoScalingType)
The instance auto scaling type, which has three possible values:

Constraints:
Allowed Values: AlwaysRunning, TimeBasedAutoScaling, LoadBasedAutoScaling

Parameters:
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. To specify the schedule, call SetTimeBasedAutoScaling.
  • LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics. To use load-based auto scaling, you must enable it for the instance layer and configure the thresholds by calling SetLoadBasedAutoScaling.
See Also:
AutoScalingType

withAutoScalingType

public CreateInstanceRequest withAutoScalingType(AutoScalingType autoScalingType)
The instance auto scaling type, which has three possible values:

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: AlwaysRunning, TimeBasedAutoScaling, LoadBasedAutoScaling

Parameters:
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. To specify the schedule, call SetTimeBasedAutoScaling.
  • LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics. To use load-based auto scaling, you must enable it for the instance layer and configure the thresholds by calling SetLoadBasedAutoScaling.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AutoScalingType

getHostname

public java.lang.String getHostname()
The instance host name.

Returns:
The instance host name.

setHostname

public void setHostname(java.lang.String hostname)
The instance host name.

Parameters:
hostname - The instance host name.

withHostname

public CreateInstanceRequest withHostname(java.lang.String hostname)
The instance host name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
hostname - The instance host name.
Returns:
A reference to this updated object so that method calls can be chained together.

getOs

public java.lang.String getOs()
The instance operating system.

Returns:
The instance operating system.

setOs

public void setOs(java.lang.String os)
The instance operating system.

Parameters:
os - The instance operating system.

withOs

public CreateInstanceRequest withOs(java.lang.String os)
The instance operating system.

Returns a reference to this object so that method calls can be chained together.

Parameters:
os - The instance operating system.
Returns:
A reference to this updated object so that method calls can be chained together.

getSshKeyName

public java.lang.String getSshKeyName()
The instance SSH key name.

Returns:
The instance SSH key name.

setSshKeyName

public void setSshKeyName(java.lang.String sshKeyName)
The instance SSH key name.

Parameters:
sshKeyName - The instance SSH key name.

withSshKeyName

public CreateInstanceRequest withSshKeyName(java.lang.String sshKeyName)
The instance SSH key name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sshKeyName - The instance SSH key name.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZone

public java.lang.String getAvailabilityZone()
The instance Availability Zone. For more information, see Regions and Endpoints.

Returns:
The instance Availability Zone. For more information, see Regions and Endpoints.

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
The instance Availability Zone. For more information, see Regions and Endpoints.

Parameters:
availabilityZone - The instance Availability Zone. For more information, see Regions and Endpoints.

withAvailabilityZone

public CreateInstanceRequest withAvailabilityZone(java.lang.String availabilityZone)
The instance Availability Zone. For more information, see Regions and Endpoints.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone - The instance Availability Zone. For more information, see Regions and Endpoints.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.