#[non_exhaustive]pub struct CreateKmsConfigRequest {
pub parent: String,
pub kms_config_id: String,
pub kms_config: Option<KmsConfig>,
/* private fields */
}Expand description
CreateKmsConfigRequest creates a KMS Config.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. Value for parent.
kms_config_id: StringRequired. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
kms_config: Option<KmsConfig>Required. The required parameters to create a new KmsConfig.
Implementations§
Source§impl CreateKmsConfigRequest
impl CreateKmsConfigRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_kms_config_id<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_config_id<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_config_id.
§Example
ⓘ
let x = CreateKmsConfigRequest::new().set_kms_config_id("example");Sourcepub fn set_kms_config<T>(self, v: T) -> Self
pub fn set_kms_config<T>(self, v: T) -> Self
Sets the value of kms_config.
§Example
ⓘ
use google_cloud_netapp_v1::model::KmsConfig;
let x = CreateKmsConfigRequest::new().set_kms_config(KmsConfig::default()/* use setters */);Sourcepub fn set_or_clear_kms_config<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kms_config<T>(self, v: Option<T>) -> Self
Sets or clears the value of kms_config.
§Example
ⓘ
use google_cloud_netapp_v1::model::KmsConfig;
let x = CreateKmsConfigRequest::new().set_or_clear_kms_config(Some(KmsConfig::default()/* use setters */));
let x = CreateKmsConfigRequest::new().set_or_clear_kms_config(None::<KmsConfig>);Trait Implementations§
Source§impl Clone for CreateKmsConfigRequest
impl Clone for CreateKmsConfigRequest
Source§fn clone(&self) -> CreateKmsConfigRequest
fn clone(&self) -> CreateKmsConfigRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateKmsConfigRequest
impl Debug for CreateKmsConfigRequest
Source§impl Default for CreateKmsConfigRequest
impl Default for CreateKmsConfigRequest
Source§fn default() -> CreateKmsConfigRequest
fn default() -> CreateKmsConfigRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateKmsConfigRequest
impl Message for CreateKmsConfigRequest
Source§impl PartialEq for CreateKmsConfigRequest
impl PartialEq for CreateKmsConfigRequest
impl StructuralPartialEq for CreateKmsConfigRequest
Auto Trait Implementations§
impl Freeze for CreateKmsConfigRequest
impl RefUnwindSafe for CreateKmsConfigRequest
impl Send for CreateKmsConfigRequest
impl Sync for CreateKmsConfigRequest
impl Unpin for CreateKmsConfigRequest
impl UnwindSafe for CreateKmsConfigRequest
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
Mutably borrows from an owned value. Read more