Struct aws_sdk_iot::types::builders::PolicyVersionBuilder
source · #[non_exhaustive]pub struct PolicyVersionBuilder { /* private fields */ }
Expand description
A builder for PolicyVersion
.
Implementations§
source§impl PolicyVersionBuilder
impl PolicyVersionBuilder
sourcepub fn version_id(self, input: impl Into<String>) -> Self
pub fn version_id(self, input: impl Into<String>) -> Self
The policy version ID.
sourcepub fn set_version_id(self, input: Option<String>) -> Self
pub fn set_version_id(self, input: Option<String>) -> Self
The policy version ID.
sourcepub fn get_version_id(&self) -> &Option<String>
pub fn get_version_id(&self) -> &Option<String>
The policy version ID.
sourcepub fn is_default_version(self, input: bool) -> Self
pub fn is_default_version(self, input: bool) -> Self
Specifies whether the policy version is the default.
sourcepub fn set_is_default_version(self, input: Option<bool>) -> Self
pub fn set_is_default_version(self, input: Option<bool>) -> Self
Specifies whether the policy version is the default.
sourcepub fn get_is_default_version(&self) -> &Option<bool>
pub fn get_is_default_version(&self) -> &Option<bool>
Specifies whether the policy version is the default.
sourcepub fn create_date(self, input: DateTime) -> Self
pub fn create_date(self, input: DateTime) -> Self
The date and time the policy was created.
sourcepub fn set_create_date(self, input: Option<DateTime>) -> Self
pub fn set_create_date(self, input: Option<DateTime>) -> Self
The date and time the policy was created.
sourcepub fn get_create_date(&self) -> &Option<DateTime>
pub fn get_create_date(&self) -> &Option<DateTime>
The date and time the policy was created.
sourcepub fn build(self) -> PolicyVersion
pub fn build(self) -> PolicyVersion
Consumes the builder and constructs a PolicyVersion
.
Trait Implementations§
source§impl Clone for PolicyVersionBuilder
impl Clone for PolicyVersionBuilder
source§fn clone(&self) -> PolicyVersionBuilder
fn clone(&self) -> PolicyVersionBuilder
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 PolicyVersionBuilder
impl Debug for PolicyVersionBuilder
source§impl Default for PolicyVersionBuilder
impl Default for PolicyVersionBuilder
source§fn default() -> PolicyVersionBuilder
fn default() -> PolicyVersionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PolicyVersionBuilder
impl PartialEq for PolicyVersionBuilder
impl StructuralPartialEq for PolicyVersionBuilder
Auto Trait Implementations§
impl Freeze for PolicyVersionBuilder
impl RefUnwindSafe for PolicyVersionBuilder
impl Send for PolicyVersionBuilder
impl Sync for PolicyVersionBuilder
impl Unpin for PolicyVersionBuilder
impl UnwindSafe for PolicyVersionBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.