@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getAdditionalDetailType() != null)
            sb.append("AdditionalDetailType: ").append(getAdditionalDetailType()).append(",");
        if (getComponent() != null)
            sb.append("Component: ").append(getComponent()).append(",");
        if (getVpcEndpointService() != null)
            sb.append("VpcEndpointService: ").append(getVpcEndpointService()).append(",");
        if (getRuleOptions() != null)
            sb.append("RuleOptions: ").append(getRuleOptions()).append(",");
        if (getRuleGroupTypePairs() != null)
            sb.append("RuleGroupTypePairs: ").append(getRuleGroupTypePairs()).append(",");
        if (getRuleGroupRuleOptionsPairs() != null)
            sb.append("RuleGroupRuleOptionsPairs: ").append(getRuleGroupRuleOptionsPairs()).append(",");
        if (getServiceName() != null)
            sb.append("ServiceName: ").append(getServiceName()).append(",");
        if (getLoadBalancers() != null)
            sb.append("LoadBalancers: ").append(getLoadBalancers());
        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/AdditionalDetail.java