Exemplo n.º 1
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof Trail == false) return false;
    Trail other = (Trail) obj;

    if (other.getName() == null ^ this.getName() == null) return false;
    if (other.getName() != null && other.getName().equals(this.getName()) == false) return false;
    if (other.getS3BucketName() == null ^ this.getS3BucketName() == null) return false;
    if (other.getS3BucketName() != null
        && other.getS3BucketName().equals(this.getS3BucketName()) == false) return false;
    if (other.getS3KeyPrefix() == null ^ this.getS3KeyPrefix() == null) return false;
    if (other.getS3KeyPrefix() != null
        && other.getS3KeyPrefix().equals(this.getS3KeyPrefix()) == false) return false;
    if (other.getSnsTopicName() == null ^ this.getSnsTopicName() == null) return false;
    if (other.getSnsTopicName() != null
        && other.getSnsTopicName().equals(this.getSnsTopicName()) == false) return false;
    if (other.isIncludeGlobalServiceEvents() == null ^ this.isIncludeGlobalServiceEvents() == null)
      return false;
    if (other.isIncludeGlobalServiceEvents() != null
        && other.isIncludeGlobalServiceEvents().equals(this.isIncludeGlobalServiceEvents())
            == false) return false;
    if (other.getCloudWatchLogsLogGroupArn() == null ^ this.getCloudWatchLogsLogGroupArn() == null)
      return false;
    if (other.getCloudWatchLogsLogGroupArn() != null
        && other.getCloudWatchLogsLogGroupArn().equals(this.getCloudWatchLogsLogGroupArn())
            == false) return false;
    if (other.getCloudWatchLogsRoleArn() == null ^ this.getCloudWatchLogsRoleArn() == null)
      return false;
    if (other.getCloudWatchLogsRoleArn() != null
        && other.getCloudWatchLogsRoleArn().equals(this.getCloudWatchLogsRoleArn()) == false)
      return false;
    return true;
  }