* Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this * cluster. *
*/ private String clusterId; /** ** Specifies the ID of the instance group to which the scaling policy is applied. *
*/ private String instanceGroupId; /** ** The automatic scaling policy definition. *
*/ private AutoScalingPolicyDescription autoScalingPolicy; /** ** The Amazon Resource Name (ARN) of the cluster. *
*/ private String clusterArn; /** ** Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this * cluster. *
* * @param clusterId * Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is * within this cluster. */ public void setClusterId(String clusterId) { this.clusterId = clusterId; } /** ** Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this * cluster. *
* * @return Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is * within this cluster. */ public String getClusterId() { return this.clusterId; } /** ** Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this * cluster. *
* * @param clusterId * Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is * within this cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public PutAutoScalingPolicyResult withClusterId(String clusterId) { setClusterId(clusterId); return this; } /** ** Specifies the ID of the instance group to which the scaling policy is applied. *
* * @param instanceGroupId * Specifies the ID of the instance group to which the scaling policy is applied. */ public void setInstanceGroupId(String instanceGroupId) { this.instanceGroupId = instanceGroupId; } /** ** Specifies the ID of the instance group to which the scaling policy is applied. *
* * @return Specifies the ID of the instance group to which the scaling policy is applied. */ public String getInstanceGroupId() { return this.instanceGroupId; } /** ** Specifies the ID of the instance group to which the scaling policy is applied. *
* * @param instanceGroupId * Specifies the ID of the instance group to which the scaling policy is applied. * @return Returns a reference to this object so that method calls can be chained together. */ public PutAutoScalingPolicyResult withInstanceGroupId(String instanceGroupId) { setInstanceGroupId(instanceGroupId); return this; } /** ** The automatic scaling policy definition. *
* * @param autoScalingPolicy * The automatic scaling policy definition. */ public void setAutoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy) { this.autoScalingPolicy = autoScalingPolicy; } /** ** The automatic scaling policy definition. *
* * @return The automatic scaling policy definition. */ public AutoScalingPolicyDescription getAutoScalingPolicy() { return this.autoScalingPolicy; } /** ** The automatic scaling policy definition. *
* * @param autoScalingPolicy * The automatic scaling policy definition. * @return Returns a reference to this object so that method calls can be chained together. */ public PutAutoScalingPolicyResult withAutoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy) { setAutoScalingPolicy(autoScalingPolicy); return this; } /** ** The Amazon Resource Name (ARN) of the cluster. *
* * @param clusterArn * The Amazon Resource Name (ARN) of the cluster. */ public void setClusterArn(String clusterArn) { this.clusterArn = clusterArn; } /** ** The Amazon Resource Name (ARN) of the cluster. *
* * @return The Amazon Resource Name (ARN) of the cluster. */ public String getClusterArn() { return this.clusterArn; } /** ** The Amazon Resource Name (ARN) of the cluster. *
* * @param clusterArn * The Amazon Resource Name (ARN) of the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public PutAutoScalingPolicyResult withClusterArn(String clusterArn) { setClusterArn(clusterArn); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getClusterId() != null) sb.append("ClusterId: ").append(getClusterId()).append(","); if (getInstanceGroupId() != null) sb.append("InstanceGroupId: ").append(getInstanceGroupId()).append(","); if (getAutoScalingPolicy() != null) sb.append("AutoScalingPolicy: ").append(getAutoScalingPolicy()).append(","); if (getClusterArn() != null) sb.append("ClusterArn: ").append(getClusterArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutAutoScalingPolicyResult == false) return false; PutAutoScalingPolicyResult other = (PutAutoScalingPolicyResult) obj; if (other.getClusterId() == null ^ this.getClusterId() == null) return false; if (other.getClusterId() != null && other.getClusterId().equals(this.getClusterId()) == false) return false; if (other.getInstanceGroupId() == null ^ this.getInstanceGroupId() == null) return false; if (other.getInstanceGroupId() != null && other.getInstanceGroupId().equals(this.getInstanceGroupId()) == false) return false; if (other.getAutoScalingPolicy() == null ^ this.getAutoScalingPolicy() == null) return false; if (other.getAutoScalingPolicy() != null && other.getAutoScalingPolicy().equals(this.getAutoScalingPolicy()) == false) return false; if (other.getClusterArn() == null ^ this.getClusterArn() == null) return false; if (other.getClusterArn() != null && other.getClusterArn().equals(this.getClusterArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClusterId() == null) ? 0 : getClusterId().hashCode()); hashCode = prime * hashCode + ((getInstanceGroupId() == null) ? 0 : getInstanceGroupId().hashCode()); hashCode = prime * hashCode + ((getAutoScalingPolicy() == null) ? 0 : getAutoScalingPolicy().hashCode()); hashCode = prime * hashCode + ((getClusterArn() == null) ? 0 : getClusterArn().hashCode()); return hashCode; } @Override public PutAutoScalingPolicyResult clone() { try { return (PutAutoScalingPolicyResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }