@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getVolumeId() != null)
            sb.append("VolumeId: ").append(getVolumeId()).append(",");
        if (getModificationState() != null)
            sb.append("ModificationState: ").append(getModificationState()).append(",");
        if (getStatusMessage() != null)
            sb.append("StatusMessage: ").append(getStatusMessage()).append(",");
        if (getTargetSize() != null)
            sb.append("TargetSize: ").append(getTargetSize()).append(",");
        if (getTargetIops() != null)
            sb.append("TargetIops: ").append(getTargetIops()).append(",");
        if (getTargetVolumeType() != null)
            sb.append("TargetVolumeType: ").append(getTargetVolumeType()).append(",");
        if (getTargetThroughput() != null)
            sb.append("TargetThroughput: ").append(getTargetThroughput()).append(",");
        if (getTargetMultiAttachEnabled() != null)
            sb.append("TargetMultiAttachEnabled: ").append(getTargetMultiAttachEnabled()).append(",");
        if (getOriginalSize() != null)
            sb.append("OriginalSize: ").append(getOriginalSize()).append(",");
        if (getOriginalIops() != null)
            sb.append("OriginalIops: ").append(getOriginalIops()).append(",");
        if (getOriginalVolumeType() != null)
            sb.append("OriginalVolumeType: ").append(getOriginalVolumeType()).append(",");
        if (getOriginalThroughput() != null)
            sb.append("OriginalThroughput: ").append(getOriginalThroughput()).append(",");
        if (getOriginalMultiAttachEnabled() != null)
            sb.append("OriginalMultiAttachEnabled: ").append(getOriginalMultiAttachEnabled()).append(",");
        if (getProgress() != null)
            sb.append("Progress: ").append(getProgress()).append(",");
        if (getStartTime() != null)
            sb.append("StartTime: ").append(getStartTime()).append(",");
        if (getEndTime() != null)
            sb.append("EndTime: ").append(getEndTime());
        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-ec2/src/main/java/com/amazonaws/services/ec2/model/VolumeModification.java