#[non_exhaustive]pub struct InstancesSetSecurityPolicyRequest {
pub network_interfaces: Vec<String>,
pub security_policy: Option<String>,
/* private fields */
}Available on crate feature
instances 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.network_interfaces: Vec<String>The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.
security_policy: Option<String>A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
Implementations§
Source§impl InstancesSetSecurityPolicyRequest
impl InstancesSetSecurityPolicyRequest
pub fn new() -> Self
Sourcepub fn set_network_interfaces<T, V>(self, v: T) -> Self
pub fn set_network_interfaces<T, V>(self, v: T) -> Self
Sets the value of network_interfaces.
§Example
ⓘ
let x = InstancesSetSecurityPolicyRequest::new().set_network_interfaces(["a", "b", "c"]);Sourcepub fn set_security_policy<T>(self, v: T) -> Self
pub fn set_security_policy<T>(self, v: T) -> Self
Sets the value of security_policy.
§Example
ⓘ
let x = InstancesSetSecurityPolicyRequest::new().set_security_policy("example");Sourcepub fn set_or_clear_security_policy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_security_policy<T>(self, v: Option<T>) -> Self
Sets or clears the value of security_policy.
§Example
ⓘ
let x = InstancesSetSecurityPolicyRequest::new().set_or_clear_security_policy(Some("example"));
let x = InstancesSetSecurityPolicyRequest::new().set_or_clear_security_policy(None::<String>);Trait Implementations§
Source§impl Clone for InstancesSetSecurityPolicyRequest
impl Clone for InstancesSetSecurityPolicyRequest
Source§fn clone(&self) -> InstancesSetSecurityPolicyRequest
fn clone(&self) -> InstancesSetSecurityPolicyRequest
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 InstancesSetSecurityPolicyRequest
impl Default for InstancesSetSecurityPolicyRequest
Source§fn default() -> InstancesSetSecurityPolicyRequest
fn default() -> InstancesSetSecurityPolicyRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstancesSetSecurityPolicyRequest
impl PartialEq for InstancesSetSecurityPolicyRequest
Source§fn eq(&self, other: &InstancesSetSecurityPolicyRequest) -> bool
fn eq(&self, other: &InstancesSetSecurityPolicyRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstancesSetSecurityPolicyRequest
Auto Trait Implementations§
impl Freeze for InstancesSetSecurityPolicyRequest
impl RefUnwindSafe for InstancesSetSecurityPolicyRequest
impl Send for InstancesSetSecurityPolicyRequest
impl Sync for InstancesSetSecurityPolicyRequest
impl Unpin for InstancesSetSecurityPolicyRequest
impl UnwindSafe for InstancesSetSecurityPolicyRequest
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