Class ScalingParameters
- java.lang.Object
-
- com.amazonaws.services.cloudsearchv2.model.ScalingParameters
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ScalingParameters extends Object implements Serializable, Cloneable
The desired instance type and desired number of replicas of each index partition.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScalingParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalingParametersclone()booleanequals(Object obj)StringgetDesiredInstanceType()The instance type that you want to preconfigure for your domain.IntegergetDesiredPartitionCount()The number of partitions you want to preconfigure for your domain.IntegergetDesiredReplicationCount()The number of replicas you want to preconfigure for each index partition.inthashCode()voidsetDesiredInstanceType(PartitionInstanceType desiredInstanceType)The instance type that you want to preconfigure for your domain.voidsetDesiredInstanceType(String desiredInstanceType)The instance type that you want to preconfigure for your domain.voidsetDesiredPartitionCount(Integer desiredPartitionCount)The number of partitions you want to preconfigure for your domain.voidsetDesiredReplicationCount(Integer desiredReplicationCount)The number of replicas you want to preconfigure for each index partition.StringtoString()Returns a string representation of this object; useful for testing and debugging.ScalingParameterswithDesiredInstanceType(PartitionInstanceType desiredInstanceType)The instance type that you want to preconfigure for your domain.ScalingParameterswithDesiredInstanceType(String desiredInstanceType)The instance type that you want to preconfigure for your domain.ScalingParameterswithDesiredPartitionCount(Integer desiredPartitionCount)The number of partitions you want to preconfigure for your domain.ScalingParameterswithDesiredReplicationCount(Integer desiredReplicationCount)The number of replicas you want to preconfigure for each index partition.
-
-
-
Method Detail
-
setDesiredInstanceType
public void setDesiredInstanceType(String desiredInstanceType)
The instance type that you want to preconfigure for your domain. For example,
search.m1.small.- Parameters:
desiredInstanceType- The instance type that you want to preconfigure for your domain. For example,search.m1.small.- See Also:
PartitionInstanceType
-
getDesiredInstanceType
public String getDesiredInstanceType()
The instance type that you want to preconfigure for your domain. For example,
search.m1.small.- Returns:
- The instance type that you want to preconfigure for your domain.
For example,
search.m1.small. - See Also:
PartitionInstanceType
-
withDesiredInstanceType
public ScalingParameters withDesiredInstanceType(String desiredInstanceType)
The instance type that you want to preconfigure for your domain. For example,
search.m1.small.- Parameters:
desiredInstanceType- The instance type that you want to preconfigure for your domain. For example,search.m1.small.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PartitionInstanceType
-
setDesiredInstanceType
public void setDesiredInstanceType(PartitionInstanceType desiredInstanceType)
The instance type that you want to preconfigure for your domain. For example,
search.m1.small.- Parameters:
desiredInstanceType- The instance type that you want to preconfigure for your domain. For example,search.m1.small.- See Also:
PartitionInstanceType
-
withDesiredInstanceType
public ScalingParameters withDesiredInstanceType(PartitionInstanceType desiredInstanceType)
The instance type that you want to preconfigure for your domain. For example,
search.m1.small.- Parameters:
desiredInstanceType- The instance type that you want to preconfigure for your domain. For example,search.m1.small.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PartitionInstanceType
-
setDesiredReplicationCount
public void setDesiredReplicationCount(Integer desiredReplicationCount)
The number of replicas you want to preconfigure for each index partition.
- Parameters:
desiredReplicationCount- The number of replicas you want to preconfigure for each index partition.
-
getDesiredReplicationCount
public Integer getDesiredReplicationCount()
The number of replicas you want to preconfigure for each index partition.
- Returns:
- The number of replicas you want to preconfigure for each index partition.
-
withDesiredReplicationCount
public ScalingParameters withDesiredReplicationCount(Integer desiredReplicationCount)
The number of replicas you want to preconfigure for each index partition.
- Parameters:
desiredReplicationCount- The number of replicas you want to preconfigure for each index partition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDesiredPartitionCount
public void setDesiredPartitionCount(Integer desiredPartitionCount)
The number of partitions you want to preconfigure for your domain. Only valid when you select
m2.2xlargeas the desired instance type.- Parameters:
desiredPartitionCount- The number of partitions you want to preconfigure for your domain. Only valid when you selectm2.2xlargeas the desired instance type.
-
getDesiredPartitionCount
public Integer getDesiredPartitionCount()
The number of partitions you want to preconfigure for your domain. Only valid when you select
m2.2xlargeas the desired instance type.- Returns:
- The number of partitions you want to preconfigure for your
domain. Only valid when you select
m2.2xlargeas the desired instance type.
-
withDesiredPartitionCount
public ScalingParameters withDesiredPartitionCount(Integer desiredPartitionCount)
The number of partitions you want to preconfigure for your domain. Only valid when you select
m2.2xlargeas the desired instance type.- Parameters:
desiredPartitionCount- The number of partitions you want to preconfigure for your domain. Only valid when you selectm2.2xlargeas the desired instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ScalingParameters clone()
-
-