public BatchGetImageRequest withAcceptedMediaTypes(String... acceptedMediaTypes) {
        if (this.acceptedMediaTypes == null) {
            setAcceptedMediaTypes(new java.util.ArrayList<String>(acceptedMediaTypes.length));
        }
        for (String ele : acceptedMediaTypes) {
            this.acceptedMediaTypes.add(ele);
        }
        return this;
    }
<p>
The accepted media types for the request.
</p>
<p>
Valid values: <code>application/vnd.docker.distribution.manifest.v1+json</code> |
<code>application/vnd.docker.distribution.manifest.v2+json</code> |
<code>application/vnd.oci.image.manifest.v1+json</code>
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAcceptedMediaTypes(java.util.Collection)} or {@link #withAcceptedMediaTypes(java.util.Collection)} if
you want to override the existing values.
</p>

@param acceptedMediaTypes
       The accepted media types for the request.</p>
       <p>
       Valid values: <code>application/vnd.docker.distribution.manifest.v1+json</code> |
       <code>application/vnd.docker.distribution.manifest.v2+json</code> |
       <code>application/vnd.oci.image.manifest.v1+json</code>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/BatchGetImageRequest.java