1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* CodegenDelegator.kt:255 */
|
2 3 | pub use crate::operation::start_snapshot::_start_snapshot_output::StartSnapshotOutputBuilder;
|
3 4 |
|
5 + | /* CodegenDelegator.kt:255 */
|
4 6 | pub use crate::operation::start_snapshot::_start_snapshot_input::StartSnapshotInputBuilder;
|
5 7 |
|
8 + | /* FluentBuilderGenerator.kt:408 */
|
6 9 | impl crate::operation::start_snapshot::builders::StartSnapshotInputBuilder {
|
7 10 | /// Sends a request with this input using the given client.
|
8 11 | pub async fn send_with(
|
9 12 | self,
|
10 13 | client: &crate::Client,
|
11 14 | ) -> ::std::result::Result<
|
12 15 | crate::operation::start_snapshot::StartSnapshotOutput,
|
13 16 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 17 | crate::operation::start_snapshot::StartSnapshotError,
|
15 18 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 19 | >,
|
17 20 | > {
|
18 21 | let mut fluent_builder = client.start_snapshot();
|
19 22 | fluent_builder.inner = self;
|
20 23 | fluent_builder.send().await
|
21 24 | }
|
22 25 | }
|
23 - | /// Fluent builder constructing a request to `StartSnapshot`.
|
26 + | /// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `StartSnapshot`.
|
24 27 | ///
|
25 - | /// <p>Creates a new Amazon EBS snapshot. The new snapshot enters the <code>pending</code> state after the request completes.</p>
|
28 + | /// /* FluentBuilderGenerator.kt:130 */<p>Creates a new Amazon EBS snapshot. The new snapshot enters the <code>pending</code> state after the request completes.</p>
|
26 29 | /// <p>After creating the snapshot, use <a href="https://docs.aws.amazon.com/ebs/latest/APIReference/API_PutSnapshotBlock.html"> PutSnapshotBlock</a> to write blocks of data to the snapshot.</p>
|
30 + | /* RustType.kt:516 */
|
27 31 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
32 + | /* FluentBuilderGenerator.kt:270 */
|
28 33 | pub struct StartSnapshotFluentBuilder {
|
29 34 | handle: ::std::sync::Arc<crate::client::Handle>,
|
30 35 | inner: crate::operation::start_snapshot::builders::StartSnapshotInputBuilder,
|
31 36 | config_override: ::std::option::Option<crate::config::Builder>,
|
32 37 | }
|
38 + | /* FluentBuilderGenerator.kt:381 */
|
33 39 | impl
|
34 40 | crate::client::customize::internal::CustomizableSend<
|
35 41 | crate::operation::start_snapshot::StartSnapshotOutput,
|
36 42 | crate::operation::start_snapshot::StartSnapshotError,
|
37 43 | > for StartSnapshotFluentBuilder
|
38 44 | {
|
39 45 | fn send(
|
40 46 | self,
|
41 47 | config_override: crate::config::Builder,
|
42 48 | ) -> crate::client::customize::internal::BoxFuture<
|
43 49 | crate::client::customize::internal::SendResult<
|
44 50 | crate::operation::start_snapshot::StartSnapshotOutput,
|
45 51 | crate::operation::start_snapshot::StartSnapshotError,
|
46 52 | >,
|
47 53 | > {
|
48 54 | ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
|
49 55 | }
|
50 56 | }
|
57 + | /* FluentBuilderGenerator.kt:282 */
|
51 58 | impl StartSnapshotFluentBuilder {
|
59 + | /* FluentBuilderGenerator.kt:288 */
|
52 60 | /// Creates a new `StartSnapshotFluentBuilder`.
|
53 61 | pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
|
54 62 | Self {
|
55 63 | handle,
|
56 64 | inner: ::std::default::Default::default(),
|
57 65 | config_override: ::std::option::Option::None,
|
58 66 | }
|
59 67 | }
|
68 + | /* FluentBuilderGenerator.kt:301 */
|
60 69 | /// Access the StartSnapshot as a reference.
|
61 70 | pub fn as_input(&self) -> &crate::operation::start_snapshot::builders::StartSnapshotInputBuilder {
|
62 71 | &self.inner
|
63 72 | }
|
73 + | /* FluentBuilderGenerator.kt:145 */
|
64 74 | /// Sends the request and returns the response.
|
65 75 | ///
|
66 76 | /// If an error occurs, an `SdkError` will be returned with additional details that
|
67 77 | /// can be matched against.
|
68 78 | ///
|
69 79 | /// By default, any retryable failures will be retried twice. Retry behavior
|
70 80 | /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
|
71 81 | /// set when configuring the client.
|
72 82 | pub async fn send(
|
73 83 | self,
|
74 84 | ) -> ::std::result::Result<
|
75 85 | crate::operation::start_snapshot::StartSnapshotOutput,
|
76 86 | ::aws_smithy_runtime_api::client::result::SdkError<
|
77 87 | crate::operation::start_snapshot::StartSnapshotError,
|
78 88 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
79 89 | >,
|
80 90 | > {
|
81 91 | let input = self
|
82 92 | .inner
|
83 93 | .build()
|
84 94 | .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
|
85 95 | let runtime_plugins = crate::operation::start_snapshot::StartSnapshot::operation_runtime_plugins(
|
86 96 | self.handle.runtime_plugins.clone(),
|
87 97 | &self.handle.conf,
|
88 98 | self.config_override,
|
89 99 | );
|
90 100 | crate::operation::start_snapshot::StartSnapshot::orchestrate(&runtime_plugins, input).await
|
91 101 | }
|
92 102 |
|
93 103 | /// Consumes this builder, creating a customizable operation that can be modified before being sent.
|
94 104 | pub fn customize(
|
95 105 | self,
|
96 106 | ) -> crate::client::customize::CustomizableOperation<
|
97 107 | crate::operation::start_snapshot::StartSnapshotOutput,
|
98 108 | crate::operation::start_snapshot::StartSnapshotError,
|
99 109 | Self,
|
100 110 | > {
|
101 111 | crate::client::customize::CustomizableOperation::new(self)
|
102 112 | }
|
113 + | /* FluentBuilderGenerator.kt:315 */
|
103 114 | pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
|
104 115 | self.set_config_override(::std::option::Option::Some(config_override.into()));
|
105 116 | self
|
106 117 | }
|
107 118 |
|
108 119 | pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
|
109 120 | self.config_override = config_override;
|
110 121 | self
|
111 122 | }
|
112 - | /// <p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
|
123 + | /// /* FluentBuilderGenerator.kt:498 */<p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
|
113 124 | /// <ul>
|
114 125 | /// <li>
|
115 126 | /// <p>No blocks are written to the snapshot.</p></li>
|
116 127 | /// <li>
|
117 128 | /// <p>The snapshot is not completed after writing the last block of data.</p></li>
|
118 129 | /// </ul>
|
119 130 | /// <p>If no value is specified, the timeout defaults to <code>60</code> minutes.</p>
|
131 + | /* FluentBuilderGenerator.kt:500 */
|
120 132 | pub fn timeout(mut self, input: i32) -> Self {
|
121 133 | self.inner = self.inner.timeout(input);
|
122 134 | self
|
123 135 | }
|
124 - | /// <p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
|
136 + | /// /* FluentBuilderGenerator.kt:498 */<p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
|
125 137 | /// <ul>
|
126 138 | /// <li>
|
127 139 | /// <p>No blocks are written to the snapshot.</p></li>
|
128 140 | /// <li>
|
129 141 | /// <p>The snapshot is not completed after writing the last block of data.</p></li>
|
130 142 | /// </ul>
|
131 143 | /// <p>If no value is specified, the timeout defaults to <code>60</code> minutes.</p>
|
144 + | /* FluentBuilderGenerator.kt:500 */
|
132 145 | pub fn set_timeout(mut self, input: ::std::option::Option<i32>) -> Self {
|
133 146 | self.inner = self.inner.set_timeout(input);
|
134 147 | self
|
135 148 | }
|
136 - | /// <p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
|
149 + | /// /* FluentBuilderGenerator.kt:518 */<p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
|
137 150 | /// <ul>
|
138 151 | /// <li>
|
139 152 | /// <p>No blocks are written to the snapshot.</p></li>
|
140 153 | /// <li>
|
141 154 | /// <p>The snapshot is not completed after writing the last block of data.</p></li>
|
142 155 | /// </ul>
|
143 156 | /// <p>If no value is specified, the timeout defaults to <code>60</code> minutes.</p>
|
157 + | /* FluentBuilderGenerator.kt:520 */
|
144 158 | pub fn get_timeout(&self) -> &::std::option::Option<i32> {
|
145 159 | self.inner.get_timeout()
|
146 160 | }
|
147 - | /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
|
161 + | /// /* FluentBuilderGenerator.kt:498 */<p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
|
148 162 | /// <p>If you do not specify a client token, one is automatically generated by the AWS SDK.</p>
|
149 163 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-direct-api-idempotency.html"> Idempotency for StartSnapshot API</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
164 + | /* FluentBuilderGenerator.kt:500 */
|
150 165 | pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
151 166 | self.inner = self.inner.client_token(input.into());
|
152 167 | self
|
153 168 | }
|
154 - | /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
|
169 + | /// /* FluentBuilderGenerator.kt:498 */<p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
|
155 170 | /// <p>If you do not specify a client token, one is automatically generated by the AWS SDK.</p>
|
156 171 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-direct-api-idempotency.html"> Idempotency for StartSnapshot API</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
172 + | /* FluentBuilderGenerator.kt:500 */
|
157 173 | pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
158 174 | self.inner = self.inner.set_client_token(input);
|
159 175 | self
|
160 176 | }
|
161 - | /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
|
177 + | /// /* FluentBuilderGenerator.kt:518 */<p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
|
162 178 | /// <p>If you do not specify a client token, one is automatically generated by the AWS SDK.</p>
|
163 179 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-direct-api-idempotency.html"> Idempotency for StartSnapshot API</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
180 + | /* FluentBuilderGenerator.kt:520 */
|
164 181 | pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
|
165 182 | self.inner.get_client_token()
|
166 183 | }
|
167 - | /// <p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
|
184 + | /// /* FluentBuilderGenerator.kt:498 */<p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
|
185 + | /* FluentBuilderGenerator.kt:500 */
|
168 186 | pub fn volume_size(mut self, input: i64) -> Self {
|
169 187 | self.inner = self.inner.volume_size(input);
|
170 188 | self
|
171 189 | }
|
172 - | /// <p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
|
190 + | /// /* FluentBuilderGenerator.kt:498 */<p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
|
191 + | /* FluentBuilderGenerator.kt:500 */
|
173 192 | pub fn set_volume_size(mut self, input: ::std::option::Option<i64>) -> Self {
|
174 193 | self.inner = self.inner.set_volume_size(input);
|
175 194 | self
|
176 195 | }
|
177 - | /// <p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
|
196 + | /// /* FluentBuilderGenerator.kt:518 */<p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
|
197 + | /* FluentBuilderGenerator.kt:520 */
|
178 198 | pub fn get_volume_size(&self) -> &::std::option::Option<i64> {
|
179 199 | self.inner.get_volume_size()
|
180 200 | }
|
181 - | ///
|
201 + | /// /* FluentBuilderGenerator.kt:436 */
|
182 202 | /// Appends an item to `Tags`.
|
183 203 | ///
|
184 204 | /// To override the contents of this collection use [`set_tags`](Self::set_tags).
|
185 205 | ///
|
186 - | /// <p>The tags to apply to the snapshot.</p>
|
206 + | /// /* FluentBuilderGenerator.kt:443 */<p>The tags to apply to the snapshot.</p>
|
207 + | /* FluentBuilderGenerator.kt:446 */
|
187 208 | pub fn tags(mut self, input: crate::types::Tag) -> Self {
|
188 209 | self.inner = self.inner.tags(input);
|
189 210 | self
|
190 211 | }
|
191 - | /// <p>The tags to apply to the snapshot.</p>
|
212 + | /// /* FluentBuilderGenerator.kt:498 */<p>The tags to apply to the snapshot.</p>
|
213 + | /* FluentBuilderGenerator.kt:500 */
|
192 214 | pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
|
193 215 | self.inner = self.inner.set_tags(input);
|
194 216 | self
|
195 217 | }
|
196 - | /// <p>The tags to apply to the snapshot.</p>
|
218 + | /// /* FluentBuilderGenerator.kt:518 */<p>The tags to apply to the snapshot.</p>
|
219 + | /* FluentBuilderGenerator.kt:520 */
|
197 220 | pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
|
198 221 | self.inner.get_tags()
|
199 222 | }
|
200 - | /// <p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
|
223 + | /// /* FluentBuilderGenerator.kt:498 */<p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
|
201 224 | /// <p>If you specify a value for <b>ParentSnapshotId</b>, omit this parameter.</p>
|
202 225 | /// <p>If you specify <code>true</code>, the snapshot is encrypted using the CMK specified using the <b>KmsKeyArn</b> parameter. If no value is specified for <b>KmsKeyArn</b>, the default CMK for your account is used. If no default CMK has been specified for your account, the AWS managed CMK is used. To set a default CMK for your account, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyEbsDefaultKmsKeyId.html"> ModifyEbsDefaultKmsKeyId</a>.</p>
|
203 226 | /// <p>If your account is enabled for encryption by default, you cannot set this parameter to <code>false</code>. In this case, you can omit this parameter.</p>
|
204 227 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-encryption"> Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
228 + | /* FluentBuilderGenerator.kt:500 */
|
205 229 | pub fn encrypted(mut self, input: bool) -> Self {
|
206 230 | self.inner = self.inner.encrypted(input);
|
207 231 | self
|
208 232 | }
|
209 - | /// <p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
|
233 + | /// /* FluentBuilderGenerator.kt:498 */<p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
|
210 234 | /// <p>If you specify a value for <b>ParentSnapshotId</b>, omit this parameter.</p>
|
211 235 | /// <p>If you specify <code>true</code>, the snapshot is encrypted using the CMK specified using the <b>KmsKeyArn</b> parameter. If no value is specified for <b>KmsKeyArn</b>, the default CMK for your account is used. If no default CMK has been specified for your account, the AWS managed CMK is used. To set a default CMK for your account, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyEbsDefaultKmsKeyId.html"> ModifyEbsDefaultKmsKeyId</a>.</p>
|
212 236 | /// <p>If your account is enabled for encryption by default, you cannot set this parameter to <code>false</code>. In this case, you can omit this parameter.</p>
|
213 237 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-encryption"> Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
238 + | /* FluentBuilderGenerator.kt:500 */
|
214 239 | pub fn set_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
|
215 240 | self.inner = self.inner.set_encrypted(input);
|
216 241 | self
|
217 242 | }
|
218 - | /// <p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
|
243 + | /// /* FluentBuilderGenerator.kt:518 */<p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
|
219 244 | /// <p>If you specify a value for <b>ParentSnapshotId</b>, omit this parameter.</p>
|
220 245 | /// <p>If you specify <code>true</code>, the snapshot is encrypted using the CMK specified using the <b>KmsKeyArn</b> parameter. If no value is specified for <b>KmsKeyArn</b>, the default CMK for your account is used. If no default CMK has been specified for your account, the AWS managed CMK is used. To set a default CMK for your account, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyEbsDefaultKmsKeyId.html"> ModifyEbsDefaultKmsKeyId</a>.</p>
|
221 246 | /// <p>If your account is enabled for encryption by default, you cannot set this parameter to <code>false</code>. In this case, you can omit this parameter.</p>
|
222 247 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-encryption"> Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
248 + | /* FluentBuilderGenerator.kt:520 */
|
223 249 | pub fn get_encrypted(&self) -> &::std::option::Option<bool> {
|
224 250 | self.inner.get_encrypted()
|
225 251 | }
|
226 - | /// <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
|
252 + | /// /* FluentBuilderGenerator.kt:498 */<p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
|
227 253 | /// <p>If you specify a <b>ParentSnapshotId</b>, omit this parameter; the snapshot will be encrypted using the same CMK that was used to encrypt the parent snapshot.</p>
|
228 254 | /// <p>If <b>Encrypted</b> is set to <code>true</code>, you must specify a CMK ARN.</p>
|
255 + | /* FluentBuilderGenerator.kt:500 */
|
229 256 | pub fn kms_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
230 257 | self.inner = self.inner.kms_key_arn(input.into());
|
231 258 | self
|
232 259 | }
|
233 - | /// <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
|
260 + | /// /* FluentBuilderGenerator.kt:498 */<p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
|
234 261 | /// <p>If you specify a <b>ParentSnapshotId</b>, omit this parameter; the snapshot will be encrypted using the same CMK that was used to encrypt the parent snapshot.</p>
|
235 262 | /// <p>If <b>Encrypted</b> is set to <code>true</code>, you must specify a CMK ARN.</p>
|
263 + | /* FluentBuilderGenerator.kt:500 */
|
236 264 | pub fn set_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
237 265 | self.inner = self.inner.set_kms_key_arn(input);
|
238 266 | self
|
239 267 | }
|
240 - | /// <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
|
268 + | /// /* FluentBuilderGenerator.kt:518 */<p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
|
241 269 | /// <p>If you specify a <b>ParentSnapshotId</b>, omit this parameter; the snapshot will be encrypted using the same CMK that was used to encrypt the parent snapshot.</p>
|
242 270 | /// <p>If <b>Encrypted</b> is set to <code>true</code>, you must specify a CMK ARN.</p>
|
271 + | /* FluentBuilderGenerator.kt:520 */
|
243 272 | pub fn get_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
|
244 273 | self.inner.get_kms_key_arn()
|
245 274 | }
|
246 - | /// <p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
|
275 + | /// /* FluentBuilderGenerator.kt:498 */<p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
|
247 276 | /// <p>If your account is enabled for encryption by default, you cannot use an unencrypted snapshot as a parent snapshot. You must first create an encrypted copy of the parent snapshot using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopySnapshot.html">CopySnapshot</a>.</p>
|
277 + | /* FluentBuilderGenerator.kt:500 */
|
248 278 | pub fn parent_snapshot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
249 279 | self.inner = self.inner.parent_snapshot_id(input.into());
|
250 280 | self
|
251 281 | }
|
252 - | /// <p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
|
282 + | /// /* FluentBuilderGenerator.kt:498 */<p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
|
253 283 | /// <p>If your account is enabled for encryption by default, you cannot use an unencrypted snapshot as a parent snapshot. You must first create an encrypted copy of the parent snapshot using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopySnapshot.html">CopySnapshot</a>.</p>
|
284 + | /* FluentBuilderGenerator.kt:500 */
|
254 285 | pub fn set_parent_snapshot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
255 286 | self.inner = self.inner.set_parent_snapshot_id(input);
|
256 287 | self
|
257 288 | }
|
258 - | /// <p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
|
289 + | /// /* FluentBuilderGenerator.kt:518 */<p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
|
259 290 | /// <p>If your account is enabled for encryption by default, you cannot use an unencrypted snapshot as a parent snapshot. You must first create an encrypted copy of the parent snapshot using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopySnapshot.html">CopySnapshot</a>.</p>
|
291 + | /* FluentBuilderGenerator.kt:520 */
|
260 292 | pub fn get_parent_snapshot_id(&self) -> &::std::option::Option<::std::string::String> {
|
261 293 | self.inner.get_parent_snapshot_id()
|
262 294 | }
|
263 - | /// <p>A description for the snapshot.</p>
|
295 + | /// /* FluentBuilderGenerator.kt:498 */<p>A description for the snapshot.</p>
|
296 + | /* FluentBuilderGenerator.kt:500 */
|
264 297 | pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
265 298 | self.inner = self.inner.description(input.into());
|
266 299 | self
|
267 300 | }
|
268 - | /// <p>A description for the snapshot.</p>
|
301 + | /// /* FluentBuilderGenerator.kt:498 */<p>A description for the snapshot.</p>
|
302 + | /* FluentBuilderGenerator.kt:500 */
|
269 303 | pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
270 304 | self.inner = self.inner.set_description(input);
|
271 305 | self
|
272 306 | }
|
273 - | /// <p>A description for the snapshot.</p>
|
307 + | /// /* FluentBuilderGenerator.kt:518 */<p>A description for the snapshot.</p>
|
308 + | /* FluentBuilderGenerator.kt:520 */
|
274 309 | pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
|
275 310 | self.inner.get_description()
|
276 311 | }
|
312 + | /* FluentBuilderGenerator.kt:282 */
|
277 313 | }
|