@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getId() != null)
            sb.append("Id: ").append(getId()).append(",");
        if (getName() != null)
            sb.append("Name: ").append(getName()).append(",");
        if (getMarket() != null)
            sb.append("Market: ").append(getMarket()).append(",");
        if (getInstanceGroupType() != null)
            sb.append("InstanceGroupType: ").append(getInstanceGroupType()).append(",");
        if (getBidPrice() != null)
            sb.append("BidPrice: ").append(getBidPrice()).append(",");
        if (getInstanceType() != null)
            sb.append("InstanceType: ").append(getInstanceType()).append(",");
        if (getRequestedInstanceCount() != null)
            sb.append("RequestedInstanceCount: ").append(getRequestedInstanceCount()).append(",");
        if (getRunningInstanceCount() != null)
            sb.append("RunningInstanceCount: ").append(getRunningInstanceCount()).append(",");
        if (getStatus() != null)
            sb.append("Status: ").append(getStatus()).append(",");
        if (getConfigurations() != null)
            sb.append("Configurations: ").append(getConfigurations()).append(",");
        if (getConfigurationsVersion() != null)
            sb.append("ConfigurationsVersion: ").append(getConfigurationsVersion()).append(",");
        if (getLastSuccessfullyAppliedConfigurations() != null)
            sb.append("LastSuccessfullyAppliedConfigurations: ").append(getLastSuccessfullyAppliedConfigurations()).append(",");
        if (getLastSuccessfullyAppliedConfigurationsVersion() != null)
            sb.append("LastSuccessfullyAppliedConfigurationsVersion: ").append(getLastSuccessfullyAppliedConfigurationsVersion()).append(",");
        if (getEbsBlockDevices() != null)
            sb.append("EbsBlockDevices: ").append(getEbsBlockDevices()).append(",");
        if (getEbsOptimized() != null)
            sb.append("EbsOptimized: ").append(getEbsOptimized()).append(",");
        if (getShrinkPolicy() != null)
            sb.append("ShrinkPolicy: ").append(getShrinkPolicy()).append(",");
        if (getAutoScalingPolicy() != null)
            sb.append("AutoScalingPolicy: ").append(getAutoScalingPolicy()).append(",");
        if (getCustomAmiId() != null)
            sb.append("CustomAmiId: ").append(getCustomAmiId());
        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-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/InstanceGroup.java