code: public RequestLaunchTemplateData withSecurityGroups(String... securityGroups) {
          if (this.securityGroups == null) {
              setSecurityGroups(new com.amazonaws.internal.SdkInternalList<String>(securityGroups.length));
          }
          for (String ele : securityGroups) {
              this.securityGroups.add(ele);
          }
          return this;
      }
docs: <p>
  [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group
  IDs instead. You cannot specify both a security group ID and security name in the same request.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setSecurityGroups(java.util.Collection)} or {@link #withSecurityGroups(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param securityGroups
  [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security
  group IDs instead. You cannot specify both a security group ID and security name in the same request.
  @return Returns a reference to this object so that method calls can be chained together.