#[non_exhaustive]pub struct CoreNetworkPolicyBuilder { /* private fields */ }
Expand description
A builder for CoreNetworkPolicy
.
Implementations§
source§impl CoreNetworkPolicyBuilder
impl CoreNetworkPolicyBuilder
sourcepub fn core_network_id(self, input: impl Into<String>) -> Self
pub fn core_network_id(self, input: impl Into<String>) -> Self
The ID of a core network.
sourcepub fn set_core_network_id(self, input: Option<String>) -> Self
pub fn set_core_network_id(self, input: Option<String>) -> Self
The ID of a core network.
sourcepub fn get_core_network_id(&self) -> &Option<String>
pub fn get_core_network_id(&self) -> &Option<String>
The ID of a core network.
sourcepub fn policy_version_id(self, input: i32) -> Self
pub fn policy_version_id(self, input: i32) -> Self
The ID of the policy version.
sourcepub fn set_policy_version_id(self, input: Option<i32>) -> Self
pub fn set_policy_version_id(self, input: Option<i32>) -> Self
The ID of the policy version.
sourcepub fn get_policy_version_id(&self) -> &Option<i32>
pub fn get_policy_version_id(&self) -> &Option<i32>
The ID of the policy version.
sourcepub fn alias(self, input: CoreNetworkPolicyAlias) -> Self
pub fn alias(self, input: CoreNetworkPolicyAlias) -> Self
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
sourcepub fn set_alias(self, input: Option<CoreNetworkPolicyAlias>) -> Self
pub fn set_alias(self, input: Option<CoreNetworkPolicyAlias>) -> Self
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
sourcepub fn get_alias(&self) -> &Option<CoreNetworkPolicyAlias>
pub fn get_alias(&self) -> &Option<CoreNetworkPolicyAlias>
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of a core network policy.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of a core network policy.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of a core network policy.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp when a core network policy was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The timestamp when a core network policy was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp when a core network policy was created.
sourcepub fn change_set_state(self, input: ChangeSetState) -> Self
pub fn change_set_state(self, input: ChangeSetState) -> Self
The state of a core network policy.
sourcepub fn set_change_set_state(self, input: Option<ChangeSetState>) -> Self
pub fn set_change_set_state(self, input: Option<ChangeSetState>) -> Self
The state of a core network policy.
sourcepub fn get_change_set_state(&self) -> &Option<ChangeSetState>
pub fn get_change_set_state(&self) -> &Option<ChangeSetState>
The state of a core network policy.
sourcepub fn policy_errors(self, input: CoreNetworkPolicyError) -> Self
pub fn policy_errors(self, input: CoreNetworkPolicyError) -> Self
Appends an item to policy_errors
.
To override the contents of this collection use set_policy_errors
.
Describes any errors in a core network policy.
sourcepub fn set_policy_errors(
self,
input: Option<Vec<CoreNetworkPolicyError>>
) -> Self
pub fn set_policy_errors( self, input: Option<Vec<CoreNetworkPolicyError>> ) -> Self
Describes any errors in a core network policy.
sourcepub fn get_policy_errors(&self) -> &Option<Vec<CoreNetworkPolicyError>>
pub fn get_policy_errors(&self) -> &Option<Vec<CoreNetworkPolicyError>>
Describes any errors in a core network policy.
sourcepub fn policy_document(self, input: impl Into<String>) -> Self
pub fn policy_document(self, input: impl Into<String>) -> Self
Describes a core network policy.
sourcepub fn set_policy_document(self, input: Option<String>) -> Self
pub fn set_policy_document(self, input: Option<String>) -> Self
Describes a core network policy.
sourcepub fn get_policy_document(&self) -> &Option<String>
pub fn get_policy_document(&self) -> &Option<String>
Describes a core network policy.
sourcepub fn build(self) -> CoreNetworkPolicy
pub fn build(self) -> CoreNetworkPolicy
Consumes the builder and constructs a CoreNetworkPolicy
.
Trait Implementations§
source§impl Clone for CoreNetworkPolicyBuilder
impl Clone for CoreNetworkPolicyBuilder
source§fn clone(&self) -> CoreNetworkPolicyBuilder
fn clone(&self) -> CoreNetworkPolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CoreNetworkPolicyBuilder
impl Debug for CoreNetworkPolicyBuilder
source§impl Default for CoreNetworkPolicyBuilder
impl Default for CoreNetworkPolicyBuilder
source§fn default() -> CoreNetworkPolicyBuilder
fn default() -> CoreNetworkPolicyBuilder
source§impl PartialEq for CoreNetworkPolicyBuilder
impl PartialEq for CoreNetworkPolicyBuilder
source§fn eq(&self, other: &CoreNetworkPolicyBuilder) -> bool
fn eq(&self, other: &CoreNetworkPolicyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CoreNetworkPolicyBuilder
Auto Trait Implementations§
impl Freeze for CoreNetworkPolicyBuilder
impl RefUnwindSafe for CoreNetworkPolicyBuilder
impl Send for CoreNetworkPolicyBuilder
impl Sync for CoreNetworkPolicyBuilder
impl Unpin for CoreNetworkPolicyBuilder
impl UnwindSafe for CoreNetworkPolicyBuilder
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