@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof TargetLocation == false)
            return false;
        TargetLocation other = (TargetLocation) obj;
        if (other.getAccounts() == null ^ this.getAccounts() == null)
            return false;
        if (other.getAccounts() != null && other.getAccounts().equals(this.getAccounts()) == false)
            return false;
        if (other.getRegions() == null ^ this.getRegions() == null)
            return false;
        if (other.getRegions() != null && other.getRegions().equals(this.getRegions()) == false)
            return false;
        if (other.getTargetLocationMaxConcurrency() == null ^ this.getTargetLocationMaxConcurrency() == null)
            return false;
        if (other.getTargetLocationMaxConcurrency() != null && other.getTargetLocationMaxConcurrency().equals(this.getTargetLocationMaxConcurrency()) == false)
            return false;
        if (other.getTargetLocationMaxErrors() == null ^ this.getTargetLocationMaxErrors() == null)
            return false;
        if (other.getTargetLocationMaxErrors() != null && other.getTargetLocationMaxErrors().equals(this.getTargetLocationMaxErrors()) == false)
            return false;
        if (other.getExecutionRoleName() == null ^ this.getExecutionRoleName() == null)
            return false;
        if (other.getExecutionRoleName() != null && other.getExecutionRoleName().equals(this.getExecutionRoleName()) == false)
            return false;
        if (other.getTargetLocationAlarmConfiguration() == null ^ this.getTargetLocationAlarmConfiguration() == null)
            return false;
        if (other.getTargetLocationAlarmConfiguration() != null
                && other.getTargetLocationAlarmConfiguration().equals(this.getTargetLocationAlarmConfiguration()) == false)
            return false;
        return true;
    }
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()
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/TargetLocation.java