#[non_exhaustive]pub struct CoreNetworkPolicyVersionBuilder { /* private fields */ }
Expand description
A builder for CoreNetworkPolicyVersion
.
Implementations§
source§impl CoreNetworkPolicyVersionBuilder
impl CoreNetworkPolicyVersionBuilder
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 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 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 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 version.
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 version.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of a core network policy version.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp when a core network policy version 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 version 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 version was created.
sourcepub fn change_set_state(self, input: ChangeSetState) -> Self
pub fn change_set_state(self, input: ChangeSetState) -> Self
The status of the policy version change set.
sourcepub fn set_change_set_state(self, input: Option<ChangeSetState>) -> Self
pub fn set_change_set_state(self, input: Option<ChangeSetState>) -> Self
The status of the policy version change set.
sourcepub fn get_change_set_state(&self) -> &Option<ChangeSetState>
pub fn get_change_set_state(&self) -> &Option<ChangeSetState>
The status of the policy version change set.
sourcepub fn build(self) -> CoreNetworkPolicyVersion
pub fn build(self) -> CoreNetworkPolicyVersion
Consumes the builder and constructs a CoreNetworkPolicyVersion
.
Trait Implementations§
source§impl Clone for CoreNetworkPolicyVersionBuilder
impl Clone for CoreNetworkPolicyVersionBuilder
source§fn clone(&self) -> CoreNetworkPolicyVersionBuilder
fn clone(&self) -> CoreNetworkPolicyVersionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CoreNetworkPolicyVersionBuilder
impl Default for CoreNetworkPolicyVersionBuilder
source§fn default() -> CoreNetworkPolicyVersionBuilder
fn default() -> CoreNetworkPolicyVersionBuilder
source§impl PartialEq for CoreNetworkPolicyVersionBuilder
impl PartialEq for CoreNetworkPolicyVersionBuilder
source§fn eq(&self, other: &CoreNetworkPolicyVersionBuilder) -> bool
fn eq(&self, other: &CoreNetworkPolicyVersionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CoreNetworkPolicyVersionBuilder
Auto Trait Implementations§
impl Freeze for CoreNetworkPolicyVersionBuilder
impl RefUnwindSafe for CoreNetworkPolicyVersionBuilder
impl Send for CoreNetworkPolicyVersionBuilder
impl Sync for CoreNetworkPolicyVersionBuilder
impl Unpin for CoreNetworkPolicyVersionBuilder
impl UnwindSafe for CoreNetworkPolicyVersionBuilder
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