@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLaunchTemplate() == null) ? 0 : getLaunchTemplate().hashCode()); hashCode = prime * hashCode + ((getInstancesDistribution() == null) ? 0 : getInstancesDistribution().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getActivity() == null) ? 0 : getActivity().hashCode()); return hashCode; }
/** * <p> * The metric type. * </p> * * @param predefinedMetricType * The metric type. * @see MetricType */ public void setPredefinedMetricType(MetricType predefinedMetricType) { withPredefinedMetricType(predefinedMetricType); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPredefinedMetricSpecification() == null) ? 0 : getPredefinedMetricSpecification().hashCode()); hashCode = prime * hashCode + ((getCustomizedMetricSpecification() == null) ? 0 : getCustomizedMetricSpecification().hashCode()); hashCode = prime * hashCode + ((getTargetValue() == null) ? 0 : getTargetValue().hashCode()); hashCode = prime * hashCode + ((getDisableScaleIn() == null) ? 0 : getDisableScaleIn().hashCode()); return hashCode; }
/** * Checks if the load balancer addition is disabled or not. * * @param asg * - The ASG object for which the status needs to be checked * @return - true, if the load balancer addition is suspended, false * otherwise. */ private boolean isAddToLoadBalancerSuspended(AutoScalingGroup asg) { List<SuspendedProcess> suspendedProcesses = asg.getSuspendedProcesses(); for (SuspendedProcess process : suspendedProcesses) { if (PROP_ADD_TO_LOAD_BALANCER.equals(process.getProcessName())) { return true; } } return false; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLaunchTemplateSpecification() == null) ? 0 : getLaunchTemplateSpecification().hashCode()); hashCode = prime * hashCode + ((getOverrides() == null) ? 0 : getOverrides().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TerminateInstanceInAutoScalingGroupResult == false) return false; TerminateInstanceInAutoScalingGroupResult other = (TerminateInstanceInAutoScalingGroupResult) obj; if (other.getActivity() == null ^ this.getActivity() == null) return false; if (other.getActivity() != null && other.getActivity().equals(this.getActivity()) == false) return false; return true; }
/** * <p> * The name of the alarm. * </p> * * @param alarmName * The name of the alarm. * @return Returns a reference to this object so that method calls can be chained together. */ public Alarm withAlarmName(String alarmName) { setAlarmName(alarmName); return this; }
/** * <p> * The end time of the activity. * </p> * * @param endTime * The end time of the activity. * @return Returns a reference to this object so that method calls can be chained together. */ public Activity withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; }
/** * <p> * The IDs of the instances. You can specify up to 20 instances. * </p> * * @param instanceIds * The IDs of the instances. You can specify up to 20 instances. * @return Returns a reference to this object so that method calls can be chained together. */ public EnterStandbyRequest withInstanceIds(java.util.Collection<String> instanceIds) { setInstanceIds(instanceIds); return this; }
/** * <p> * The scaling policies. * </p> * * @param scalingPolicies * The scaling policies. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribePoliciesResult withScalingPolicies(java.util.Collection<ScalingPolicy> scalingPolicies) { setScalingPolicies(scalingPolicies); return this; }
/** * <p> * The value of the filter. * </p> * * @param values * The value of the filter. * @return Returns a reference to this object so that method calls can be chained together. */ public Filter withValues(java.util.Collection<String> values) { setValues(values); return this; }
/** * <p> * The current status of the activity. * </p> * * @param statusCode * The current status of the activity. * @see ScalingActivityStatusCode */ public void setStatusCode(ScalingActivityStatusCode statusCode) { withStatusCode(statusCode); }
/** * <p> * A description of the current lifecycle state. The <code>Quarantined</code> state is not used. * </p> * * @param lifecycleState * A description of the current lifecycle state. The <code>Quarantined</code> state is not used. * @see LifecycleState */ public void setLifecycleState(LifecycleState lifecycleState) { withLifecycleState(lifecycleState); }
/** * <p> * The statistic of the metric. * </p> * * @param statistic * The statistic of the metric. * @see MetricStatistic */ public void setStatistic(MetricStatistic statistic) { withStatistic(statistic); }
/** * <p> * The name of the Auto Scaling group. * </p> * * @param autoScalingGroupName * The name of the Auto Scaling group. * @return Returns a reference to this object so that method calls can be chained together. */ public ExitStandbyRequest withAutoScalingGroupName(String autoScalingGroupName) { setAutoScalingGroupName(autoScalingGroupName); return this; }
/** * <p> * The name of the Auto Scaling group. * </p> * * @param autoScalingGroupName * The name of the Auto Scaling group. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribePoliciesRequest withAutoScalingGroupName(String autoScalingGroupName) { setAutoScalingGroupName(autoScalingGroupName); return this; }
/** * <p> * The name of the Auto Scaling group. * </p> * * @param autoScalingGroupName * The name of the Auto Scaling group. * @return Returns a reference to this object so that method calls can be chained together. */ public AttachInstancesRequest withAutoScalingGroupName(String autoScalingGroupName) { setAutoScalingGroupName(autoScalingGroupName); return this; }
/** * <p> * The name of the Auto Scaling group. * </p> * * @param autoScalingGroupName * The name of the Auto Scaling group. * @return Returns a reference to this object so that method calls can be chained together. */ public EnterStandbyRequest withAutoScalingGroupName(String autoScalingGroupName) { setAutoScalingGroupName(autoScalingGroupName); return this; }
/** * <p> * The name or ARN of the policy. * </p> * * @param policyName * The name or ARN of the policy. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecutePolicyRequest withPolicyName(String policyName) { setPolicyName(policyName); return this; }