public class ScalingParameters extends Object implements Serializable, Cloneable
The desired instance type and desired number of replicas of each index partition.
| Constructor and Description |
|---|
ScalingParameters() |
| Modifier and Type | Method and Description |
|---|---|
ScalingParameters |
clone() |
boolean |
equals(Object obj) |
String |
getDesiredInstanceType()
The instance type that you want to preconfigure for your domain.
|
Integer |
getDesiredPartitionCount()
The number of partitions you want to preconfigure for your domain.
|
Integer |
getDesiredReplicationCount()
The number of replicas you want to preconfigure for each index
partition.
|
int |
hashCode() |
void |
setDesiredInstanceType(PartitionInstanceType desiredInstanceType)
The instance type that you want to preconfigure for your domain.
|
void |
setDesiredInstanceType(String desiredInstanceType)
The instance type that you want to preconfigure for your domain.
|
void |
setDesiredPartitionCount(Integer desiredPartitionCount)
The number of partitions you want to preconfigure for your domain.
|
void |
setDesiredReplicationCount(Integer desiredReplicationCount)
The number of replicas you want to preconfigure for each index
partition.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ScalingParameters |
withDesiredInstanceType(PartitionInstanceType desiredInstanceType)
The instance type that you want to preconfigure for your domain.
|
ScalingParameters |
withDesiredInstanceType(String desiredInstanceType)
The instance type that you want to preconfigure for your domain.
|
ScalingParameters |
withDesiredPartitionCount(Integer desiredPartitionCount)
The number of partitions you want to preconfigure for your domain.
|
ScalingParameters |
withDesiredReplicationCount(Integer desiredReplicationCount)
The number of replicas you want to preconfigure for each index
partition.
|
public String getDesiredInstanceType()
search.m1.small.
Constraints:
Allowed Values: search.m1.small, search.m1.large, search.m2.xlarge, search.m2.2xlarge, search.m3.medium, search.m3.large, search.m3.xlarge, search.m3.2xlarge
search.m1.small.PartitionInstanceTypepublic void setDesiredInstanceType(String desiredInstanceType)
search.m1.small.
Constraints:
Allowed Values: search.m1.small, search.m1.large, search.m2.xlarge, search.m2.2xlarge, search.m3.medium, search.m3.large, search.m3.xlarge, search.m3.2xlarge
desiredInstanceType - The instance type that you want to preconfigure for your domain. For
example, search.m1.small.PartitionInstanceTypepublic ScalingParameters withDesiredInstanceType(String desiredInstanceType)
search.m1.small.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: search.m1.small, search.m1.large, search.m2.xlarge, search.m2.2xlarge, search.m3.medium, search.m3.large, search.m3.xlarge, search.m3.2xlarge
desiredInstanceType - The instance type that you want to preconfigure for your domain. For
example, search.m1.small.PartitionInstanceTypepublic void setDesiredInstanceType(PartitionInstanceType desiredInstanceType)
search.m1.small.
Constraints:
Allowed Values: search.m1.small, search.m1.large, search.m2.xlarge, search.m2.2xlarge, search.m3.medium, search.m3.large, search.m3.xlarge, search.m3.2xlarge
desiredInstanceType - The instance type that you want to preconfigure for your domain. For
example, search.m1.small.PartitionInstanceTypepublic ScalingParameters withDesiredInstanceType(PartitionInstanceType desiredInstanceType)
search.m1.small.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: search.m1.small, search.m1.large, search.m2.xlarge, search.m2.2xlarge, search.m3.medium, search.m3.large, search.m3.xlarge, search.m3.2xlarge
desiredInstanceType - The instance type that you want to preconfigure for your domain. For
example, search.m1.small.PartitionInstanceTypepublic Integer getDesiredReplicationCount()
Constraints:
Range: 0 -
public void setDesiredReplicationCount(Integer desiredReplicationCount)
Constraints:
Range: 0 -
desiredReplicationCount - The number of replicas you want to preconfigure for each index
partition.public ScalingParameters withDesiredReplicationCount(Integer desiredReplicationCount)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
desiredReplicationCount - The number of replicas you want to preconfigure for each index
partition.public Integer getDesiredPartitionCount()
m2.2xlarge as the desired
instance type.
Constraints:
Range: 0 -
m2.2xlarge as the desired
instance type.public void setDesiredPartitionCount(Integer desiredPartitionCount)
m2.2xlarge as the desired
instance type.
Constraints:
Range: 0 -
desiredPartitionCount - The number of partitions you want to preconfigure for your domain.
Only valid when you select m2.2xlarge as the desired
instance type.public ScalingParameters withDesiredPartitionCount(Integer desiredPartitionCount)
m2.2xlarge as the desired
instance type.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
desiredPartitionCount - The number of partitions you want to preconfigure for your domain.
Only valid when you select m2.2xlarge as the desired
instance type.public String toString()
toString in class ObjectObject.toString()public ScalingParameters clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.