@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof NetworkInfo == false)
            return false;
        NetworkInfo other = (NetworkInfo) obj;
        if (other.getNetworkPerformance() == null ^ this.getNetworkPerformance() == null)
            return false;
        if (other.getNetworkPerformance() != null && other.getNetworkPerformance().equals(this.getNetworkPerformance()) == false)
            return false;
        if (other.getMaximumNetworkInterfaces() == null ^ this.getMaximumNetworkInterfaces() == null)
            return false;
        if (other.getMaximumNetworkInterfaces() != null && other.getMaximumNetworkInterfaces().equals(this.getMaximumNetworkInterfaces()) == false)
            return false;
        if (other.getMaximumNetworkCards() == null ^ this.getMaximumNetworkCards() == null)
            return false;
        if (other.getMaximumNetworkCards() != null && other.getMaximumNetworkCards().equals(this.getMaximumNetworkCards()) == false)
            return false;
        if (other.getDefaultNetworkCardIndex() == null ^ this.getDefaultNetworkCardIndex() == null)
            return false;
        if (other.getDefaultNetworkCardIndex() != null && other.getDefaultNetworkCardIndex().equals(this.getDefaultNetworkCardIndex()) == false)
            return false;
        if (other.getNetworkCards() == null ^ this.getNetworkCards() == null)
            return false;
        if (other.getNetworkCards() != null && other.getNetworkCards().equals(this.getNetworkCards()) == false)
            return false;
        if (other.getIpv4AddressesPerInterface() == null ^ this.getIpv4AddressesPerInterface() == null)
            return false;
        if (other.getIpv4AddressesPerInterface() != null && other.getIpv4AddressesPerInterface().equals(this.getIpv4AddressesPerInterface()) == false)
            return false;
        if (other.getIpv6AddressesPerInterface() == null ^ this.getIpv6AddressesPerInterface() == null)
            return false;
        if (other.getIpv6AddressesPerInterface() != null && other.getIpv6AddressesPerInterface().equals(this.getIpv6AddressesPerInterface()) == false)
            return false;
        if (other.getIpv6Supported() == null ^ this.getIpv6Supported() == null)
            return false;
        if (other.getIpv6Supported() != null && other.getIpv6Supported().equals(this.getIpv6Supported()) == false)
            return false;
        if (other.getEnaSupport() == null ^ this.getEnaSupport() == null)
            return false;
        if (other.getEnaSupport() != null && other.getEnaSupport().equals(this.getEnaSupport()) == false)
            return false;
        if (other.getEfaSupported() == null ^ this.getEfaSupported() == null)
            return false;
        if (other.getEfaSupported() != null && other.getEfaSupported().equals(this.getEfaSupported()) == false)
            return false;
        if (other.getEfaInfo() == null ^ this.getEfaInfo() == null)
            return false;
        if (other.getEfaInfo() != null && other.getEfaInfo().equals(this.getEfaInfo()) == false)
            return false;
        if (other.getEncryptionInTransitSupported() == null ^ this.getEncryptionInTransitSupported() == null)
            return false;
        if (other.getEncryptionInTransitSupported() != null && other.getEncryptionInTransitSupported().equals(this.getEncryptionInTransitSupported()) == false)
            return false;
        if (other.getEnaSrdSupported() == null ^ this.getEnaSrdSupported() == null)
            return false;
        if (other.getEnaSrdSupported() != null && other.getEnaSrdSupported().equals(this.getEnaSrdSupported()) == false)
            return false;
        return true;
    }
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