#[non_exhaustive]pub struct MongodbSslConfig {
pub client_key: String,
pub client_key_set: bool,
pub client_certificate: String,
pub client_certificate_set: bool,
pub ca_certificate: String,
pub ca_certificate_set: bool,
pub secret_manager_stored_client_key: String,
/* private fields */
}
Expand description
MongoDB SSL configuration information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.client_key: String
Optional. Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the ‘client_certificate’ and the ‘ca_certificate’ fields are mandatory.
client_key_set: bool
Output only. Indicates whether the client_key field is set.
client_certificate: String
Optional. Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the ‘client_key’ and the ‘ca_certificate’ fields are mandatory.
client_certificate_set: bool
Output only. Indicates whether the client_certificate field is set.
ca_certificate: String
Optional. Input only. PEM-encoded certificate of the CA that signed the source database server’s certificate.
ca_certificate_set: bool
Output only. Indicates whether the ca_certificate field is set.
secret_manager_stored_client_key: String
Optional. Input only. A reference to a Secret Manager resource name storing
the PEM-encoded private key associated with the Client Certificate. If this
field is used then the ‘client_certificate’ and the ‘ca_certificate’ fields
are mandatory. Mutually exclusive with the client_key
field.
Implementations§
Source§impl MongodbSslConfig
impl MongodbSslConfig
pub fn new() -> Self
Sourcepub fn set_client_key<T: Into<String>>(self, v: T) -> Self
pub fn set_client_key<T: Into<String>>(self, v: T) -> Self
Sets the value of client_key.
Sourcepub fn set_client_key_set<T: Into<bool>>(self, v: T) -> Self
pub fn set_client_key_set<T: Into<bool>>(self, v: T) -> Self
Sets the value of client_key_set.
Sourcepub fn set_client_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_client_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of client_certificate.
Sourcepub fn set_client_certificate_set<T: Into<bool>>(self, v: T) -> Self
pub fn set_client_certificate_set<T: Into<bool>>(self, v: T) -> Self
Sets the value of client_certificate_set.
Sourcepub fn set_ca_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_ca_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of ca_certificate.
Sourcepub fn set_ca_certificate_set<T: Into<bool>>(self, v: T) -> Self
pub fn set_ca_certificate_set<T: Into<bool>>(self, v: T) -> Self
Sets the value of ca_certificate_set.
Sourcepub fn set_secret_manager_stored_client_key<T: Into<String>>(self, v: T) -> Self
pub fn set_secret_manager_stored_client_key<T: Into<String>>(self, v: T) -> Self
Sets the value of secret_manager_stored_client_key.
Trait Implementations§
Source§impl Clone for MongodbSslConfig
impl Clone for MongodbSslConfig
Source§fn clone(&self) -> MongodbSslConfig
fn clone(&self) -> MongodbSslConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more