#[non_exhaustive]pub struct RegistryCredentialBuilder { /* private fields */ }
Expand description
A builder for RegistryCredential
.
Implementations§
source§impl RegistryCredentialBuilder
impl RegistryCredentialBuilder
sourcepub fn credential(self, input: impl Into<String>) -> Self
pub fn credential(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.
The credential
can use the name of the credentials only if they exist in your current Amazon Web Services Region.
sourcepub fn set_credential(self, input: Option<String>) -> Self
pub fn set_credential(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.
The credential
can use the name of the credentials only if they exist in your current Amazon Web Services Region.
sourcepub fn get_credential(&self) -> &Option<String>
pub fn get_credential(&self) -> &Option<String>
The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.
The credential
can use the name of the credentials only if they exist in your current Amazon Web Services Region.
sourcepub fn credential_provider(self, input: CredentialProviderType) -> Self
pub fn credential_provider(self, input: CredentialProviderType) -> Self
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.
This field is required.sourcepub fn set_credential_provider(
self,
input: Option<CredentialProviderType>,
) -> Self
pub fn set_credential_provider( self, input: Option<CredentialProviderType>, ) -> Self
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.
sourcepub fn get_credential_provider(&self) -> &Option<CredentialProviderType>
pub fn get_credential_provider(&self) -> &Option<CredentialProviderType>
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.
sourcepub fn build(self) -> Result<RegistryCredential, BuildError>
pub fn build(self) -> Result<RegistryCredential, BuildError>
Consumes the builder and constructs a RegistryCredential
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RegistryCredentialBuilder
impl Clone for RegistryCredentialBuilder
source§fn clone(&self) -> RegistryCredentialBuilder
fn clone(&self) -> RegistryCredentialBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RegistryCredentialBuilder
impl Debug for RegistryCredentialBuilder
source§impl Default for RegistryCredentialBuilder
impl Default for RegistryCredentialBuilder
source§fn default() -> RegistryCredentialBuilder
fn default() -> RegistryCredentialBuilder
source§impl PartialEq for RegistryCredentialBuilder
impl PartialEq for RegistryCredentialBuilder
source§fn eq(&self, other: &RegistryCredentialBuilder) -> bool
fn eq(&self, other: &RegistryCredentialBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RegistryCredentialBuilder
Auto Trait Implementations§
impl Freeze for RegistryCredentialBuilder
impl RefUnwindSafe for RegistryCredentialBuilder
impl Send for RegistryCredentialBuilder
impl Sync for RegistryCredentialBuilder
impl Unpin for RegistryCredentialBuilder
impl UnwindSafe for RegistryCredentialBuilder
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