#[non_exhaustive]pub struct ServiceSpecificCredentialMetadataBuilder { /* private fields */ }Expand description
A builder for ServiceSpecificCredentialMetadata.
Implementations§
source§impl ServiceSpecificCredentialMetadataBuilder
impl ServiceSpecificCredentialMetadataBuilder
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
The name of the IAM user associated with the service-specific credential.
This field is required.sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
The name of the IAM user associated with the service-specific credential.
sourcepub fn get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &Option<String>
The name of the IAM user associated with the service-specific credential.
sourcepub fn status(self, input: StatusType) -> Self
pub fn status(self, input: StatusType) -> Self
The status of the service-specific credential. Active means that the key is valid for API calls, while Inactive means it is not.
sourcepub fn set_status(self, input: Option<StatusType>) -> Self
pub fn set_status(self, input: Option<StatusType>) -> Self
The status of the service-specific credential. Active means that the key is valid for API calls, while Inactive means it is not.
sourcepub fn get_status(&self) -> &Option<StatusType>
pub fn get_status(&self) -> &Option<StatusType>
The status of the service-specific credential. Active means that the key is valid for API calls, while Inactive means it is not.
sourcepub fn service_user_name(self, input: impl Into<String>) -> Self
pub fn service_user_name(self, input: impl Into<String>) -> Self
The generated user name for the service-specific credential.
This field is required.sourcepub fn set_service_user_name(self, input: Option<String>) -> Self
pub fn set_service_user_name(self, input: Option<String>) -> Self
The generated user name for the service-specific credential.
sourcepub fn get_service_user_name(&self) -> &Option<String>
pub fn get_service_user_name(&self) -> &Option<String>
The generated user name for the service-specific credential.
sourcepub fn create_date(self, input: DateTime) -> Self
pub fn create_date(self, input: DateTime) -> Self
The date and time, in ISO 8601 date-time format, when the service-specific credential were created.
This field is required.sourcepub fn set_create_date(self, input: Option<DateTime>) -> Self
pub fn set_create_date(self, input: Option<DateTime>) -> Self
The date and time, in ISO 8601 date-time format, when the service-specific credential were created.
sourcepub fn get_create_date(&self) -> &Option<DateTime>
pub fn get_create_date(&self) -> &Option<DateTime>
The date and time, in ISO 8601 date-time format, when the service-specific credential were created.
sourcepub fn service_specific_credential_id(self, input: impl Into<String>) -> Self
pub fn service_specific_credential_id(self, input: impl Into<String>) -> Self
The unique identifier for the service-specific credential.
This field is required.sourcepub fn set_service_specific_credential_id(self, input: Option<String>) -> Self
pub fn set_service_specific_credential_id(self, input: Option<String>) -> Self
The unique identifier for the service-specific credential.
sourcepub fn get_service_specific_credential_id(&self) -> &Option<String>
pub fn get_service_specific_credential_id(&self) -> &Option<String>
The unique identifier for the service-specific credential.
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the service associated with the service-specific credential.
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 service associated with the service-specific credential.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the service associated with the service-specific credential.
sourcepub fn build(self) -> Result<ServiceSpecificCredentialMetadata, BuildError>
pub fn build(self) -> Result<ServiceSpecificCredentialMetadata, BuildError>
Consumes the builder and constructs a ServiceSpecificCredentialMetadata.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ServiceSpecificCredentialMetadataBuilder
impl Clone for ServiceSpecificCredentialMetadataBuilder
source§fn clone(&self) -> ServiceSpecificCredentialMetadataBuilder
fn clone(&self) -> ServiceSpecificCredentialMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ServiceSpecificCredentialMetadataBuilder
impl Default for ServiceSpecificCredentialMetadataBuilder
source§fn default() -> ServiceSpecificCredentialMetadataBuilder
fn default() -> ServiceSpecificCredentialMetadataBuilder
source§impl PartialEq for ServiceSpecificCredentialMetadataBuilder
impl PartialEq for ServiceSpecificCredentialMetadataBuilder
source§fn eq(&self, other: &ServiceSpecificCredentialMetadataBuilder) -> bool
fn eq(&self, other: &ServiceSpecificCredentialMetadataBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ServiceSpecificCredentialMetadataBuilder
Auto Trait Implementations§
impl Freeze for ServiceSpecificCredentialMetadataBuilder
impl RefUnwindSafe for ServiceSpecificCredentialMetadataBuilder
impl Send for ServiceSpecificCredentialMetadataBuilder
impl Sync for ServiceSpecificCredentialMetadataBuilder
impl Unpin for ServiceSpecificCredentialMetadataBuilder
impl UnwindSafe for ServiceSpecificCredentialMetadataBuilder
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