Struct aws_sdk_appstream::types::builders::EntitlementBuilder
source · #[non_exhaustive]pub struct EntitlementBuilder { /* private fields */ }
Expand description
A builder for Entitlement
.
Implementations§
source§impl EntitlementBuilder
impl EntitlementBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the entitlement.
This field is required.sourcepub fn stack_name(self, input: impl Into<String>) -> Self
pub fn stack_name(self, input: impl Into<String>) -> Self
The name of the stack with which the entitlement is associated.
This field is required.sourcepub fn set_stack_name(self, input: Option<String>) -> Self
pub fn set_stack_name(self, input: Option<String>) -> Self
The name of the stack with which the entitlement is associated.
sourcepub fn get_stack_name(&self) -> &Option<String>
pub fn get_stack_name(&self) -> &Option<String>
The name of the stack with which the entitlement is associated.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the entitlement.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the entitlement.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the entitlement.
sourcepub fn app_visibility(self, input: AppVisibility) -> Self
pub fn app_visibility(self, input: AppVisibility) -> Self
Specifies whether all or selected apps are entitled.
This field is required.sourcepub fn set_app_visibility(self, input: Option<AppVisibility>) -> Self
pub fn set_app_visibility(self, input: Option<AppVisibility>) -> Self
Specifies whether all or selected apps are entitled.
sourcepub fn get_app_visibility(&self) -> &Option<AppVisibility>
pub fn get_app_visibility(&self) -> &Option<AppVisibility>
Specifies whether all or selected apps are entitled.
sourcepub fn attributes(self, input: EntitlementAttribute) -> Self
pub fn attributes(self, input: EntitlementAttribute) -> Self
Appends an item to attributes
.
To override the contents of this collection use set_attributes
.
The attributes of the entitlement.
sourcepub fn set_attributes(self, input: Option<Vec<EntitlementAttribute>>) -> Self
pub fn set_attributes(self, input: Option<Vec<EntitlementAttribute>>) -> Self
The attributes of the entitlement.
sourcepub fn get_attributes(&self) -> &Option<Vec<EntitlementAttribute>>
pub fn get_attributes(&self) -> &Option<Vec<EntitlementAttribute>>
The attributes of the entitlement.
sourcepub fn created_time(self, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The time when the entitlement was created.
sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The time when the entitlement was created.
sourcepub fn get_created_time(&self) -> &Option<DateTime>
pub fn get_created_time(&self) -> &Option<DateTime>
The time when the entitlement was created.
sourcepub fn last_modified_time(self, input: DateTime) -> Self
pub fn last_modified_time(self, input: DateTime) -> Self
The time when the entitlement was last modified.
sourcepub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
The time when the entitlement was last modified.
sourcepub fn get_last_modified_time(&self) -> &Option<DateTime>
pub fn get_last_modified_time(&self) -> &Option<DateTime>
The time when the entitlement was last modified.
sourcepub fn build(self) -> Entitlement
pub fn build(self) -> Entitlement
Consumes the builder and constructs a Entitlement
.
Trait Implementations§
source§impl Clone for EntitlementBuilder
impl Clone for EntitlementBuilder
source§fn clone(&self) -> EntitlementBuilder
fn clone(&self) -> EntitlementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EntitlementBuilder
impl Debug for EntitlementBuilder
source§impl Default for EntitlementBuilder
impl Default for EntitlementBuilder
source§fn default() -> EntitlementBuilder
fn default() -> EntitlementBuilder
source§impl PartialEq for EntitlementBuilder
impl PartialEq for EntitlementBuilder
source§fn eq(&self, other: &EntitlementBuilder) -> bool
fn eq(&self, other: &EntitlementBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EntitlementBuilder
Auto Trait Implementations§
impl Freeze for EntitlementBuilder
impl RefUnwindSafe for EntitlementBuilder
impl Send for EntitlementBuilder
impl Sync for EntitlementBuilder
impl Unpin for EntitlementBuilder
impl UnwindSafe for EntitlementBuilder
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