Class ScalingPolicy
- java.lang.Object
-
- org.jclouds.rackspace.autoscale.v1.domain.CreateScalingPolicy
-
- org.jclouds.rackspace.autoscale.v1.domain.ScalingPolicy
-
- All Implemented Interfaces:
Comparable<CreateScalingPolicy>
public class ScalingPolicy extends CreateScalingPolicy
Autoscale ScalingPolicyResponse. Extends ScalingPolicy with id and links.- See Also:
Group.getScalingPolicies()
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jclouds.rackspace.autoscale.v1.domain.CreateScalingPolicy
CreateScalingPolicy.Builder, CreateScalingPolicy.ScalingPolicyScheduleType, CreateScalingPolicy.ScalingPolicyTargetType, CreateScalingPolicy.ScalingPolicyType
-
-
Constructor Summary
Constructors Constructor Description ScalingPolicy(String name, CreateScalingPolicy.ScalingPolicyType type, int cooldown, String target, CreateScalingPolicy.ScalingPolicyTargetType targetType, Map<String,String> args, List<Link> links, String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getId()
com.google.common.collect.ImmutableList<Link>
getLinks()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
String
toString()
-
Methods inherited from class org.jclouds.rackspace.autoscale.v1.domain.CreateScalingPolicy
builder, compareTo, getCooldown, getName, getSchedulingArgs, getSchedulingString, getSchedulingType, getTarget, getTargetType, getType, toBuilder
-
-
-
-
Constructor Detail
-
ScalingPolicy
@ConstructorProperties({"name","type","cooldown","target","targetType","args","links","id"}) public ScalingPolicy(String name, CreateScalingPolicy.ScalingPolicyType type, int cooldown, String target, CreateScalingPolicy.ScalingPolicyTargetType targetType, Map<String,String> args, List<Link> links, String id)
-
-
Method Detail
-
getId
public String getId()
- Returns:
- the unique id of this ScalingPolicy.
-
getLinks
public com.google.common.collect.ImmutableList<Link> getLinks()
- Returns:
- the links to this ScalingPolicy.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCreateScalingPolicy
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classCreateScalingPolicy
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
- Overrides:
string
in classCreateScalingPolicy
-
toString
public String toString()
- Overrides:
toString
in classCreateScalingPolicy
-
-