code: public void setAllSecurityGroups(java.util.Collection<GroupIdentifier> allSecurityGroups) {
          if (allSecurityGroups == null) {
              this.allSecurityGroups = null;
              return;
          }
  
          this.allSecurityGroups = new com.amazonaws.internal.SdkInternalList<GroupIdentifier>(allSecurityGroups);
      }
docs: <p>
  One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups.
  When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
  </p>
  
  @param allSecurityGroups
  One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security
  groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security
  groups.