if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getTerminationPolicies() != null) sb.append("TerminationPolicies: ").append(getTerminationPolicies()).append(","); if (getNewInstancesProtectedFromScaleIn() != null) sb.append("NewInstancesProtectedFromScaleIn: ").append(getNewInstancesProtectedFromScaleIn()).append(",");
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getTerminationPolicies() == null) ? 0 : getTerminationPolicies().hashCode()); hashCode = prime * hashCode + ((getNewInstancesProtectedFromScaleIn() == null) ? 0 : getNewInstancesProtectedFromScaleIn().hashCode()); hashCode = prime * hashCode + ((getServiceLinkedRoleARN() == null) ? 0 : getServiceLinkedRoleARN().hashCode());
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getTerminationPolicies() == null ^ this.getTerminationPolicies() == null) return false; if (other.getTerminationPolicies() != null && other.getTerminationPolicies().equals(this.getTerminationPolicies()) == false) return false; if (other.getNewInstancesProtectedFromScaleIn() == null ^ this.getNewInstancesProtectedFromScaleIn() == null)
/** * <p> * The termination policies for the group. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param terminationPolicies <p> * The termination policies for the group. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public AutoScalingGroup withTerminationPolicies(String... terminationPolicies) { if (getTerminationPolicies() == null) { this.terminationPolicies = new java.util.ArrayList<String>(terminationPolicies.length); } for (String value : terminationPolicies) { this.terminationPolicies.add(value); } return this; }
if (getTags() != null) sb.append("Tags: " + getTags() + ","); if (getTerminationPolicies() != null) sb.append("TerminationPolicies: " + getTerminationPolicies() + ","); if (getNewInstancesProtectedFromScaleIn() != null) sb.append("NewInstancesProtectedFromScaleIn: " + getNewInstancesProtectedFromScaleIn()
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getTerminationPolicies() == null) ? 0 : getTerminationPolicies().hashCode()); hashCode = prime
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getTerminationPolicies() == null ^ this.getTerminationPolicies() == null) return false; if (other.getTerminationPolicies() != null && other.getTerminationPolicies().equals(this.getTerminationPolicies()) == false) return false; if (other.getNewInstancesProtectedFromScaleIn() == null
if (_autoScalingGroup.getTerminationPolicies() != null) { prefix = _prefix + "TerminationPolicies"; java.util.List<String> terminationPolicies = _autoScalingGroup.getTerminationPolicies(); int terminationPoliciesIndex = 1; String terminationPoliciesPrefix = prefix;
deployDescription.setSuspendedProcesses(sourceGroup.getSuspendedProcesses().stream() .map(SuspendedProcess::getProcessName).collect(Collectors.toSet())); deployDescription.setTerminationPolicies(sourceGroup.getTerminationPolicies()); deployDescription.setKernelId(launchConfig.getKernelId()); deployDescription.setEbsOptimized(launchConfig.getEbsOptimized());