@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getResourceId() != null)
            sb.append("ResourceId: ").append(getResourceId()).append(",");
        if (getInstanceName() != null)
            sb.append("InstanceName: ").append(getInstanceName()).append(",");
        if (getTags() != null)
            sb.append("Tags: ").append(getTags()).append(",");
        if (getResourceDetails() != null)
            sb.append("ResourceDetails: ").append(getResourceDetails()).append(",");
        if (getResourceUtilization() != null)
            sb.append("ResourceUtilization: ").append(getResourceUtilization()).append(",");
        if (getReservationCoveredHoursInLookbackPeriod() != null)
            sb.append("ReservationCoveredHoursInLookbackPeriod: ").append(getReservationCoveredHoursInLookbackPeriod()).append(",");
        if (getSavingsPlansCoveredHoursInLookbackPeriod() != null)
            sb.append("SavingsPlansCoveredHoursInLookbackPeriod: ").append(getSavingsPlansCoveredHoursInLookbackPeriod()).append(",");
        if (getOnDemandHoursInLookbackPeriod() != null)
            sb.append("OnDemandHoursInLookbackPeriod: ").append(getOnDemandHoursInLookbackPeriod()).append(",");
        if (getTotalRunningHoursInLookbackPeriod() != null)
            sb.append("TotalRunningHoursInLookbackPeriod: ").append(getTotalRunningHoursInLookbackPeriod()).append(",");
        if (getMonthlyCost() != null)
            sb.append("MonthlyCost: ").append(getMonthlyCost()).append(",");
        if (getCurrencyCode() != null)
            sb.append("CurrencyCode: ").append(getCurrencyCode());
        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-costexplorer/src/main/java/com/amazonaws/services/costexplorer/model/CurrentInstance.java