@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; useful for testing and debugging.
|
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.PolicyType
public String getPolicyType()
The type of scaling policy.
PolicyType
public ScalingPolicy withPolicyType(String policyType)
The type of scaling policy.
policyType
- The type of scaling policy.PolicyType
public ScalingPolicy withPolicyType(PolicyType policyType)
The type of scaling policy.
policyType
- The type of scaling policy.PolicyType
public void setTargetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
The target tracking scaling policy.
targetTrackingConfiguration
- The target tracking scaling policy.public TargetTrackingConfiguration getTargetTrackingConfiguration()
The target tracking scaling policy.
public ScalingPolicy withTargetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
The target tracking scaling policy.
targetTrackingConfiguration
- The target tracking scaling policy.public String toString()
toString
in class Object
Object.toString()
public ScalingPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.