Struct aws_sdk_lightsail::operation::register_container_image::builders::RegisterContainerImageInputBuilder
source · #[non_exhaustive]pub struct RegisterContainerImageInputBuilder { /* private fields */ }
Expand description
A builder for RegisterContainerImageInput
.
Implementations§
source§impl RegisterContainerImageInputBuilder
impl RegisterContainerImageInputBuilder
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the container service for which to register a container image.
This field is required.sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the container service for which to register a container image.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the container service for which to register a container image.
sourcepub fn label(self, input: impl Into<String>) -> Self
pub fn label(self, input: impl Into<String>) -> Self
The label for the container image when it's registered to the container service.
Use a descriptive label that you can use to track the different versions of your registered container images.
Use the GetContainerImages
action to return the container images registered to a Lightsail container service. The label is the
portion of the following image name example:
-
:container-service-1.
.1
If the name of your container service is mycontainerservice
, and the label that you specify is mystaticwebsite
, then the name of the registered container image will be :mycontainerservice.mystaticwebsite.1
.
The number at the end of these image name examples represents the version of the registered container image. If you push and register another container image to the same Lightsail container service, with the same label, then the version number for the new registered container image will be 2
. If you push and register another container image, the version number will be 3
, and so on.
sourcepub fn set_label(self, input: Option<String>) -> Self
pub fn set_label(self, input: Option<String>) -> Self
The label for the container image when it's registered to the container service.
Use a descriptive label that you can use to track the different versions of your registered container images.
Use the GetContainerImages
action to return the container images registered to a Lightsail container service. The label is the
portion of the following image name example:
-
:container-service-1.
.1
If the name of your container service is mycontainerservice
, and the label that you specify is mystaticwebsite
, then the name of the registered container image will be :mycontainerservice.mystaticwebsite.1
.
The number at the end of these image name examples represents the version of the registered container image. If you push and register another container image to the same Lightsail container service, with the same label, then the version number for the new registered container image will be 2
. If you push and register another container image, the version number will be 3
, and so on.
sourcepub fn get_label(&self) -> &Option<String>
pub fn get_label(&self) -> &Option<String>
The label for the container image when it's registered to the container service.
Use a descriptive label that you can use to track the different versions of your registered container images.
Use the GetContainerImages
action to return the container images registered to a Lightsail container service. The label is the
portion of the following image name example:
-
:container-service-1.
.1
If the name of your container service is mycontainerservice
, and the label that you specify is mystaticwebsite
, then the name of the registered container image will be :mycontainerservice.mystaticwebsite.1
.
The number at the end of these image name examples represents the version of the registered container image. If you push and register another container image to the same Lightsail container service, with the same label, then the version number for the new registered container image will be 2
. If you push and register another container image, the version number will be 3
, and so on.
sourcepub fn digest(self, input: impl Into<String>) -> Self
pub fn digest(self, input: impl Into<String>) -> Self
The digest of the container image to be registered.
This field is required.sourcepub fn set_digest(self, input: Option<String>) -> Self
pub fn set_digest(self, input: Option<String>) -> Self
The digest of the container image to be registered.
sourcepub fn get_digest(&self) -> &Option<String>
pub fn get_digest(&self) -> &Option<String>
The digest of the container image to be registered.
sourcepub fn build(self) -> Result<RegisterContainerImageInput, BuildError>
pub fn build(self) -> Result<RegisterContainerImageInput, BuildError>
Consumes the builder and constructs a RegisterContainerImageInput
.
source§impl RegisterContainerImageInputBuilder
impl RegisterContainerImageInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<RegisterContainerImageOutput, SdkError<RegisterContainerImageError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<RegisterContainerImageOutput, SdkError<RegisterContainerImageError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for RegisterContainerImageInputBuilder
impl Clone for RegisterContainerImageInputBuilder
source§fn clone(&self) -> RegisterContainerImageInputBuilder
fn clone(&self) -> RegisterContainerImageInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RegisterContainerImageInputBuilder
impl Default for RegisterContainerImageInputBuilder
source§fn default() -> RegisterContainerImageInputBuilder
fn default() -> RegisterContainerImageInputBuilder
source§impl PartialEq for RegisterContainerImageInputBuilder
impl PartialEq for RegisterContainerImageInputBuilder
source§fn eq(&self, other: &RegisterContainerImageInputBuilder) -> bool
fn eq(&self, other: &RegisterContainerImageInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RegisterContainerImageInputBuilder
Auto Trait Implementations§
impl Freeze for RegisterContainerImageInputBuilder
impl RefUnwindSafe for RegisterContainerImageInputBuilder
impl Send for RegisterContainerImageInputBuilder
impl Sync for RegisterContainerImageInputBuilder
impl Unpin for RegisterContainerImageInputBuilder
impl UnwindSafe for RegisterContainerImageInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more