#[non_exhaustive]pub struct ServiceSpecificCredentialBuilder { /* private fields */ }
Expand description
A builder for ServiceSpecificCredential
.
Implementations§
source§impl ServiceSpecificCredentialBuilder
impl ServiceSpecificCredentialBuilder
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_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 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 value is generated by combining the IAM user's name combined with the ID number of the Amazon Web Services account, as in jane-at-123456789012
, for example. This value cannot be configured by the user.
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. This value is generated by combining the IAM user's name combined with the ID number of the Amazon Web Services account, as in jane-at-123456789012
, for example. This value cannot be configured by the user.
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. This value is generated by combining the IAM user's name combined with the ID number of the Amazon Web Services account, as in jane-at-123456789012
, for example. This value cannot be configured by the user.
sourcepub fn service_password(self, input: impl Into<String>) -> Self
pub fn service_password(self, input: impl Into<String>) -> Self
The generated password for the service-specific credential.
This field is required.sourcepub fn set_service_password(self, input: Option<String>) -> Self
pub fn set_service_password(self, input: Option<String>) -> Self
The generated password for the service-specific credential.
sourcepub fn get_service_password(&self) -> &Option<String>
pub fn get_service_password(&self) -> &Option<String>
The generated password for the service-specific credential.
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 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 build(self) -> Result<ServiceSpecificCredential, BuildError>
pub fn build(self) -> Result<ServiceSpecificCredential, BuildError>
Consumes the builder and constructs a ServiceSpecificCredential
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ServiceSpecificCredentialBuilder
impl Clone for ServiceSpecificCredentialBuilder
source§fn clone(&self) -> ServiceSpecificCredentialBuilder
fn clone(&self) -> ServiceSpecificCredentialBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ServiceSpecificCredentialBuilder
impl Default for ServiceSpecificCredentialBuilder
source§fn default() -> ServiceSpecificCredentialBuilder
fn default() -> ServiceSpecificCredentialBuilder
source§impl PartialEq for ServiceSpecificCredentialBuilder
impl PartialEq for ServiceSpecificCredentialBuilder
source§fn eq(&self, other: &ServiceSpecificCredentialBuilder) -> bool
fn eq(&self, other: &ServiceSpecificCredentialBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.