Struct aws_sdk_elasticache::model::authentication_mode::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AuthenticationMode
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn type(self, input: InputAuthenticationType) -> Self
pub fn type(self, input: InputAuthenticationType) -> Self
Specifies the authentication type. Possible options are IAM authentication, password and no password.
sourcepub fn set_type(self, input: Option<InputAuthenticationType>) -> Self
pub fn set_type(self, input: Option<InputAuthenticationType>) -> Self
Specifies the authentication type. Possible options are IAM authentication, password and no password.
sourcepub fn passwords(self, input: impl Into<String>) -> Self
pub fn passwords(self, input: impl Into<String>) -> Self
Appends an item to passwords
.
To override the contents of this collection use set_passwords
.
Specifies the passwords to use for authentication if Type
is set to password
.
sourcepub fn set_passwords(self, input: Option<Vec<String>>) -> Self
pub fn set_passwords(self, input: Option<Vec<String>>) -> Self
Specifies the passwords to use for authentication if Type
is set to password
.
sourcepub fn build(self) -> AuthenticationMode
pub fn build(self) -> AuthenticationMode
Consumes the builder and constructs a AuthenticationMode
.