#[non_exhaustive]pub struct CreateViewInputBuilder { /* private fields */ }
Expand description
A builder for CreateViewInput
.
Implementations§
source§impl CreateViewInputBuilder
impl CreateViewInputBuilder
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
This field is required.sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique Id for each create view request to avoid duplicate view creation. For example, the view is idempotent ClientToken is provided.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique Id for each create view request to avoid duplicate view creation. For example, the view is idempotent ClientToken is provided.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique Id for each create view request to avoid duplicate view creation. For example, the view is idempotent ClientToken is provided.
sourcepub fn status(self, input: ViewStatus) -> Self
pub fn status(self, input: ViewStatus) -> Self
Indicates the view status as either SAVED
or PUBLISHED
. The PUBLISHED
status will initiate validation on the content.
sourcepub fn set_status(self, input: Option<ViewStatus>) -> Self
pub fn set_status(self, input: Option<ViewStatus>) -> Self
Indicates the view status as either SAVED
or PUBLISHED
. The PUBLISHED
status will initiate validation on the content.
sourcepub fn get_status(&self) -> &Option<ViewStatus>
pub fn get_status(&self) -> &Option<ViewStatus>
Indicates the view status as either SAVED
or PUBLISHED
. The PUBLISHED
status will initiate validation on the content.
sourcepub fn content(self, input: ViewInputContent) -> Self
pub fn content(self, input: ViewInputContent) -> Self
View content containing all content necessary to render a view except for runtime input data.
The total uncompressed content has a maximum file size of 400kB.
This field is required.sourcepub fn set_content(self, input: Option<ViewInputContent>) -> Self
pub fn set_content(self, input: Option<ViewInputContent>) -> Self
View content containing all content necessary to render a view except for runtime input data.
The total uncompressed content has a maximum file size of 400kB.
sourcepub fn get_content(&self) -> &Option<ViewInputContent>
pub fn get_content(&self) -> &Option<ViewInputContent>
View content containing all content necessary to render a view except for runtime input data.
The total uncompressed content has a maximum file size of 400kB.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the view.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the view.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the view.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the view.
This field is required.Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags associated with the view resource (not specific to view version).These tags can be used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The tags associated with the view resource (not specific to view version).These tags can be used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The tags associated with the view resource (not specific to view version).These tags can be used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
sourcepub fn build(self) -> Result<CreateViewInput, BuildError>
pub fn build(self) -> Result<CreateViewInput, BuildError>
Consumes the builder and constructs a CreateViewInput
.
source§impl CreateViewInputBuilder
impl CreateViewInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateViewOutput, SdkError<CreateViewError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateViewOutput, SdkError<CreateViewError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateViewInputBuilder
impl Clone for CreateViewInputBuilder
source§fn clone(&self) -> CreateViewInputBuilder
fn clone(&self) -> CreateViewInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateViewInputBuilder
impl Debug for CreateViewInputBuilder
source§impl Default for CreateViewInputBuilder
impl Default for CreateViewInputBuilder
source§fn default() -> CreateViewInputBuilder
fn default() -> CreateViewInputBuilder
source§impl PartialEq for CreateViewInputBuilder
impl PartialEq for CreateViewInputBuilder
source§fn eq(&self, other: &CreateViewInputBuilder) -> bool
fn eq(&self, other: &CreateViewInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateViewInputBuilder
Auto Trait Implementations§
impl Freeze for CreateViewInputBuilder
impl RefUnwindSafe for CreateViewInputBuilder
impl Send for CreateViewInputBuilder
impl Sync for CreateViewInputBuilder
impl Unpin for CreateViewInputBuilder
impl UnwindSafe for CreateViewInputBuilder
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> 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)
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>
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