#[non_exhaustive]pub struct SqlInstancesDeleteRequest {
pub instance: String,
pub project: String,
pub enable_final_backup: Option<bool>,
pub final_backup_description: String,
pub expiration: Option<Expiration>,
/* private fields */
}Expand description
Instance delete request.
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.instance: StringCloud SQL instance ID. This does not include the project ID.
project: StringProject ID of the project that contains the instance to be deleted.
enable_final_backup: Option<bool>Flag to opt-in for final backup. By default, it is turned off.
final_backup_description: StringOptional. The description of the final backup.
expiration: Option<Expiration>Implementations§
Source§impl SqlInstancesDeleteRequest
impl SqlInstancesDeleteRequest
pub fn new() -> Self
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_enable_final_backup<T>(self, v: T) -> Self
pub fn set_enable_final_backup<T>(self, v: T) -> Self
Sets the value of enable_final_backup.
§Example
let x = SqlInstancesDeleteRequest::new().set_enable_final_backup(true);Sourcepub fn set_or_clear_enable_final_backup<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enable_final_backup<T>(self, v: Option<T>) -> Self
Sets or clears the value of enable_final_backup.
§Example
let x = SqlInstancesDeleteRequest::new().set_or_clear_enable_final_backup(Some(false));
let x = SqlInstancesDeleteRequest::new().set_or_clear_enable_final_backup(None::<bool>);Sourcepub fn set_final_backup_description<T: Into<String>>(self, v: T) -> Self
pub fn set_final_backup_description<T: Into<String>>(self, v: T) -> Self
Sets the value of final_backup_description.
§Example
let x = SqlInstancesDeleteRequest::new().set_final_backup_description("example");Sourcepub fn set_expiration<T: Into<Option<Expiration>>>(self, v: T) -> Self
pub fn set_expiration<T: Into<Option<Expiration>>>(self, v: T) -> Self
Sets the value of expiration.
Note that all the setters affecting expiration are mutually
exclusive.
§Example
use google_cloud_sql_v1::model::sql_instances_delete_request::Expiration;
let x = SqlInstancesDeleteRequest::new().set_expiration(Some(Expiration::FinalBackupTtlDays(42)));Sourcepub fn final_backup_ttl_days(&self) -> Option<&i64>
pub fn final_backup_ttl_days(&self) -> Option<&i64>
The value of expiration
if it holds a FinalBackupTtlDays, None if the field is not set or
holds a different branch.
Sourcepub fn set_final_backup_ttl_days<T: Into<i64>>(self, v: T) -> Self
pub fn set_final_backup_ttl_days<T: Into<i64>>(self, v: T) -> Self
Sets the value of expiration
to hold a FinalBackupTtlDays.
Note that all the setters affecting expiration are
mutually exclusive.
§Example
let x = SqlInstancesDeleteRequest::new().set_final_backup_ttl_days(42);
assert!(x.final_backup_ttl_days().is_some());
assert!(x.final_backup_expiry_time().is_none());Sourcepub fn final_backup_expiry_time(&self) -> Option<&Box<Timestamp>>
pub fn final_backup_expiry_time(&self) -> Option<&Box<Timestamp>>
The value of expiration
if it holds a FinalBackupExpiryTime, None if the field is not set or
holds a different branch.
Sourcepub fn set_final_backup_expiry_time<T: Into<Box<Timestamp>>>(self, v: T) -> Self
pub fn set_final_backup_expiry_time<T: Into<Box<Timestamp>>>(self, v: T) -> Self
Sets the value of expiration
to hold a FinalBackupExpiryTime.
Note that all the setters affecting expiration are
mutually exclusive.
§Example
use wkt::Timestamp;
let x = SqlInstancesDeleteRequest::new().set_final_backup_expiry_time(Timestamp::default()/* use setters */);
assert!(x.final_backup_expiry_time().is_some());
assert!(x.final_backup_ttl_days().is_none());Trait Implementations§
Source§impl Clone for SqlInstancesDeleteRequest
impl Clone for SqlInstancesDeleteRequest
Source§fn clone(&self) -> SqlInstancesDeleteRequest
fn clone(&self) -> SqlInstancesDeleteRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more