@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGroupName() == null) ? 0 : getGroupName().hashCode()); hashCode = prime * hashCode + ((getGroupId() == null) ? 0 : getGroupId().hashCode()); return hashCode; }
/** * 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 (getGroupName() != null) sb.append("GroupName: ").append(getGroupName()).append(","); if (getGroupId() != null) sb.append("GroupId: ").append(getGroupId()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GroupIdentifier == false) return false; GroupIdentifier other = (GroupIdentifier) obj; if (other.getGroupName() == null ^ this.getGroupName() == null) return false; if (other.getGroupName() != null && other.getGroupName().equals(this.getGroupName()) == false) return false; if (other.getGroupId() == null ^ this.getGroupId() == null) return false; if (other.getGroupId() != null && other.getGroupId().equals(this.getGroupId()) == false) return false; return true; }
private void populateReservationSecurityGroupNames(Reservation reservation) { List<String> groupNames = new ArrayList<String>(); for (GroupIdentifier group : reservation.getGroups()) { groupNames.add(group.getGroupName()); } reservation.setGroupNames(groupNames); }
private void populateLaunchSpecificationSecurityGroupNames(LaunchSpecification launchSpecification) { List<String> groupNames = new ArrayList<String>(); for (GroupIdentifier group : launchSpecification.getAllSecurityGroups()) { groupNames.add(group.getGroupName()); } launchSpecification.setSecurityGroups(groupNames); } }
if (group.getGroupName() != null) { request.addParameter("LaunchSpecification.SecurityGroup." + groupNameCount++, group.getGroupName());
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGroupName() == null) ? 0 : getGroupName().hashCode()); hashCode = prime * hashCode + ((getGroupId() == null) ? 0 : getGroupId().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GroupIdentifier == false) return false; GroupIdentifier other = (GroupIdentifier)obj; if (other.getGroupName() == null ^ this.getGroupName() == null) return false; if (other.getGroupName() != null && other.getGroupName().equals(this.getGroupName()) == false) return false; if (other.getGroupId() == null ^ this.getGroupId() == null) return false; if (other.getGroupId() != null && other.getGroupId().equals(this.getGroupId()) == false) return false; return true; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getGroupName() != null) sb.append("GroupName: " + getGroupName() + ","); if (getGroupId() != null) sb.append("GroupId: " + getGroupId() ); sb.append("}"); return sb.toString(); }
private void populateReservationSecurityGroupNames(Reservation reservation) { List<String> groupNames = new ArrayList<String>(); for (GroupIdentifier group : reservation.getGroups()) { groupNames.add(group.getGroupName()); } reservation.setGroupNames(groupNames); }
private void populateLaunchSpecificationSecurityGroupNames( LaunchSpecification launchSpecification) { List<String> groupNames = new ArrayList<String>(); for (GroupIdentifier group : launchSpecification.getAllSecurityGroups()) { groupNames.add(group.getGroupName()); } launchSpecification.setSecurityGroups(groupNames); } }
if (group.getGroupName() != null) { request.addParameter("LaunchSpecification.SecurityGroup." + groupNameCount++, group.getGroupName());
if (launchSpecificationAllSecurityGroupsListValue.getGroupName() != null) { request.addParameter("LaunchSpecification.GroupSet." + allSecurityGroupsListIndex + ".GroupName", StringUtils.fromString(launchSpecificationAllSecurityGroupsListValue.getGroupName()));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGroupName() == null) ? 0 : getGroupName().hashCode()); hashCode = prime * hashCode + ((getGroupId() == null) ? 0 : getGroupId().hashCode()); return hashCode; }
public SecurityGroup(GroupIdentifier id) { this.id = id.getGroupId(); this.name = id.getGroupName(); } }
private void populateReservationSecurityGroupNames(Reservation reservation) { List<String> groupNames = new ArrayList<String>(); for (GroupIdentifier group : reservation.getGroups()) { groupNames.add(group.getGroupName()); } reservation.setGroupNames(groupNames); }
private void populateLaunchSpecificationSecurityGroupNames(LaunchSpecification launchSpecification) { List<String> groupNames = new ArrayList<String>(); for (GroupIdentifier group : launchSpecification.getAllSecurityGroups()) { groupNames.add(group.getGroupName()); } launchSpecification.setSecurityGroups(groupNames); } }
if (spotFleetLaunchSpecificationSecurityGroupsListValue.getGroupName() != null) { request.addParameter("SpotFleetRequestConfig.LaunchSpecifications." + launchSpecificationsListIndex + ".GroupSet." + securityGroupsListIndex + ".GroupName", StringUtils.fromString(spotFleetLaunchSpecificationSecurityGroupsListValue.getGroupName()));
GroupIdentifier groupIdentifierMember = allSecurityGroupsListValue; if (groupIdentifierMember != null) { if (groupIdentifierMember.getGroupName() != null) { request.addParameter("LaunchSpecification.GroupSet." + allSecurityGroupsListIndex + ".GroupName", StringUtils.fromString(groupIdentifierMember.getGroupName()));
GroupIdentifier groupIdentifierMember = securityGroupsListValue; if (groupIdentifierMember != null) { if (groupIdentifierMember.getGroupName() != null) { request.addParameter("SpotFleetRequestConfig.LaunchSpecifications." + launchSpecificationsListIndex + ".GroupSet." + securityGroupsListIndex + ".GroupName", StringUtils.fromString(groupIdentifierMember.getGroupName()));