pub struct Builder { /* private fields */ }
Expand description

A builder for CreateDataSetInput.

Implementations§

The Amazon Web Services account ID.

Examples found in repository?
src/client.rs (line 2998)
2997
2998
2999
3000
        pub fn aws_account_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.aws_account_id(input.into());
            self
        }

The Amazon Web Services account ID.

Examples found in repository?
src/client.rs (line 3006)
3002
3003
3004
3005
3006
3007
3008
        pub fn set_aws_account_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_aws_account_id(input);
            self
        }

An ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

Examples found in repository?
src/client.rs (line 3011)
3010
3011
3012
3013
        pub fn data_set_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.data_set_id(input.into());
            self
        }

An ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

Examples found in repository?
src/client.rs (line 3016)
3015
3016
3017
3018
        pub fn set_data_set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_data_set_id(input);
            self
        }

The display name for the dataset.

Examples found in repository?
src/client.rs (line 3021)
3020
3021
3022
3023
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.name(input.into());
            self
        }

The display name for the dataset.

Examples found in repository?
src/client.rs (line 3026)
3025
3026
3027
3028
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_name(input);
            self
        }

Adds a key-value pair to physical_table_map.

To override the contents of this collection use set_physical_table_map.

Declares the physical tables that are available in the underlying data sources.

Examples found in repository?
src/client.rs (line 3039)
3034
3035
3036
3037
3038
3039
3040
3041
        pub fn physical_table_map(
            mut self,
            k: impl Into<std::string::String>,
            v: crate::model::PhysicalTable,
        ) -> Self {
            self.inner = self.inner.physical_table_map(k.into(), v);
            self
        }

Declares the physical tables that are available in the underlying data sources.

Examples found in repository?
src/client.rs (line 3049)
3043
3044
3045
3046
3047
3048
3049
3050
3051
        pub fn set_physical_table_map(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, crate::model::PhysicalTable>,
            >,
        ) -> Self {
            self.inner = self.inner.set_physical_table_map(input);
            self
        }

Adds a key-value pair to logical_table_map.

To override the contents of this collection use set_logical_table_map.

Configures the combination and transformation of the data from the physical tables.

Examples found in repository?
src/client.rs (line 3062)
3057
3058
3059
3060
3061
3062
3063
3064
        pub fn logical_table_map(
            mut self,
            k: impl Into<std::string::String>,
            v: crate::model::LogicalTable,
        ) -> Self {
            self.inner = self.inner.logical_table_map(k.into(), v);
            self
        }

Configures the combination and transformation of the data from the physical tables.

Examples found in repository?
src/client.rs (line 3072)
3066
3067
3068
3069
3070
3071
3072
3073
3074
        pub fn set_logical_table_map(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, crate::model::LogicalTable>,
            >,
        ) -> Self {
            self.inner = self.inner.set_logical_table_map(input);
            self
        }

Indicates whether you want to import the data into SPICE.

Examples found in repository?
src/client.rs (line 3077)
3076
3077
3078
3079
        pub fn import_mode(mut self, input: crate::model::DataSetImportMode) -> Self {
            self.inner = self.inner.import_mode(input);
            self
        }

Indicates whether you want to import the data into SPICE.

Examples found in repository?
src/client.rs (line 3085)
3081
3082
3083
3084
3085
3086
3087
        pub fn set_import_mode(
            mut self,
            input: std::option::Option<crate::model::DataSetImportMode>,
        ) -> Self {
            self.inner = self.inner.set_import_mode(input);
            self
        }

Appends an item to column_groups.

To override the contents of this collection use set_column_groups.

Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial hierarchy is supported.

Examples found in repository?
src/client.rs (line 3094)
3093
3094
3095
3096
        pub fn column_groups(mut self, input: crate::model::ColumnGroup) -> Self {
            self.inner = self.inner.column_groups(input);
            self
        }

Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial hierarchy is supported.

Examples found in repository?
src/client.rs (line 3102)
3098
3099
3100
3101
3102
3103
3104
        pub fn set_column_groups(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::ColumnGroup>>,
        ) -> Self {
            self.inner = self.inner.set_column_groups(input);
            self
        }

Adds a key-value pair to field_folders.

To override the contents of this collection use set_field_folders.

The folder that contains fields and nested subfolders for your dataset.

Examples found in repository?
src/client.rs (line 3115)
3110
3111
3112
3113
3114
3115
3116
3117
        pub fn field_folders(
            mut self,
            k: impl Into<std::string::String>,
            v: crate::model::FieldFolder,
        ) -> Self {
            self.inner = self.inner.field_folders(k.into(), v);
            self
        }

The folder that contains fields and nested subfolders for your dataset.

Examples found in repository?
src/client.rs (line 3125)
3119
3120
3121
3122
3123
3124
3125
3126
3127
        pub fn set_field_folders(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, crate::model::FieldFolder>,
            >,
        ) -> Self {
            self.inner = self.inner.set_field_folders(input);
            self
        }

Appends an item to permissions.

To override the contents of this collection use set_permissions.

A list of resource permissions on the dataset.

Examples found in repository?
src/client.rs (line 3134)
3133
3134
3135
3136
        pub fn permissions(mut self, input: crate::model::ResourcePermission) -> Self {
            self.inner = self.inner.permissions(input);
            self
        }

A list of resource permissions on the dataset.

Examples found in repository?
src/client.rs (line 3142)
3138
3139
3140
3141
3142
3143
3144
        pub fn set_permissions(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::ResourcePermission>>,
        ) -> Self {
            self.inner = self.inner.set_permissions(input);
            self
        }

The row-level security configuration for the data that you want to create.

Examples found in repository?
src/client.rs (line 3150)
3146
3147
3148
3149
3150
3151
3152
        pub fn row_level_permission_data_set(
            mut self,
            input: crate::model::RowLevelPermissionDataSet,
        ) -> Self {
            self.inner = self.inner.row_level_permission_data_set(input);
            self
        }

The row-level security configuration for the data that you want to create.

Examples found in repository?
src/client.rs (line 3158)
3154
3155
3156
3157
3158
3159
3160
        pub fn set_row_level_permission_data_set(
            mut self,
            input: std::option::Option<crate::model::RowLevelPermissionDataSet>,
        ) -> Self {
            self.inner = self.inner.set_row_level_permission_data_set(input);
            self
        }

The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported for anonymous embedding only.

Examples found in repository?
src/client.rs (line 3166)
3162
3163
3164
3165
3166
3167
3168
        pub fn row_level_permission_tag_configuration(
            mut self,
            input: crate::model::RowLevelPermissionTagConfiguration,
        ) -> Self {
            self.inner = self.inner.row_level_permission_tag_configuration(input);
            self
        }

The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported for anonymous embedding only.

Examples found in repository?
src/client.rs (line 3174)
3170
3171
3172
3173
3174
3175
3176
        pub fn set_row_level_permission_tag_configuration(
            mut self,
            input: std::option::Option<crate::model::RowLevelPermissionTagConfiguration>,
        ) -> Self {
            self.inner = self.inner.set_row_level_permission_tag_configuration(input);
            self
        }

Appends an item to column_level_permission_rules.

To override the contents of this collection use set_column_level_permission_rules.

A set of one or more definitions of a ColumnLevelPermissionRule .

Examples found in repository?
src/client.rs (line 3186)
3182
3183
3184
3185
3186
3187
3188
        pub fn column_level_permission_rules(
            mut self,
            input: crate::model::ColumnLevelPermissionRule,
        ) -> Self {
            self.inner = self.inner.column_level_permission_rules(input);
            self
        }

A set of one or more definitions of a ColumnLevelPermissionRule .

Examples found in repository?
src/client.rs (line 3194)
3190
3191
3192
3193
3194
3195
3196
        pub fn set_column_level_permission_rules(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::ColumnLevelPermissionRule>>,
        ) -> Self {
            self.inner = self.inner.set_column_level_permission_rules(input);
            self
        }

Appends an item to tags.

To override the contents of this collection use set_tags.

Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset.

Examples found in repository?
src/client.rs (line 3203)
3202
3203
3204
3205
        pub fn tags(mut self, input: crate::model::Tag) -> Self {
            self.inner = self.inner.tags(input);
            self
        }

Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset.

Examples found in repository?
src/client.rs (line 3211)
3207
3208
3209
3210
3211
3212
3213
        pub fn set_tags(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
        ) -> Self {
            self.inner = self.inner.set_tags(input);
            self
        }

The usage configuration to apply to child datasets that reference this dataset as a source.

Examples found in repository?
src/client.rs (line 3219)
3215
3216
3217
3218
3219
3220
3221
        pub fn data_set_usage_configuration(
            mut self,
            input: crate::model::DataSetUsageConfiguration,
        ) -> Self {
            self.inner = self.inner.data_set_usage_configuration(input);
            self
        }

The usage configuration to apply to child datasets that reference this dataset as a source.

Examples found in repository?
src/client.rs (line 3227)
3223
3224
3225
3226
3227
3228
3229
        pub fn set_data_set_usage_configuration(
            mut self,
            input: std::option::Option<crate::model::DataSetUsageConfiguration>,
        ) -> Self {
            self.inner = self.inner.set_data_set_usage_configuration(input);
            self
        }

Consumes the builder and constructs a CreateDataSetInput.

Examples found in repository?
src/client.rs (line 2965)
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateDataSet,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateDataSetError>,
        > {
            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::CreateDataSetOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateDataSetError>,
        > {
            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
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more