コード例 #1
0
  public static void deleteAutoScalingGroup() {

    DeleteAutoScalingGroupRequest request = new DeleteAutoScalingGroupRequest();
    request.setAutoScalingGroupName("ProjectTwoAutoScaleGroup");
    request.setForceDelete(true);
    scaleClient.deleteAutoScalingGroup(request);
  }
コード例 #2
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof DeleteAutoScalingGroupRequest == false) return false;
    DeleteAutoScalingGroupRequest other = (DeleteAutoScalingGroupRequest) obj;
    if (other.getAutoScalingGroupName() == null ^ this.getAutoScalingGroupName() == null)
      return false;
    if (other.getAutoScalingGroupName() != null
        && other.getAutoScalingGroupName().equals(this.getAutoScalingGroupName()) == false)
      return false;
    if (other.getForceDelete() == null ^ this.getForceDelete() == null) return false;
    if (other.getForceDelete() != null
        && other.getForceDelete().equals(this.getForceDelete()) == false) return false;
    return true;
  }