aws_sdk_ec2/operation/create_fleet/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_fleet::_create_fleet_output::CreateFleetOutputBuilder;
3
4pub use crate::operation::create_fleet::_create_fleet_input::CreateFleetInputBuilder;
5
6impl crate::operation::create_fleet::builders::CreateFleetInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_fleet::CreateFleetOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_fleet::CreateFleetError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_fleet();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `CreateFleet`.
24///
25/// <p>Creates an EC2 Fleet that contains the configuration information for On-Demand Instances and Spot Instances. Instances are launched immediately if there is available capacity.</p>
26/// <p>A single EC2 Fleet can include multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.</p>
27/// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html">EC2 Fleet</a> in the <i>Amazon EC2 User Guide</i>.</p>
28#[derive(::std::clone::Clone, ::std::fmt::Debug)]
29pub struct CreateFleetFluentBuilder {
30 handle: ::std::sync::Arc<crate::client::Handle>,
31 inner: crate::operation::create_fleet::builders::CreateFleetInputBuilder,
32 config_override: ::std::option::Option<crate::config::Builder>,
33}
34impl
35 crate::client::customize::internal::CustomizableSend<
36 crate::operation::create_fleet::CreateFleetOutput,
37 crate::operation::create_fleet::CreateFleetError,
38 > for CreateFleetFluentBuilder
39{
40 fn send(
41 self,
42 config_override: crate::config::Builder,
43 ) -> crate::client::customize::internal::BoxFuture<
44 crate::client::customize::internal::SendResult<
45 crate::operation::create_fleet::CreateFleetOutput,
46 crate::operation::create_fleet::CreateFleetError,
47 >,
48 > {
49 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
50 }
51}
52impl CreateFleetFluentBuilder {
53 /// Creates a new `CreateFleetFluentBuilder`.
54 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
55 Self {
56 handle,
57 inner: ::std::default::Default::default(),
58 config_override: ::std::option::Option::None,
59 }
60 }
61 /// Access the CreateFleet as a reference.
62 pub fn as_input(&self) -> &crate::operation::create_fleet::builders::CreateFleetInputBuilder {
63 &self.inner
64 }
65 /// Sends the request and returns the response.
66 ///
67 /// If an error occurs, an `SdkError` will be returned with additional details that
68 /// can be matched against.
69 ///
70 /// By default, any retryable failures will be retried twice. Retry behavior
71 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
72 /// set when configuring the client.
73 pub async fn send(
74 self,
75 ) -> ::std::result::Result<
76 crate::operation::create_fleet::CreateFleetOutput,
77 ::aws_smithy_runtime_api::client::result::SdkError<
78 crate::operation::create_fleet::CreateFleetError,
79 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
80 >,
81 > {
82 let input = self
83 .inner
84 .build()
85 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
86 let runtime_plugins = crate::operation::create_fleet::CreateFleet::operation_runtime_plugins(
87 self.handle.runtime_plugins.clone(),
88 &self.handle.conf,
89 self.config_override,
90 );
91 crate::operation::create_fleet::CreateFleet::orchestrate(&runtime_plugins, input).await
92 }
93
94 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
95 pub fn customize(
96 self,
97 ) -> crate::client::customize::CustomizableOperation<
98 crate::operation::create_fleet::CreateFleetOutput,
99 crate::operation::create_fleet::CreateFleetError,
100 Self,
101 > {
102 crate::client::customize::CustomizableOperation::new(self)
103 }
104 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
105 self.set_config_override(::std::option::Option::Some(config_override.into()));
106 self
107 }
108
109 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
110 self.config_override = config_override;
111 self
112 }
113 /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
114 pub fn dry_run(mut self, input: bool) -> Self {
115 self.inner = self.inner.dry_run(input);
116 self
117 }
118 /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
119 pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
120 self.inner = self.inner.set_dry_run(input);
121 self
122 }
123 /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
124 pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
125 self.inner.get_dry_run()
126 }
127 /// <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p>
128 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
129 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130 self.inner = self.inner.client_token(input.into());
131 self
132 }
133 /// <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p>
134 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
135 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
136 self.inner = self.inner.set_client_token(input);
137 self
138 }
139 /// <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p>
140 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
141 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
142 self.inner.get_client_token()
143 }
144 /// <p>Describes the configuration of Spot Instances in an EC2 Fleet.</p>
145 pub fn spot_options(mut self, input: crate::types::SpotOptionsRequest) -> Self {
146 self.inner = self.inner.spot_options(input);
147 self
148 }
149 /// <p>Describes the configuration of Spot Instances in an EC2 Fleet.</p>
150 pub fn set_spot_options(mut self, input: ::std::option::Option<crate::types::SpotOptionsRequest>) -> Self {
151 self.inner = self.inner.set_spot_options(input);
152 self
153 }
154 /// <p>Describes the configuration of Spot Instances in an EC2 Fleet.</p>
155 pub fn get_spot_options(&self) -> &::std::option::Option<crate::types::SpotOptionsRequest> {
156 self.inner.get_spot_options()
157 }
158 /// <p>Describes the configuration of On-Demand Instances in an EC2 Fleet.</p>
159 pub fn on_demand_options(mut self, input: crate::types::OnDemandOptionsRequest) -> Self {
160 self.inner = self.inner.on_demand_options(input);
161 self
162 }
163 /// <p>Describes the configuration of On-Demand Instances in an EC2 Fleet.</p>
164 pub fn set_on_demand_options(mut self, input: ::std::option::Option<crate::types::OnDemandOptionsRequest>) -> Self {
165 self.inner = self.inner.set_on_demand_options(input);
166 self
167 }
168 /// <p>Describes the configuration of On-Demand Instances in an EC2 Fleet.</p>
169 pub fn get_on_demand_options(&self) -> &::std::option::Option<crate::types::OnDemandOptionsRequest> {
170 self.inner.get_on_demand_options()
171 }
172 /// <p>Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.</p>
173 /// <p>Supported only for fleets of type <code>maintain</code>.</p>
174 pub fn excess_capacity_termination_policy(mut self, input: crate::types::FleetExcessCapacityTerminationPolicy) -> Self {
175 self.inner = self.inner.excess_capacity_termination_policy(input);
176 self
177 }
178 /// <p>Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.</p>
179 /// <p>Supported only for fleets of type <code>maintain</code>.</p>
180 pub fn set_excess_capacity_termination_policy(
181 mut self,
182 input: ::std::option::Option<crate::types::FleetExcessCapacityTerminationPolicy>,
183 ) -> Self {
184 self.inner = self.inner.set_excess_capacity_termination_policy(input);
185 self
186 }
187 /// <p>Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.</p>
188 /// <p>Supported only for fleets of type <code>maintain</code>.</p>
189 pub fn get_excess_capacity_termination_policy(&self) -> &::std::option::Option<crate::types::FleetExcessCapacityTerminationPolicy> {
190 self.inner.get_excess_capacity_termination_policy()
191 }
192 ///
193 /// Appends an item to `LaunchTemplateConfigs`.
194 ///
195 /// To override the contents of this collection use [`set_launch_template_configs`](Self::set_launch_template_configs).
196 ///
197 /// <p>The configuration for the EC2 Fleet.</p>
198 pub fn launch_template_configs(mut self, input: crate::types::FleetLaunchTemplateConfigRequest) -> Self {
199 self.inner = self.inner.launch_template_configs(input);
200 self
201 }
202 /// <p>The configuration for the EC2 Fleet.</p>
203 pub fn set_launch_template_configs(
204 mut self,
205 input: ::std::option::Option<::std::vec::Vec<crate::types::FleetLaunchTemplateConfigRequest>>,
206 ) -> Self {
207 self.inner = self.inner.set_launch_template_configs(input);
208 self
209 }
210 /// <p>The configuration for the EC2 Fleet.</p>
211 pub fn get_launch_template_configs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FleetLaunchTemplateConfigRequest>> {
212 self.inner.get_launch_template_configs()
213 }
214 /// <p>The number of units to request.</p>
215 pub fn target_capacity_specification(mut self, input: crate::types::TargetCapacitySpecificationRequest) -> Self {
216 self.inner = self.inner.target_capacity_specification(input);
217 self
218 }
219 /// <p>The number of units to request.</p>
220 pub fn set_target_capacity_specification(mut self, input: ::std::option::Option<crate::types::TargetCapacitySpecificationRequest>) -> Self {
221 self.inner = self.inner.set_target_capacity_specification(input);
222 self
223 }
224 /// <p>The number of units to request.</p>
225 pub fn get_target_capacity_specification(&self) -> &::std::option::Option<crate::types::TargetCapacitySpecificationRequest> {
226 self.inner.get_target_capacity_specification()
227 }
228 /// <p>Indicates whether running instances should be terminated when the EC2 Fleet expires.</p>
229 pub fn terminate_instances_with_expiration(mut self, input: bool) -> Self {
230 self.inner = self.inner.terminate_instances_with_expiration(input);
231 self
232 }
233 /// <p>Indicates whether running instances should be terminated when the EC2 Fleet expires.</p>
234 pub fn set_terminate_instances_with_expiration(mut self, input: ::std::option::Option<bool>) -> Self {
235 self.inner = self.inner.set_terminate_instances_with_expiration(input);
236 self
237 }
238 /// <p>Indicates whether running instances should be terminated when the EC2 Fleet expires.</p>
239 pub fn get_terminate_instances_with_expiration(&self) -> &::std::option::Option<bool> {
240 self.inner.get_terminate_instances_with_expiration()
241 }
242 /// <p>The fleet type. The default value is <code>maintain</code>.</p>
243 /// <ul>
244 /// <li>
245 /// <p><code>maintain</code> - The EC2 Fleet places an asynchronous request for your desired capacity, and continues to maintain your desired Spot capacity by replenishing interrupted Spot Instances.</p></li>
246 /// <li>
247 /// <p><code>request</code> - The EC2 Fleet places an asynchronous one-time request for your desired capacity, but does submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not maintain Spot capacity if Spot Instances are interrupted.</p></li>
248 /// <li>
249 /// <p><code>instant</code> - The EC2 Fleet places a synchronous one-time request for your desired capacity, and returns errors for any instances that could not be launched.</p></li>
250 /// </ul>
251 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-request-type.html">EC2 Fleet request types</a> in the <i>Amazon EC2 User Guide</i>.</p>
252 pub fn r#type(mut self, input: crate::types::FleetType) -> Self {
253 self.inner = self.inner.r#type(input);
254 self
255 }
256 /// <p>The fleet type. The default value is <code>maintain</code>.</p>
257 /// <ul>
258 /// <li>
259 /// <p><code>maintain</code> - The EC2 Fleet places an asynchronous request for your desired capacity, and continues to maintain your desired Spot capacity by replenishing interrupted Spot Instances.</p></li>
260 /// <li>
261 /// <p><code>request</code> - The EC2 Fleet places an asynchronous one-time request for your desired capacity, but does submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not maintain Spot capacity if Spot Instances are interrupted.</p></li>
262 /// <li>
263 /// <p><code>instant</code> - The EC2 Fleet places a synchronous one-time request for your desired capacity, and returns errors for any instances that could not be launched.</p></li>
264 /// </ul>
265 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-request-type.html">EC2 Fleet request types</a> in the <i>Amazon EC2 User Guide</i>.</p>
266 pub fn set_type(mut self, input: ::std::option::Option<crate::types::FleetType>) -> Self {
267 self.inner = self.inner.set_type(input);
268 self
269 }
270 /// <p>The fleet type. The default value is <code>maintain</code>.</p>
271 /// <ul>
272 /// <li>
273 /// <p><code>maintain</code> - The EC2 Fleet places an asynchronous request for your desired capacity, and continues to maintain your desired Spot capacity by replenishing interrupted Spot Instances.</p></li>
274 /// <li>
275 /// <p><code>request</code> - The EC2 Fleet places an asynchronous one-time request for your desired capacity, but does submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not maintain Spot capacity if Spot Instances are interrupted.</p></li>
276 /// <li>
277 /// <p><code>instant</code> - The EC2 Fleet places a synchronous one-time request for your desired capacity, and returns errors for any instances that could not be launched.</p></li>
278 /// </ul>
279 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-request-type.html">EC2 Fleet request types</a> in the <i>Amazon EC2 User Guide</i>.</p>
280 pub fn get_type(&self) -> &::std::option::Option<crate::types::FleetType> {
281 self.inner.get_type()
282 }
283 /// <p>The start date and time of the request, in UTC format (for example, <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z). The default is to start fulfilling the request immediately.</p>
284 pub fn valid_from(mut self, input: ::aws_smithy_types::DateTime) -> Self {
285 self.inner = self.inner.valid_from(input);
286 self
287 }
288 /// <p>The start date and time of the request, in UTC format (for example, <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z). The default is to start fulfilling the request immediately.</p>
289 pub fn set_valid_from(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
290 self.inner = self.inner.set_valid_from(input);
291 self
292 }
293 /// <p>The start date and time of the request, in UTC format (for example, <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z). The default is to start fulfilling the request immediately.</p>
294 pub fn get_valid_from(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
295 self.inner.get_valid_from()
296 }
297 /// <p>The end date and time of the request, in UTC format (for example, <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it.</p>
298 pub fn valid_until(mut self, input: ::aws_smithy_types::DateTime) -> Self {
299 self.inner = self.inner.valid_until(input);
300 self
301 }
302 /// <p>The end date and time of the request, in UTC format (for example, <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it.</p>
303 pub fn set_valid_until(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
304 self.inner = self.inner.set_valid_until(input);
305 self
306 }
307 /// <p>The end date and time of the request, in UTC format (for example, <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it.</p>
308 pub fn get_valid_until(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
309 self.inner.get_valid_until()
310 }
311 /// <p>Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type <code>maintain</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#ec2-fleet-health-checks">EC2 Fleet health checks</a> in the <i>Amazon EC2 User Guide</i>.</p>
312 pub fn replace_unhealthy_instances(mut self, input: bool) -> Self {
313 self.inner = self.inner.replace_unhealthy_instances(input);
314 self
315 }
316 /// <p>Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type <code>maintain</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#ec2-fleet-health-checks">EC2 Fleet health checks</a> in the <i>Amazon EC2 User Guide</i>.</p>
317 pub fn set_replace_unhealthy_instances(mut self, input: ::std::option::Option<bool>) -> Self {
318 self.inner = self.inner.set_replace_unhealthy_instances(input);
319 self
320 }
321 /// <p>Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type <code>maintain</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#ec2-fleet-health-checks">EC2 Fleet health checks</a> in the <i>Amazon EC2 User Guide</i>.</p>
322 pub fn get_replace_unhealthy_instances(&self) -> &::std::option::Option<bool> {
323 self.inner.get_replace_unhealthy_instances()
324 }
325 ///
326 /// Appends an item to `TagSpecifications`.
327 ///
328 /// To override the contents of this collection use [`set_tag_specifications`](Self::set_tag_specifications).
329 ///
330 /// <p>The key-value pair for tagging the EC2 Fleet request on creation. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources">Tag your resources</a>.</p>
331 /// <p>If the fleet type is <code>instant</code>, specify a resource type of <code>fleet</code> to tag the fleet or <code>instance</code> to tag the instances at launch.</p>
332 /// <p>If the fleet type is <code>maintain</code> or <code>request</code>, specify a resource type of <code>fleet</code> to tag the fleet. You cannot specify a resource type of <code>instance</code>. To tag instances at launch, specify the tags in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template">launch template</a>.</p>
333 pub fn tag_specifications(mut self, input: crate::types::TagSpecification) -> Self {
334 self.inner = self.inner.tag_specifications(input);
335 self
336 }
337 /// <p>The key-value pair for tagging the EC2 Fleet request on creation. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources">Tag your resources</a>.</p>
338 /// <p>If the fleet type is <code>instant</code>, specify a resource type of <code>fleet</code> to tag the fleet or <code>instance</code> to tag the instances at launch.</p>
339 /// <p>If the fleet type is <code>maintain</code> or <code>request</code>, specify a resource type of <code>fleet</code> to tag the fleet. You cannot specify a resource type of <code>instance</code>. To tag instances at launch, specify the tags in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template">launch template</a>.</p>
340 pub fn set_tag_specifications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>>) -> Self {
341 self.inner = self.inner.set_tag_specifications(input);
342 self
343 }
344 /// <p>The key-value pair for tagging the EC2 Fleet request on creation. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources">Tag your resources</a>.</p>
345 /// <p>If the fleet type is <code>instant</code>, specify a resource type of <code>fleet</code> to tag the fleet or <code>instance</code> to tag the instances at launch.</p>
346 /// <p>If the fleet type is <code>maintain</code> or <code>request</code>, specify a resource type of <code>fleet</code> to tag the fleet. You cannot specify a resource type of <code>instance</code>. To tag instances at launch, specify the tags in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template">launch template</a>.</p>
347 pub fn get_tag_specifications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>> {
348 self.inner.get_tag_specifications()
349 }
350 /// <p>Reserved.</p>
351 pub fn context(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
352 self.inner = self.inner.context(input.into());
353 self
354 }
355 /// <p>Reserved.</p>
356 pub fn set_context(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
357 self.inner = self.inner.set_context(input);
358 self
359 }
360 /// <p>Reserved.</p>
361 pub fn get_context(&self) -> &::std::option::Option<::std::string::String> {
362 self.inner.get_context()
363 }
364}