#[non_exhaustive]pub struct UsageProfileDefinitionBuilder { /* private fields */ }Expand description
A builder for UsageProfileDefinition.
Implementations§
Source§impl UsageProfileDefinitionBuilder
impl UsageProfileDefinitionBuilder
Sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the usage profile.
Sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the usage profile.
Sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the usage profile.
Sourcepub fn created_on(self, input: DateTime) -> Self
pub fn created_on(self, input: DateTime) -> Self
The date and time when the usage profile was created.
Sourcepub fn set_created_on(self, input: Option<DateTime>) -> Self
pub fn set_created_on(self, input: Option<DateTime>) -> Self
The date and time when the usage profile was created.
Sourcepub fn get_created_on(&self) -> &Option<DateTime>
pub fn get_created_on(&self) -> &Option<DateTime>
The date and time when the usage profile was created.
Sourcepub fn last_modified_on(self, input: DateTime) -> Self
pub fn last_modified_on(self, input: DateTime) -> Self
The date and time when the usage profile was last modified.
Sourcepub fn set_last_modified_on(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_on(self, input: Option<DateTime>) -> Self
The date and time when the usage profile was last modified.
Sourcepub fn get_last_modified_on(&self) -> &Option<DateTime>
pub fn get_last_modified_on(&self) -> &Option<DateTime>
The date and time when the usage profile was last modified.
Sourcepub fn build(self) -> UsageProfileDefinition
pub fn build(self) -> UsageProfileDefinition
Consumes the builder and constructs a UsageProfileDefinition.
Trait Implementations§
Source§impl Clone for UsageProfileDefinitionBuilder
impl Clone for UsageProfileDefinitionBuilder
Source§fn clone(&self) -> UsageProfileDefinitionBuilder
fn clone(&self) -> UsageProfileDefinitionBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for UsageProfileDefinitionBuilder
impl Default for UsageProfileDefinitionBuilder
Source§fn default() -> UsageProfileDefinitionBuilder
fn default() -> UsageProfileDefinitionBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for UsageProfileDefinitionBuilder
impl PartialEq for UsageProfileDefinitionBuilder
Source§fn eq(&self, other: &UsageProfileDefinitionBuilder) -> bool
fn eq(&self, other: &UsageProfileDefinitionBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UsageProfileDefinitionBuilder
Auto Trait Implementations§
impl Freeze for UsageProfileDefinitionBuilder
impl RefUnwindSafe for UsageProfileDefinitionBuilder
impl Send for UsageProfileDefinitionBuilder
impl Sync for UsageProfileDefinitionBuilder
impl Unpin for UsageProfileDefinitionBuilder
impl UnsafeUnpin for UsageProfileDefinitionBuilder
impl UnwindSafe for UsageProfileDefinitionBuilder
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§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.