Struct aws_sdk_networkmanager::types::CoreNetworkPolicy
source · #[non_exhaustive]pub struct CoreNetworkPolicy {
pub core_network_id: Option<String>,
pub policy_version_id: Option<i32>,
pub alias: Option<CoreNetworkPolicyAlias>,
pub description: Option<String>,
pub created_at: Option<DateTime>,
pub change_set_state: Option<ChangeSetState>,
pub policy_errors: Option<Vec<CoreNetworkPolicyError>>,
pub policy_document: Option<String>,
}
Expand description
Describes a core network policy. You can have only one LIVE Core Policy.
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.core_network_id: Option<String>
The ID of a core network.
policy_version_id: Option<i32>
The ID of the policy version.
alias: Option<CoreNetworkPolicyAlias>
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
description: Option<String>
The description of a core network policy.
created_at: Option<DateTime>
The timestamp when a core network policy was created.
change_set_state: Option<ChangeSetState>
The state of a core network policy.
policy_errors: Option<Vec<CoreNetworkPolicyError>>
Describes any errors in a core network policy.
policy_document: Option<String>
Describes a core network policy.
Implementations§
source§impl CoreNetworkPolicy
impl CoreNetworkPolicy
sourcepub fn core_network_id(&self) -> Option<&str>
pub fn core_network_id(&self) -> Option<&str>
The ID of a core network.
sourcepub fn policy_version_id(&self) -> Option<i32>
pub fn policy_version_id(&self) -> Option<i32>
The ID of the policy version.
sourcepub fn alias(&self) -> Option<&CoreNetworkPolicyAlias>
pub fn alias(&self) -> Option<&CoreNetworkPolicyAlias>
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of a core network policy.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The timestamp when a core network policy was created.
sourcepub fn change_set_state(&self) -> Option<&ChangeSetState>
pub fn change_set_state(&self) -> Option<&ChangeSetState>
The state of a core network policy.
sourcepub fn policy_errors(&self) -> &[CoreNetworkPolicyError]
pub fn policy_errors(&self) -> &[CoreNetworkPolicyError]
Describes any errors in a core network policy.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .policy_errors.is_none()
.
sourcepub fn policy_document(&self) -> Option<&str>
pub fn policy_document(&self) -> Option<&str>
Describes a core network policy.
source§impl CoreNetworkPolicy
impl CoreNetworkPolicy
sourcepub fn builder() -> CoreNetworkPolicyBuilder
pub fn builder() -> CoreNetworkPolicyBuilder
Creates a new builder-style object to manufacture CoreNetworkPolicy
.
Trait Implementations§
source§impl Clone for CoreNetworkPolicy
impl Clone for CoreNetworkPolicy
source§fn clone(&self) -> CoreNetworkPolicy
fn clone(&self) -> CoreNetworkPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CoreNetworkPolicy
impl Debug for CoreNetworkPolicy
source§impl PartialEq for CoreNetworkPolicy
impl PartialEq for CoreNetworkPolicy
source§fn eq(&self, other: &CoreNetworkPolicy) -> bool
fn eq(&self, other: &CoreNetworkPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CoreNetworkPolicy
Auto Trait Implementations§
impl Freeze for CoreNetworkPolicy
impl RefUnwindSafe for CoreNetworkPolicy
impl Send for CoreNetworkPolicy
impl Sync for CoreNetworkPolicy
impl Unpin for CoreNetworkPolicy
impl UnwindSafe for CoreNetworkPolicy
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more