#[non_exhaustive]pub struct FutureReservationSpecificSKUProperties {
pub instance_properties: Option<AllocationSpecificSKUAllocationReservedInstanceProperties>,
pub source_instance_template: Option<String>,
pub total_count: Option<i64>,
/* private fields */
}Available on crate feature
future-reservations only.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.instance_properties: Option<AllocationSpecificSKUAllocationReservedInstanceProperties>Properties of the SKU instances being reserved.
source_instance_template: Option<String>The instance template that will be used to populate the ReservedInstanceProperties of the future reservation
total_count: Option<i64>Total number of instances for which capacity assurance is requested at a future time period.
Implementations§
Source§impl FutureReservationSpecificSKUProperties
impl FutureReservationSpecificSKUProperties
pub fn new() -> Self
Sourcepub fn set_instance_properties<T>(self, v: T) -> Self
pub fn set_instance_properties<T>(self, v: T) -> Self
Sets the value of instance_properties.
§Example
ⓘ
use google_cloud_compute_v1::model::AllocationSpecificSKUAllocationReservedInstanceProperties;
let x = FutureReservationSpecificSKUProperties::new().set_instance_properties(AllocationSpecificSKUAllocationReservedInstanceProperties::default()/* use setters */);Sourcepub fn set_or_clear_instance_properties<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance_properties<T>(self, v: Option<T>) -> Self
Sets or clears the value of instance_properties.
§Example
ⓘ
use google_cloud_compute_v1::model::AllocationSpecificSKUAllocationReservedInstanceProperties;
let x = FutureReservationSpecificSKUProperties::new().set_or_clear_instance_properties(Some(AllocationSpecificSKUAllocationReservedInstanceProperties::default()/* use setters */));
let x = FutureReservationSpecificSKUProperties::new().set_or_clear_instance_properties(None::<AllocationSpecificSKUAllocationReservedInstanceProperties>);Sourcepub fn set_source_instance_template<T>(self, v: T) -> Self
pub fn set_source_instance_template<T>(self, v: T) -> Self
Sets the value of source_instance_template.
§Example
ⓘ
let x = FutureReservationSpecificSKUProperties::new().set_source_instance_template("example");Sourcepub fn set_or_clear_source_instance_template<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_source_instance_template<T>(self, v: Option<T>) -> Self
Sets or clears the value of source_instance_template.
§Example
ⓘ
let x = FutureReservationSpecificSKUProperties::new().set_or_clear_source_instance_template(Some("example"));
let x = FutureReservationSpecificSKUProperties::new().set_or_clear_source_instance_template(None::<String>);Sourcepub fn set_total_count<T>(self, v: T) -> Self
pub fn set_total_count<T>(self, v: T) -> Self
Sets the value of total_count.
§Example
ⓘ
let x = FutureReservationSpecificSKUProperties::new().set_total_count(42);Sourcepub fn set_or_clear_total_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_total_count<T>(self, v: Option<T>) -> Self
Sets or clears the value of total_count.
§Example
ⓘ
let x = FutureReservationSpecificSKUProperties::new().set_or_clear_total_count(Some(42));
let x = FutureReservationSpecificSKUProperties::new().set_or_clear_total_count(None::<i32>);Trait Implementations§
Source§impl Clone for FutureReservationSpecificSKUProperties
impl Clone for FutureReservationSpecificSKUProperties
Source§fn clone(&self) -> FutureReservationSpecificSKUProperties
fn clone(&self) -> FutureReservationSpecificSKUProperties
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 Default for FutureReservationSpecificSKUProperties
impl Default for FutureReservationSpecificSKUProperties
Source§fn default() -> FutureReservationSpecificSKUProperties
fn default() -> FutureReservationSpecificSKUProperties
Returns the “default value” for a type. Read more
Source§impl PartialEq for FutureReservationSpecificSKUProperties
impl PartialEq for FutureReservationSpecificSKUProperties
Source§fn eq(&self, other: &FutureReservationSpecificSKUProperties) -> bool
fn eq(&self, other: &FutureReservationSpecificSKUProperties) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FutureReservationSpecificSKUProperties
Auto Trait Implementations§
impl Freeze for FutureReservationSpecificSKUProperties
impl RefUnwindSafe for FutureReservationSpecificSKUProperties
impl Send for FutureReservationSpecificSKUProperties
impl Sync for FutureReservationSpecificSKUProperties
impl Unpin for FutureReservationSpecificSKUProperties
impl UnwindSafe for FutureReservationSpecificSKUProperties
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