@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ScalingPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Represents a scaling policy.
| Constructor and Description |
|---|
ScalingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
ScalingPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyName()
The name of the scaling policy.
|
String |
getPolicyType()
The type of scaling policy.
|
TargetTrackingConfiguration |
getTargetTrackingConfiguration()
The target tracking scaling policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPolicyName(String policyName)
The name of the scaling policy.
|
void |
setPolicyType(String policyType)
The type of scaling policy.
|
void |
setTargetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
The target tracking scaling policy.
|
String |
toString()
Returns a string representation of this object.
|
ScalingPolicy |
withPolicyName(String policyName)
The name of the scaling policy.
|
ScalingPolicy |
withPolicyType(PolicyType policyType)
The type of scaling policy.
|
ScalingPolicy |
withPolicyType(String policyType)
The type of scaling policy.
|
ScalingPolicy |
withTargetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
The target tracking scaling policy.
|
public void setPolicyName(String policyName)
The name of the scaling policy.
policyName - The name of the scaling policy.public String getPolicyName()
The name of the scaling policy.
public ScalingPolicy withPolicyName(String policyName)
The name of the scaling policy.
policyName - The name of the scaling policy.public void setPolicyType(String policyType)
The type of scaling policy.
policyType - The type of scaling policy.PolicyTypepublic String getPolicyType()
The type of scaling policy.
PolicyTypepublic ScalingPolicy withPolicyType(String policyType)
The type of scaling policy.
policyType - The type of scaling policy.PolicyTypepublic ScalingPolicy withPolicyType(PolicyType policyType)
The type of scaling policy.
policyType - The type of scaling policy.PolicyTypepublic void setTargetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
The target tracking scaling policy. Includes support for predefined or customized metrics.
targetTrackingConfiguration - The target tracking scaling policy. Includes support for predefined or customized metrics.public TargetTrackingConfiguration getTargetTrackingConfiguration()
The target tracking scaling policy. Includes support for predefined or customized metrics.
public ScalingPolicy withTargetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
The target tracking scaling policy. Includes support for predefined or customized metrics.
targetTrackingConfiguration - The target tracking scaling policy. Includes support for predefined or customized metrics.public String toString()
toString in class ObjectObject.toString()public ScalingPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.