Struct aws_sdk_ecr::input::put_image_input::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for PutImageInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn registry_id(self, input: impl Into<String>) -> Self
pub fn registry_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID associated with the registry that contains the repository in which to put the image. If you do not specify a registry, the default registry is assumed.
sourcepub fn set_registry_id(self, input: Option<String>) -> Self
pub fn set_registry_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID associated with the registry that contains the repository in which to put the image. If you do not specify a registry, the default registry is assumed.
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The name of the repository in which to put the image.
sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The name of the repository in which to put the image.
sourcepub fn image_manifest(self, input: impl Into<String>) -> Self
pub fn image_manifest(self, input: impl Into<String>) -> Self
The image manifest corresponding to the image to be uploaded.
sourcepub fn set_image_manifest(self, input: Option<String>) -> Self
pub fn set_image_manifest(self, input: Option<String>) -> Self
The image manifest corresponding to the image to be uploaded.
sourcepub fn image_manifest_media_type(self, input: impl Into<String>) -> Self
pub fn image_manifest_media_type(self, input: impl Into<String>) -> Self
The media type of the image manifest. If you push an image manifest that does not contain the mediaType field, you must specify the imageManifestMediaType in the request.
sourcepub fn set_image_manifest_media_type(self, input: Option<String>) -> Self
pub fn set_image_manifest_media_type(self, input: Option<String>) -> Self
The media type of the image manifest. If you push an image manifest that does not contain the mediaType field, you must specify the imageManifestMediaType in the request.
sourcepub fn image_tag(self, input: impl Into<String>) -> Self
pub fn image_tag(self, input: impl Into<String>) -> Self
The tag to associate with the image. This parameter is required for images that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative (OCI) formats.
sourcepub fn set_image_tag(self, input: Option<String>) -> Self
pub fn set_image_tag(self, input: Option<String>) -> Self
The tag to associate with the image. This parameter is required for images that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative (OCI) formats.
sourcepub fn image_digest(self, input: impl Into<String>) -> Self
pub fn image_digest(self, input: impl Into<String>) -> Self
The image digest of the image manifest corresponding to the image.
sourcepub fn set_image_digest(self, input: Option<String>) -> Self
pub fn set_image_digest(self, input: Option<String>) -> Self
The image digest of the image manifest corresponding to the image.
sourcepub fn build(self) -> Result<PutImageInput, BuildError>
pub fn build(self) -> Result<PutImageInput, BuildError>
Consumes the builder and constructs a PutImageInput.