@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getNetworkPerformance() != null)
            sb.append("NetworkPerformance: ").append(getNetworkPerformance()).append(",");
        if (getMaximumNetworkInterfaces() != null)
            sb.append("MaximumNetworkInterfaces: ").append(getMaximumNetworkInterfaces()).append(",");
        if (getMaximumNetworkCards() != null)
            sb.append("MaximumNetworkCards: ").append(getMaximumNetworkCards()).append(",");
        if (getDefaultNetworkCardIndex() != null)
            sb.append("DefaultNetworkCardIndex: ").append(getDefaultNetworkCardIndex()).append(",");
        if (getNetworkCards() != null)
            sb.append("NetworkCards: ").append(getNetworkCards()).append(",");
        if (getIpv4AddressesPerInterface() != null)
            sb.append("Ipv4AddressesPerInterface: ").append(getIpv4AddressesPerInterface()).append(",");
        if (getIpv6AddressesPerInterface() != null)
            sb.append("Ipv6AddressesPerInterface: ").append(getIpv6AddressesPerInterface()).append(",");
        if (getIpv6Supported() != null)
            sb.append("Ipv6Supported: ").append(getIpv6Supported()).append(",");
        if (getEnaSupport() != null)
            sb.append("EnaSupport: ").append(getEnaSupport()).append(",");
        if (getEfaSupported() != null)
            sb.append("EfaSupported: ").append(getEfaSupported()).append(",");
        if (getEfaInfo() != null)
            sb.append("EfaInfo: ").append(getEfaInfo()).append(",");
        if (getEncryptionInTransitSupported() != null)
            sb.append("EncryptionInTransitSupported: ").append(getEncryptionInTransitSupported()).append(",");
        if (getEnaSrdSupported() != null)
            sb.append("EnaSrdSupported: ").append(getEnaSrdSupported());
        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/NetworkInfo.java