public Builder setPlatforms(Set<Platform> platforms) {
      if (platforms.isEmpty()) {
        throw new IllegalArgumentException("platforms set cannot be empty");
      }
      this.platforms = new LinkedHashSet<>(platforms);
      return this;
    }
Sets a desired platform (properties including OS and architecture) list. If the base image
reference is a Docker manifest list or an OCI image index, an image builder may select the
base images matching the given platforms. If the base image reference is an image manifest,
an image builder may ignore the given platforms and use the platform of the base image or may
decide to raise on error.

<p>Note that a new build plan starts with "amd64/linux" as the default platform.

@param platforms list of platforms to select base images in case of a manifest list
@return this
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java