public AwsEc2InstanceDetails withNetworkInterfaces(AwsEc2InstanceNetworkInterfacesDetails... networkInterfaces) {
        if (this.networkInterfaces == null) {
            setNetworkInterfaces(new java.util.ArrayList<AwsEc2InstanceNetworkInterfacesDetails>(networkInterfaces.length));
        }
        for (AwsEc2InstanceNetworkInterfacesDetails ele : networkInterfaces) {
            this.networkInterfaces.add(ele);
        }
        return this;
    }
<p>
The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a
corresponding <code>AwsEc2NetworkInterfacesDetails</code> object.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setNetworkInterfaces(java.util.Collection)} or {@link #withNetworkInterfaces(java.util.Collection)} if
you want to override the existing values.
</p>

@param networkInterfaces
       The identifiers of the network interfaces for the EC2 instance. The details for each network interface are
       in a corresponding <code>AwsEc2NetworkInterfacesDetails</code> object.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEc2InstanceDetails.java