public class ScalingParameters extends Object implements Serializable
The desired instance type and desired number of replicas of each index partition.
| Constructor and Description |
|---|
ScalingParameters() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDesiredInstanceType()
The instance type that 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 |
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 |
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.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
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
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
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
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 String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.