public JibContainerBuilder setPlatforms(Set<Platform> platforms) {
    containerBuildPlanBuilder.setPlatforms(platforms);
    containerConfigurationBuilder.setPlatforms(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 container builder 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-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java