pub struct CreateViewFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateView
.
Creates a new view with the possible status of SAVED
or PUBLISHED
.
The views will have a unique name for each connect instance.
It performs basic content validation if the status is SAVED
or full content validation if the status is set to PUBLISHED
. An error is returned if validation fails. It associates either the $SAVED
qualifier or both of the $SAVED
and $LATEST
qualifiers with the provided view content based on the status. The view is idempotent if ClientToken is provided.
Implementations§
source§impl CreateViewFluentBuilder
impl CreateViewFluentBuilder
sourcepub fn as_input(&self) -> &CreateViewInputBuilder
pub fn as_input(&self) -> &CreateViewInputBuilder
Access the CreateView as a reference.
sourcepub async fn send(
self
) -> Result<CreateViewOutput, SdkError<CreateViewError, HttpResponse>>
pub async fn send( self ) -> Result<CreateViewOutput, SdkError<CreateViewError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateViewOutput, CreateViewError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateViewOutput, CreateViewError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
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.
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.
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"} }.
Trait Implementations§
source§impl Clone for CreateViewFluentBuilder
impl Clone for CreateViewFluentBuilder
source§fn clone(&self) -> CreateViewFluentBuilder
fn clone(&self) -> CreateViewFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more