#[non_exhaustive]pub struct CreateCallAnalyticsCategoryInput { /* private fields */ }Implementations§
source§impl CreateCallAnalyticsCategoryInput
impl CreateCallAnalyticsCategoryInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateCallAnalyticsCategory, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateCallAnalyticsCategory, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateCallAnalyticsCategory>
Examples found in repository?
663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateCallAnalyticsCategory,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateCallAnalyticsCategoryError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateCallAnalyticsCategoryOutput,
aws_smithy_http::result::SdkError<crate::error::CreateCallAnalyticsCategoryError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateCallAnalyticsCategoryInput.
source§impl CreateCallAnalyticsCategoryInput
impl CreateCallAnalyticsCategoryInput
sourcepub fn category_name(&self) -> Option<&str>
pub fn category_name(&self) -> Option<&str>
A unique name, chosen by you, for your Call Analytics category. It's helpful to use a detailed naming system that will make sense to you in the future. For example, it's better to use sentiment-positive-last30seconds for a category over a generic name like test-category.
Category names are case sensitive.
sourcepub fn rules(&self) -> Option<&[Rule]>
pub fn rules(&self) -> Option<&[Rule]>
Rules define a Call Analytics category. When creating a new Call Analytics category, you must create between 1 and 20 rules for that category. For each rule, you specify a filter you want applied to the attributes of a call. For example, you can choose a sentiment filter that detects if a customer's sentiment was positive during the last 30 seconds of the call.
Trait Implementations§
source§impl Clone for CreateCallAnalyticsCategoryInput
impl Clone for CreateCallAnalyticsCategoryInput
source§fn clone(&self) -> CreateCallAnalyticsCategoryInput
fn clone(&self) -> CreateCallAnalyticsCategoryInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more