public class ScalingParameters
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The desired instance type and desired number of replicas of each index partition.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
desiredInstanceType
The instance type that you want to preconfigure for your domain.
|
private java.lang.Integer |
desiredPartitionCount
The number of partitions you want to preconfigure for your domain.
|
private java.lang.Integer |
desiredReplicationCount
The number of replicas you want to preconfigure for each index partition.
|
Constructor and Description |
---|
ScalingParameters() |
Modifier and Type | Method and Description |
---|---|
ScalingParameters |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDesiredInstanceType()
The instance type that you want to preconfigure for your domain.
|
java.lang.Integer |
getDesiredPartitionCount()
The number of partitions you want to preconfigure for your domain.
|
java.lang.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(java.lang.String desiredInstanceType)
The instance type that you want to preconfigure for your domain.
|
void |
setDesiredPartitionCount(java.lang.Integer desiredPartitionCount)
The number of partitions you want to preconfigure for your domain.
|
void |
setDesiredReplicationCount(java.lang.Integer desiredReplicationCount)
The number of replicas you want to preconfigure for each index partition.
|
java.lang.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(java.lang.String desiredInstanceType)
The instance type that you want to preconfigure for your domain.
|
ScalingParameters |
withDesiredPartitionCount(java.lang.Integer desiredPartitionCount)
The number of partitions you want to preconfigure for your domain.
|
ScalingParameters |
withDesiredReplicationCount(java.lang.Integer desiredReplicationCount)
The number of replicas you want to preconfigure for each index partition.
|
private java.lang.String desiredInstanceType
The instance type that you want to preconfigure for your domain. For
example, search.m1.small
.
private java.lang.Integer desiredReplicationCount
The number of replicas you want to preconfigure for each index partition.
private java.lang.Integer 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 void setDesiredInstanceType(java.lang.String desiredInstanceType)
The instance type that you want to preconfigure for your domain. For
example, search.m1.small
.
desiredInstanceType
- The instance type that you want to preconfigure for your domain.
For example, search.m1.small
.PartitionInstanceType
public java.lang.String getDesiredInstanceType()
The instance type that you want to preconfigure for your domain. For
example, search.m1.small
.
search.m1.small
.PartitionInstanceType
public ScalingParameters withDesiredInstanceType(java.lang.String desiredInstanceType)
The instance type that you want to preconfigure for your domain. For
example, search.m1.small
.
desiredInstanceType
- The instance type that you want to preconfigure for your domain.
For example, search.m1.small
.PartitionInstanceType
public void setDesiredInstanceType(PartitionInstanceType desiredInstanceType)
The instance type that you want to preconfigure for your domain. For
example, search.m1.small
.
desiredInstanceType
- The instance type that you want to preconfigure for your domain.
For example, search.m1.small
.PartitionInstanceType
public ScalingParameters withDesiredInstanceType(PartitionInstanceType desiredInstanceType)
The instance type that you want to preconfigure for your domain. For
example, search.m1.small
.
desiredInstanceType
- The instance type that you want to preconfigure for your domain.
For example, search.m1.small
.PartitionInstanceType
public void setDesiredReplicationCount(java.lang.Integer desiredReplicationCount)
The number of replicas you want to preconfigure for each index partition.
desiredReplicationCount
- The number of replicas you want to preconfigure for each index
partition.public java.lang.Integer getDesiredReplicationCount()
The number of replicas you want to preconfigure for each index partition.
public ScalingParameters withDesiredReplicationCount(java.lang.Integer desiredReplicationCount)
The number of replicas you want to preconfigure for each index partition.
desiredReplicationCount
- The number of replicas you want to preconfigure for each index
partition.public void setDesiredPartitionCount(java.lang.Integer desiredPartitionCount)
The number of partitions you want to preconfigure for your domain. Only
valid when you select m2.2xlarge
as the desired instance
type.
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 java.lang.Integer getDesiredPartitionCount()
The number of partitions you want to preconfigure for your domain. Only
valid when you select m2.2xlarge
as the desired instance
type.
m2.2xlarge
as the
desired instance type.public ScalingParameters withDesiredPartitionCount(java.lang.Integer desiredPartitionCount)
The number of partitions you want to preconfigure for your domain. Only
valid when you select m2.2xlarge
as the desired instance
type.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ScalingParameters clone()
clone
in class java.lang.Object