@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getAccounts() != null)
            sb.append("Accounts: ").append(getAccounts()).append(",");
        if (getRegions() != null)
            sb.append("Regions: ").append(getRegions()).append(",");
        if (getTargetLocationMaxConcurrency() != null)
            sb.append("TargetLocationMaxConcurrency: ").append(getTargetLocationMaxConcurrency()).append(",");
        if (getTargetLocationMaxErrors() != null)
            sb.append("TargetLocationMaxErrors: ").append(getTargetLocationMaxErrors()).append(",");
        if (getExecutionRoleName() != null)
            sb.append("ExecutionRoleName: ").append(getExecutionRoleName()).append(",");
        if (getTargetLocationAlarmConfiguration() != null)
            sb.append("TargetLocationAlarmConfiguration: ").append(getTargetLocationAlarmConfiguration());
        sb.append("}");
        return sb.toString();
    }
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