@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getOfferingId() != null)
            sb.append("OfferingId: ").append(getOfferingId()).append(",");
        if (getSavingsPlanId() != null)
            sb.append("SavingsPlanId: ").append(getSavingsPlanId()).append(",");
        if (getSavingsPlanArn() != null)
            sb.append("SavingsPlanArn: ").append(getSavingsPlanArn()).append(",");
        if (getDescription() != null)
            sb.append("Description: ").append(getDescription()).append(",");
        if (getStart() != null)
            sb.append("Start: ").append(getStart()).append(",");
        if (getEnd() != null)
            sb.append("End: ").append(getEnd()).append(",");
        if (getState() != null)
            sb.append("State: ").append(getState()).append(",");
        if (getRegion() != null)
            sb.append("Region: ").append(getRegion()).append(",");
        if (getEc2InstanceFamily() != null)
            sb.append("Ec2InstanceFamily: ").append(getEc2InstanceFamily()).append(",");
        if (getSavingsPlanType() != null)
            sb.append("SavingsPlanType: ").append(getSavingsPlanType()).append(",");
        if (getPaymentOption() != null)
            sb.append("PaymentOption: ").append(getPaymentOption()).append(",");
        if (getProductTypes() != null)
            sb.append("ProductTypes: ").append(getProductTypes()).append(",");
        if (getCurrency() != null)
            sb.append("Currency: ").append(getCurrency()).append(",");
        if (getCommitment() != null)
            sb.append("Commitment: ").append(getCommitment()).append(",");
        if (getUpfrontPaymentAmount() != null)
            sb.append("UpfrontPaymentAmount: ").append(getUpfrontPaymentAmount()).append(",");
        if (getRecurringPaymentAmount() != null)
            sb.append("RecurringPaymentAmount: ").append(getRecurringPaymentAmount()).append(",");
        if (getTermDurationInSeconds() != null)
            sb.append("TermDurationInSeconds: ").append(getTermDurationInSeconds()).append(",");
        if (getTags() != null)
            sb.append("Tags: ").append(getTags()).append(",");
        if (getReturnableUntil() != null)
            sb.append("ReturnableUntil: ").append(getReturnableUntil());
        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-savingsplans/src/main/java/com/amazonaws/services/savingsplans/model/SavingsPlan.java