code: public void setSubnetIds(java.util.Collection<String> subnetIds) {
          if (subnetIds == null) {
              this.subnetIds = null;
              return;
          }
  
          this.subnetIds = new java.util.ArrayList<String>(subnetIds);
      }
docs: <p>
  The IDs of subnets in which to launch the server EC2 instance.
  </p>
  <p>
  Amazon EC2-Classic customers: This field is required. All servers must run within a VPC. The VPC must have
  "Auto Assign Public IP" enabled.
  </p>
  <p>
  EC2-VPC customers: This field is optional. If you do not specify subnet IDs, your EC2 instances are created in a
  default subnet that is selected by Amazon EC2. If you specify subnet IDs, the VPC must have
  "Auto Assign Public IP" enabled.
  </p>
  <p>
  For more information about supported Amazon EC2 platforms, see <a
  href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html">Supported Platforms</a>.
  </p>
  
  @param subnetIds
  The IDs of subnets in which to launch the server EC2 instance. </p>
  <p>
  Amazon EC2-Classic customers: This field is required. All servers must run within a VPC. The VPC must have
  "Auto Assign Public IP" enabled.
  </p>
  <p>
  EC2-VPC customers: This field is optional. If you do not specify subnet IDs, your EC2 instances are
  created in a default subnet that is selected by Amazon EC2. If you specify subnet IDs, the VPC must have
  "Auto Assign Public IP" enabled.
  </p>
  <p>
  For more information about supported Amazon EC2 platforms, see <a
  href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html">Supported
  Platforms</a>.