Struct aws_sdk_ecr::operation::put_image::builders::PutImageInputBuilder
source · #[non_exhaustive]pub struct PutImageInputBuilder { /* private fields */ }Expand description
A builder for PutImageInput.
Implementations§
source§impl PutImageInputBuilder
impl PutImageInputBuilder
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 get_registry_id(&self) -> &Option<String>
pub fn get_registry_id(&self) -> &Option<String>
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.
This field is required.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 get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
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.
This field is required.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 get_image_manifest(&self) -> &Option<String>
pub fn get_image_manifest(&self) -> &Option<String>
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 get_image_manifest_media_type(&self) -> &Option<String>
pub fn get_image_manifest_media_type(&self) -> &Option<String>
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 get_image_tag(&self) -> &Option<String>
pub fn get_image_tag(&self) -> &Option<String>
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 get_image_digest(&self) -> &Option<String>
pub fn get_image_digest(&self) -> &Option<String>
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.
source§impl PutImageInputBuilder
impl PutImageInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutImageOutput, SdkError<PutImageError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutImageOutput, SdkError<PutImageError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutImageInputBuilder
impl Clone for PutImageInputBuilder
source§fn clone(&self) -> PutImageInputBuilder
fn clone(&self) -> PutImageInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PutImageInputBuilder
impl Debug for PutImageInputBuilder
source§impl Default for PutImageInputBuilder
impl Default for PutImageInputBuilder
source§fn default() -> PutImageInputBuilder
fn default() -> PutImageInputBuilder
source§impl PartialEq for PutImageInputBuilder
impl PartialEq for PutImageInputBuilder
source§fn eq(&self, other: &PutImageInputBuilder) -> bool
fn eq(&self, other: &PutImageInputBuilder) -> bool
self and other values to be equal, and is used
by ==.