@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getName() != null)
            sb.append("Name: ").append(getName()).append(",");
        if (getBlockers() != null)
            sb.append("Blockers: ").append(getBlockers()).append(",");
        if (getActions() != null)
            sb.append("Actions: ").append(getActions()).append(",");
        if (getOnFailure() != null)
            sb.append("OnFailure: ").append(getOnFailure()).append(",");
        if (getOnSuccess() != null)
            sb.append("OnSuccess: ").append(getOnSuccess()).append(",");
        if (getBeforeEntry() != null)
            sb.append("BeforeEntry: ").append(getBeforeEntry());
        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-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/StageDeclaration.java