aws_sdk_connect/client/
create_predefined_attribute.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreatePredefinedAttribute`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`instance_id(impl Into<String>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::set_name):<br>required: **true**<br><p>The name of the predefined attribute.</p><br>
8    ///   - [`values(PredefinedAttributeValues)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::values) / [`set_values(Option<PredefinedAttributeValues>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::set_values):<br>required: **true**<br><p>The values of the predefined attribute.</p><br>
9    /// - On success, responds with [`CreatePredefinedAttributeOutput`](crate::operation::create_predefined_attribute::CreatePredefinedAttributeOutput)
10    /// - On failure, responds with [`SdkError<CreatePredefinedAttributeError>`](crate::operation::create_predefined_attribute::CreatePredefinedAttributeError)
11    pub fn create_predefined_attribute(&self) -> crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder {
12        crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::new(self.handle.clone())
13    }
14}