code: public DescribeSpotPriceHistoryRequest withInstanceTypes(InstanceType... instanceTypes) {
          com.amazonaws.internal.SdkInternalList<String> instanceTypesCopy = new com.amazonaws.internal.SdkInternalList<String>(instanceTypes.length);
          for (InstanceType value : instanceTypes) {
              instanceTypesCopy.add(value.toString());
          }
          if (getInstanceTypes() == null) {
              setInstanceTypes(instanceTypesCopy);
          } else {
              getInstanceTypes().addAll(instanceTypesCopy);
          }
          return this;
      }
docs: <p>
  Filters the results by the specified instance types.
  </p>
  
  @param instanceTypes
  Filters the results by the specified instance types.
  @return Returns a reference to this object so that method calls can be chained together.
  @see InstanceType