#[non_exhaustive]pub struct SecurityPolicyDetailBuilder { /* private fields */ }
Expand description
A builder for SecurityPolicyDetail
.
Implementations§
source§impl SecurityPolicyDetailBuilder
impl SecurityPolicyDetailBuilder
sourcepub fn type(self, input: SecurityPolicyType) -> Self
pub fn type(self, input: SecurityPolicyType) -> Self
The type of security policy.
sourcepub fn set_type(self, input: Option<SecurityPolicyType>) -> Self
pub fn set_type(self, input: Option<SecurityPolicyType>) -> Self
The type of security policy.
sourcepub fn get_type(&self) -> &Option<SecurityPolicyType>
pub fn get_type(&self) -> &Option<SecurityPolicyType>
The type of security policy.
sourcepub fn policy_version(self, input: impl Into<String>) -> Self
pub fn policy_version(self, input: impl Into<String>) -> Self
The version of the policy.
sourcepub fn set_policy_version(self, input: Option<String>) -> Self
pub fn set_policy_version(self, input: Option<String>) -> Self
The version of the policy.
sourcepub fn get_policy_version(&self) -> &Option<String>
pub fn get_policy_version(&self) -> &Option<String>
The version of the policy.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the security policy.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the security policy.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the security policy.
sourcepub fn set_policy(self, input: Option<Document>) -> Self
pub fn set_policy(self, input: Option<Document>) -> Self
The JSON policy document without any whitespaces.
sourcepub fn get_policy(&self) -> &Option<Document>
pub fn get_policy(&self) -> &Option<Document>
The JSON policy document without any whitespaces.
sourcepub fn created_date(self, input: i64) -> Self
pub fn created_date(self, input: i64) -> Self
The date the policy was created.
sourcepub fn set_created_date(self, input: Option<i64>) -> Self
pub fn set_created_date(self, input: Option<i64>) -> Self
The date the policy was created.
sourcepub fn get_created_date(&self) -> &Option<i64>
pub fn get_created_date(&self) -> &Option<i64>
The date the policy was created.
sourcepub fn last_modified_date(self, input: i64) -> Self
pub fn last_modified_date(self, input: i64) -> Self
The timestamp of when the policy was last modified.
sourcepub fn set_last_modified_date(self, input: Option<i64>) -> Self
pub fn set_last_modified_date(self, input: Option<i64>) -> Self
The timestamp of when the policy was last modified.
sourcepub fn get_last_modified_date(&self) -> &Option<i64>
pub fn get_last_modified_date(&self) -> &Option<i64>
The timestamp of when the policy was last modified.
sourcepub fn build(self) -> SecurityPolicyDetail
pub fn build(self) -> SecurityPolicyDetail
Consumes the builder and constructs a SecurityPolicyDetail
.
Trait Implementations§
source§impl Clone for SecurityPolicyDetailBuilder
impl Clone for SecurityPolicyDetailBuilder
source§fn clone(&self) -> SecurityPolicyDetailBuilder
fn clone(&self) -> SecurityPolicyDetailBuilder
Returns a copy 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 Debug for SecurityPolicyDetailBuilder
impl Debug for SecurityPolicyDetailBuilder
source§impl Default for SecurityPolicyDetailBuilder
impl Default for SecurityPolicyDetailBuilder
source§fn default() -> SecurityPolicyDetailBuilder
fn default() -> SecurityPolicyDetailBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SecurityPolicyDetailBuilder
impl PartialEq for SecurityPolicyDetailBuilder
source§fn eq(&self, other: &SecurityPolicyDetailBuilder) -> bool
fn eq(&self, other: &SecurityPolicyDetailBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SecurityPolicyDetailBuilder
Auto Trait Implementations§
impl Freeze for SecurityPolicyDetailBuilder
impl RefUnwindSafe for SecurityPolicyDetailBuilder
impl Send for SecurityPolicyDetailBuilder
impl Sync for SecurityPolicyDetailBuilder
impl Unpin for SecurityPolicyDetailBuilder
impl UnwindSafe for SecurityPolicyDetailBuilder
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.