#[non_exhaustive]pub struct InterconnectApplicationAwareInterconnect {
pub bandwidth_percentage_policy: Option<InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy>,
pub profile_description: Option<String>,
pub shape_average_percentages: Vec<InterconnectApplicationAwareInterconnectBandwidthPercentage>,
pub strict_priority_policy: Option<InterconnectApplicationAwareInterconnectStrictPriorityPolicy>,
/* private fields */
}Available on crate feature
interconnects only.Expand description
Configuration information for application awareness on this Cloud Interconnect.
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.bandwidth_percentage_policy: Option<InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy>§profile_description: Option<String>Description for the application awareness profile on this Cloud Interconnect.
shape_average_percentages: Vec<InterconnectApplicationAwareInterconnectBandwidthPercentage>Optional field to specify a list of shape average percentages to be applied in conjunction with StrictPriorityPolicy or BandwidthPercentagePolicy.
strict_priority_policy: Option<InterconnectApplicationAwareInterconnectStrictPriorityPolicy>Implementations§
Source§impl InterconnectApplicationAwareInterconnect
impl InterconnectApplicationAwareInterconnect
pub fn new() -> Self
Sourcepub fn set_bandwidth_percentage_policy<T>(self, v: T) -> Self
pub fn set_bandwidth_percentage_policy<T>(self, v: T) -> Self
Sets the value of bandwidth_percentage_policy.
§Example
ⓘ
use google_cloud_compute_v1::model::InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy;
let x = InterconnectApplicationAwareInterconnect::new().set_bandwidth_percentage_policy(InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy::default()/* use setters */);Sourcepub fn set_or_clear_bandwidth_percentage_policy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_bandwidth_percentage_policy<T>(self, v: Option<T>) -> Self
Sets or clears the value of bandwidth_percentage_policy.
§Example
ⓘ
use google_cloud_compute_v1::model::InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy;
let x = InterconnectApplicationAwareInterconnect::new().set_or_clear_bandwidth_percentage_policy(Some(InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy::default()/* use setters */));
let x = InterconnectApplicationAwareInterconnect::new().set_or_clear_bandwidth_percentage_policy(None::<InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy>);Sourcepub fn set_profile_description<T>(self, v: T) -> Self
pub fn set_profile_description<T>(self, v: T) -> Self
Sets the value of profile_description.
§Example
ⓘ
let x = InterconnectApplicationAwareInterconnect::new().set_profile_description("example");Sourcepub fn set_or_clear_profile_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_profile_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of profile_description.
§Example
ⓘ
let x = InterconnectApplicationAwareInterconnect::new().set_or_clear_profile_description(Some("example"));
let x = InterconnectApplicationAwareInterconnect::new().set_or_clear_profile_description(None::<String>);Sourcepub fn set_shape_average_percentages<T, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = V>,
V: Into<InterconnectApplicationAwareInterconnectBandwidthPercentage>,
pub fn set_shape_average_percentages<T, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = V>,
V: Into<InterconnectApplicationAwareInterconnectBandwidthPercentage>,
Sets the value of shape_average_percentages.
§Example
ⓘ
use google_cloud_compute_v1::model::InterconnectApplicationAwareInterconnectBandwidthPercentage;
let x = InterconnectApplicationAwareInterconnect::new()
.set_shape_average_percentages([
InterconnectApplicationAwareInterconnectBandwidthPercentage::default()/* use setters */,
InterconnectApplicationAwareInterconnectBandwidthPercentage::default()/* use (different) setters */,
]);Sourcepub fn set_strict_priority_policy<T>(self, v: T) -> Self
pub fn set_strict_priority_policy<T>(self, v: T) -> Self
Sets the value of strict_priority_policy.
§Example
ⓘ
use google_cloud_compute_v1::model::InterconnectApplicationAwareInterconnectStrictPriorityPolicy;
let x = InterconnectApplicationAwareInterconnect::new().set_strict_priority_policy(InterconnectApplicationAwareInterconnectStrictPriorityPolicy::default()/* use setters */);Sourcepub fn set_or_clear_strict_priority_policy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_strict_priority_policy<T>(self, v: Option<T>) -> Self
Sets or clears the value of strict_priority_policy.
§Example
ⓘ
use google_cloud_compute_v1::model::InterconnectApplicationAwareInterconnectStrictPriorityPolicy;
let x = InterconnectApplicationAwareInterconnect::new().set_or_clear_strict_priority_policy(Some(InterconnectApplicationAwareInterconnectStrictPriorityPolicy::default()/* use setters */));
let x = InterconnectApplicationAwareInterconnect::new().set_or_clear_strict_priority_policy(None::<InterconnectApplicationAwareInterconnectStrictPriorityPolicy>);Trait Implementations§
Source§impl Clone for InterconnectApplicationAwareInterconnect
impl Clone for InterconnectApplicationAwareInterconnect
Source§fn clone(&self) -> InterconnectApplicationAwareInterconnect
fn clone(&self) -> InterconnectApplicationAwareInterconnect
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 InterconnectApplicationAwareInterconnect
impl Default for InterconnectApplicationAwareInterconnect
Source§fn default() -> InterconnectApplicationAwareInterconnect
fn default() -> InterconnectApplicationAwareInterconnect
Returns the “default value” for a type. Read more
Source§impl PartialEq for InterconnectApplicationAwareInterconnect
impl PartialEq for InterconnectApplicationAwareInterconnect
Source§fn eq(&self, other: &InterconnectApplicationAwareInterconnect) -> bool
fn eq(&self, other: &InterconnectApplicationAwareInterconnect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterconnectApplicationAwareInterconnect
Auto Trait Implementations§
impl Freeze for InterconnectApplicationAwareInterconnect
impl RefUnwindSafe for InterconnectApplicationAwareInterconnect
impl Send for InterconnectApplicationAwareInterconnect
impl Sync for InterconnectApplicationAwareInterconnect
impl Unpin for InterconnectApplicationAwareInterconnect
impl UnwindSafe for InterconnectApplicationAwareInterconnect
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