public BrokerNodeGroupInfo withSecurityGroups(java.util.Collection<String> securityGroups) {
        setSecurityGroups(securityGroups);
        return this;
    }
<p>
The AWS security groups to associate with the elastic network interfaces in order to specify who can connect to
and communicate with the Amazon MSK cluster. If you don't specify a security group, Amazon MSK uses the default
security group associated with the VPC.
</p>

@param securityGroups
       <p>
       The AWS security groups to associate with the elastic network interfaces in order to specify who can
       connect to and communicate with the Amazon MSK cluster. If you don't specify a security group, Amazon MSK
       uses the default security group associated with the VPC.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kafka/src/main/java/com/amazonaws/services/kafka/model/BrokerNodeGroupInfo.java