aws_sdk_backup/operation/list_backup_jobs/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::list_backup_jobs::_list_backup_jobs_output::ListBackupJobsOutputBuilder;
3
4pub use crate::operation::list_backup_jobs::_list_backup_jobs_input::ListBackupJobsInputBuilder;
5
6impl crate::operation::list_backup_jobs::builders::ListBackupJobsInputBuilder {
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::list_backup_jobs::ListBackupJobsOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::list_backup_jobs::ListBackupJobsError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.list_backup_jobs();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `ListBackupJobs`.
24///
25/// <p>Returns a list of existing backup jobs for an authenticated account for the last 30 days. For a longer period of time, consider using these <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/monitoring.html">monitoring tools</a>.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct ListBackupJobsFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::list_backup_jobs::builders::ListBackupJobsInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::list_backup_jobs::ListBackupJobsOutput,
35 crate::operation::list_backup_jobs::ListBackupJobsError,
36 > for ListBackupJobsFluentBuilder
37{
38 fn send(
39 self,
40 config_override: crate::config::Builder,
41 ) -> crate::client::customize::internal::BoxFuture<
42 crate::client::customize::internal::SendResult<
43 crate::operation::list_backup_jobs::ListBackupJobsOutput,
44 crate::operation::list_backup_jobs::ListBackupJobsError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl ListBackupJobsFluentBuilder {
51 /// Creates a new `ListBackupJobsFluentBuilder`.
52 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53 Self {
54 handle,
55 inner: ::std::default::Default::default(),
56 config_override: ::std::option::Option::None,
57 }
58 }
59 /// Access the ListBackupJobs as a reference.
60 pub fn as_input(&self) -> &crate::operation::list_backup_jobs::builders::ListBackupJobsInputBuilder {
61 &self.inner
62 }
63 /// Sends the request and returns the response.
64 ///
65 /// If an error occurs, an `SdkError` will be returned with additional details that
66 /// can be matched against.
67 ///
68 /// By default, any retryable failures will be retried twice. Retry behavior
69 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70 /// set when configuring the client.
71 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::list_backup_jobs::ListBackupJobsOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::list_backup_jobs::ListBackupJobsError,
77 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78 >,
79 > {
80 let input = self
81 .inner
82 .build()
83 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84 let runtime_plugins = crate::operation::list_backup_jobs::ListBackupJobs::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::list_backup_jobs::ListBackupJobs::orchestrate(&runtime_plugins, input).await
90 }
91
92 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::list_backup_jobs::ListBackupJobsOutput,
97 crate::operation::list_backup_jobs::ListBackupJobsError,
98 Self,
99 > {
100 crate::client::customize::CustomizableOperation::new(self)
101 }
102 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103 self.set_config_override(::std::option::Option::Some(config_override.into()));
104 self
105 }
106
107 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108 self.config_override = config_override;
109 self
110 }
111 /// Create a paginator for this request
112 ///
113 /// Paginators are used by calling [`send().await`](crate::operation::list_backup_jobs::paginator::ListBackupJobsPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
114 pub fn into_paginator(self) -> crate::operation::list_backup_jobs::paginator::ListBackupJobsPaginator {
115 crate::operation::list_backup_jobs::paginator::ListBackupJobsPaginator::new(self.handle, self.inner)
116 }
117 /// <p>The next item following a partial list of returned items. For example, if a request is made to return <code>MaxResults</code> number of items, <code>NextToken</code> allows you to return more items in your list starting at the location pointed to by the next token.</p>
118 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
119 self.inner = self.inner.next_token(input.into());
120 self
121 }
122 /// <p>The next item following a partial list of returned items. For example, if a request is made to return <code>MaxResults</code> number of items, <code>NextToken</code> allows you to return more items in your list starting at the location pointed to by the next token.</p>
123 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
124 self.inner = self.inner.set_next_token(input);
125 self
126 }
127 /// <p>The next item following a partial list of returned items. For example, if a request is made to return <code>MaxResults</code> number of items, <code>NextToken</code> allows you to return more items in your list starting at the location pointed to by the next token.</p>
128 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
129 self.inner.get_next_token()
130 }
131 /// <p>The maximum number of items to be returned.</p>
132 pub fn max_results(mut self, input: i32) -> Self {
133 self.inner = self.inner.max_results(input);
134 self
135 }
136 /// <p>The maximum number of items to be returned.</p>
137 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
138 self.inner = self.inner.set_max_results(input);
139 self
140 }
141 /// <p>The maximum number of items to be returned.</p>
142 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
143 self.inner.get_max_results()
144 }
145 /// <p>Returns only backup jobs that match the specified resource Amazon Resource Name (ARN).</p>
146 pub fn by_resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
147 self.inner = self.inner.by_resource_arn(input.into());
148 self
149 }
150 /// <p>Returns only backup jobs that match the specified resource Amazon Resource Name (ARN).</p>
151 pub fn set_by_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
152 self.inner = self.inner.set_by_resource_arn(input);
153 self
154 }
155 /// <p>Returns only backup jobs that match the specified resource Amazon Resource Name (ARN).</p>
156 pub fn get_by_resource_arn(&self) -> &::std::option::Option<::std::string::String> {
157 self.inner.get_by_resource_arn()
158 }
159 /// <p>Returns only backup jobs that are in the specified state.</p>
160 /// <p><code>Completed with issues</code> is a status found only in the Backup console. For API, this status refers to jobs with a state of <code>COMPLETED</code> and a <code>MessageCategory</code> with a value other than <code>SUCCESS</code>; that is, the status is completed but comes with a status message.</p>
161 /// <p>To obtain the job count for <code>Completed with issues</code>, run two GET requests, and subtract the second, smaller number:</p>
162 /// <p>GET /backup-jobs/?state=COMPLETED</p>
163 /// <p>GET /backup-jobs/?messageCategory=SUCCESS&state=COMPLETED</p>
164 pub fn by_state(mut self, input: crate::types::BackupJobState) -> Self {
165 self.inner = self.inner.by_state(input);
166 self
167 }
168 /// <p>Returns only backup jobs that are in the specified state.</p>
169 /// <p><code>Completed with issues</code> is a status found only in the Backup console. For API, this status refers to jobs with a state of <code>COMPLETED</code> and a <code>MessageCategory</code> with a value other than <code>SUCCESS</code>; that is, the status is completed but comes with a status message.</p>
170 /// <p>To obtain the job count for <code>Completed with issues</code>, run two GET requests, and subtract the second, smaller number:</p>
171 /// <p>GET /backup-jobs/?state=COMPLETED</p>
172 /// <p>GET /backup-jobs/?messageCategory=SUCCESS&state=COMPLETED</p>
173 pub fn set_by_state(mut self, input: ::std::option::Option<crate::types::BackupJobState>) -> Self {
174 self.inner = self.inner.set_by_state(input);
175 self
176 }
177 /// <p>Returns only backup jobs that are in the specified state.</p>
178 /// <p><code>Completed with issues</code> is a status found only in the Backup console. For API, this status refers to jobs with a state of <code>COMPLETED</code> and a <code>MessageCategory</code> with a value other than <code>SUCCESS</code>; that is, the status is completed but comes with a status message.</p>
179 /// <p>To obtain the job count for <code>Completed with issues</code>, run two GET requests, and subtract the second, smaller number:</p>
180 /// <p>GET /backup-jobs/?state=COMPLETED</p>
181 /// <p>GET /backup-jobs/?messageCategory=SUCCESS&state=COMPLETED</p>
182 pub fn get_by_state(&self) -> &::std::option::Option<crate::types::BackupJobState> {
183 self.inner.get_by_state()
184 }
185 /// <p>Returns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.</p>
186 pub fn by_backup_vault_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
187 self.inner = self.inner.by_backup_vault_name(input.into());
188 self
189 }
190 /// <p>Returns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.</p>
191 pub fn set_by_backup_vault_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
192 self.inner = self.inner.set_by_backup_vault_name(input);
193 self
194 }
195 /// <p>Returns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.</p>
196 pub fn get_by_backup_vault_name(&self) -> &::std::option::Option<::std::string::String> {
197 self.inner.get_by_backup_vault_name()
198 }
199 /// <p>Returns only backup jobs that were created before the specified date.</p>
200 pub fn by_created_before(mut self, input: ::aws_smithy_types::DateTime) -> Self {
201 self.inner = self.inner.by_created_before(input);
202 self
203 }
204 /// <p>Returns only backup jobs that were created before the specified date.</p>
205 pub fn set_by_created_before(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
206 self.inner = self.inner.set_by_created_before(input);
207 self
208 }
209 /// <p>Returns only backup jobs that were created before the specified date.</p>
210 pub fn get_by_created_before(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
211 self.inner.get_by_created_before()
212 }
213 /// <p>Returns only backup jobs that were created after the specified date.</p>
214 pub fn by_created_after(mut self, input: ::aws_smithy_types::DateTime) -> Self {
215 self.inner = self.inner.by_created_after(input);
216 self
217 }
218 /// <p>Returns only backup jobs that were created after the specified date.</p>
219 pub fn set_by_created_after(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
220 self.inner = self.inner.set_by_created_after(input);
221 self
222 }
223 /// <p>Returns only backup jobs that were created after the specified date.</p>
224 pub fn get_by_created_after(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
225 self.inner.get_by_created_after()
226 }
227 /// <p>Returns only backup jobs for the specified resources:</p>
228 /// <ul>
229 /// <li>
230 /// <p><code>Aurora</code> for Amazon Aurora</p></li>
231 /// <li>
232 /// <p><code>CloudFormation</code> for CloudFormation</p></li>
233 /// <li>
234 /// <p><code>DocumentDB</code> for Amazon DocumentDB (with MongoDB compatibility)</p></li>
235 /// <li>
236 /// <p><code>DynamoDB</code> for Amazon DynamoDB</p></li>
237 /// <li>
238 /// <p><code>EBS</code> for Amazon Elastic Block Store</p></li>
239 /// <li>
240 /// <p><code>EC2</code> for Amazon Elastic Compute Cloud</p></li>
241 /// <li>
242 /// <p><code>EFS</code> for Amazon Elastic File System</p></li>
243 /// <li>
244 /// <p><code>FSx</code> for Amazon FSx</p></li>
245 /// <li>
246 /// <p><code>Neptune</code> for Amazon Neptune</p></li>
247 /// <li>
248 /// <p><code>RDS</code> for Amazon Relational Database Service</p></li>
249 /// <li>
250 /// <p><code>Redshift</code> for Amazon Redshift</p></li>
251 /// <li>
252 /// <p><code>S3</code> for Amazon Simple Storage Service (Amazon S3)</p></li>
253 /// <li>
254 /// <p><code>SAP HANA on Amazon EC2</code> for SAP HANA databases on Amazon Elastic Compute Cloud instances</p></li>
255 /// <li>
256 /// <p><code>Storage Gateway</code> for Storage Gateway</p></li>
257 /// <li>
258 /// <p><code>Timestream</code> for Amazon Timestream</p></li>
259 /// <li>
260 /// <p><code>VirtualMachine</code> for VMware virtual machines</p></li>
261 /// </ul>
262 pub fn by_resource_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
263 self.inner = self.inner.by_resource_type(input.into());
264 self
265 }
266 /// <p>Returns only backup jobs for the specified resources:</p>
267 /// <ul>
268 /// <li>
269 /// <p><code>Aurora</code> for Amazon Aurora</p></li>
270 /// <li>
271 /// <p><code>CloudFormation</code> for CloudFormation</p></li>
272 /// <li>
273 /// <p><code>DocumentDB</code> for Amazon DocumentDB (with MongoDB compatibility)</p></li>
274 /// <li>
275 /// <p><code>DynamoDB</code> for Amazon DynamoDB</p></li>
276 /// <li>
277 /// <p><code>EBS</code> for Amazon Elastic Block Store</p></li>
278 /// <li>
279 /// <p><code>EC2</code> for Amazon Elastic Compute Cloud</p></li>
280 /// <li>
281 /// <p><code>EFS</code> for Amazon Elastic File System</p></li>
282 /// <li>
283 /// <p><code>FSx</code> for Amazon FSx</p></li>
284 /// <li>
285 /// <p><code>Neptune</code> for Amazon Neptune</p></li>
286 /// <li>
287 /// <p><code>RDS</code> for Amazon Relational Database Service</p></li>
288 /// <li>
289 /// <p><code>Redshift</code> for Amazon Redshift</p></li>
290 /// <li>
291 /// <p><code>S3</code> for Amazon Simple Storage Service (Amazon S3)</p></li>
292 /// <li>
293 /// <p><code>SAP HANA on Amazon EC2</code> for SAP HANA databases on Amazon Elastic Compute Cloud instances</p></li>
294 /// <li>
295 /// <p><code>Storage Gateway</code> for Storage Gateway</p></li>
296 /// <li>
297 /// <p><code>Timestream</code> for Amazon Timestream</p></li>
298 /// <li>
299 /// <p><code>VirtualMachine</code> for VMware virtual machines</p></li>
300 /// </ul>
301 pub fn set_by_resource_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
302 self.inner = self.inner.set_by_resource_type(input);
303 self
304 }
305 /// <p>Returns only backup jobs for the specified resources:</p>
306 /// <ul>
307 /// <li>
308 /// <p><code>Aurora</code> for Amazon Aurora</p></li>
309 /// <li>
310 /// <p><code>CloudFormation</code> for CloudFormation</p></li>
311 /// <li>
312 /// <p><code>DocumentDB</code> for Amazon DocumentDB (with MongoDB compatibility)</p></li>
313 /// <li>
314 /// <p><code>DynamoDB</code> for Amazon DynamoDB</p></li>
315 /// <li>
316 /// <p><code>EBS</code> for Amazon Elastic Block Store</p></li>
317 /// <li>
318 /// <p><code>EC2</code> for Amazon Elastic Compute Cloud</p></li>
319 /// <li>
320 /// <p><code>EFS</code> for Amazon Elastic File System</p></li>
321 /// <li>
322 /// <p><code>FSx</code> for Amazon FSx</p></li>
323 /// <li>
324 /// <p><code>Neptune</code> for Amazon Neptune</p></li>
325 /// <li>
326 /// <p><code>RDS</code> for Amazon Relational Database Service</p></li>
327 /// <li>
328 /// <p><code>Redshift</code> for Amazon Redshift</p></li>
329 /// <li>
330 /// <p><code>S3</code> for Amazon Simple Storage Service (Amazon S3)</p></li>
331 /// <li>
332 /// <p><code>SAP HANA on Amazon EC2</code> for SAP HANA databases on Amazon Elastic Compute Cloud instances</p></li>
333 /// <li>
334 /// <p><code>Storage Gateway</code> for Storage Gateway</p></li>
335 /// <li>
336 /// <p><code>Timestream</code> for Amazon Timestream</p></li>
337 /// <li>
338 /// <p><code>VirtualMachine</code> for VMware virtual machines</p></li>
339 /// </ul>
340 pub fn get_by_resource_type(&self) -> &::std::option::Option<::std::string::String> {
341 self.inner.get_by_resource_type()
342 }
343 /// <p>The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.</p>
344 /// <p>If used from an Organizations management account, passing <code>*</code> returns all jobs across the organization.</p>
345 pub fn by_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
346 self.inner = self.inner.by_account_id(input.into());
347 self
348 }
349 /// <p>The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.</p>
350 /// <p>If used from an Organizations management account, passing <code>*</code> returns all jobs across the organization.</p>
351 pub fn set_by_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
352 self.inner = self.inner.set_by_account_id(input);
353 self
354 }
355 /// <p>The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.</p>
356 /// <p>If used from an Organizations management account, passing <code>*</code> returns all jobs across the organization.</p>
357 pub fn get_by_account_id(&self) -> &::std::option::Option<::std::string::String> {
358 self.inner.get_by_account_id()
359 }
360 /// <p>Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).</p>
361 pub fn by_complete_after(mut self, input: ::aws_smithy_types::DateTime) -> Self {
362 self.inner = self.inner.by_complete_after(input);
363 self
364 }
365 /// <p>Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).</p>
366 pub fn set_by_complete_after(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
367 self.inner = self.inner.set_by_complete_after(input);
368 self
369 }
370 /// <p>Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).</p>
371 pub fn get_by_complete_after(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
372 self.inner.get_by_complete_after()
373 }
374 /// <p>Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).</p>
375 pub fn by_complete_before(mut self, input: ::aws_smithy_types::DateTime) -> Self {
376 self.inner = self.inner.by_complete_before(input);
377 self
378 }
379 /// <p>Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).</p>
380 pub fn set_by_complete_before(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
381 self.inner = self.inner.set_by_complete_before(input);
382 self
383 }
384 /// <p>Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).</p>
385 pub fn get_by_complete_before(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
386 self.inner.get_by_complete_before()
387 }
388 /// <p>This is a filter to list child (nested) jobs based on parent job ID.</p>
389 pub fn by_parent_job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
390 self.inner = self.inner.by_parent_job_id(input.into());
391 self
392 }
393 /// <p>This is a filter to list child (nested) jobs based on parent job ID.</p>
394 pub fn set_by_parent_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
395 self.inner = self.inner.set_by_parent_job_id(input);
396 self
397 }
398 /// <p>This is a filter to list child (nested) jobs based on parent job ID.</p>
399 pub fn get_by_parent_job_id(&self) -> &::std::option::Option<::std::string::String> {
400 self.inner.get_by_parent_job_id()
401 }
402 /// <p>This is an optional parameter that can be used to filter out jobs with a MessageCategory which matches the value you input.</p>
403 /// <p>Example strings may include <code>AccessDenied</code>, <code>SUCCESS</code>, <code>AGGREGATE_ALL</code>, and <code>InvalidParameters</code>.</p>
404 /// <p>View <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/monitoring.html">Monitoring</a></p>
405 /// <p>The wildcard () returns count of all message categories.</p>
406 /// <p><code>AGGREGATE_ALL</code> aggregates job counts for all message categories and returns the sum.</p>
407 pub fn by_message_category(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
408 self.inner = self.inner.by_message_category(input.into());
409 self
410 }
411 /// <p>This is an optional parameter that can be used to filter out jobs with a MessageCategory which matches the value you input.</p>
412 /// <p>Example strings may include <code>AccessDenied</code>, <code>SUCCESS</code>, <code>AGGREGATE_ALL</code>, and <code>InvalidParameters</code>.</p>
413 /// <p>View <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/monitoring.html">Monitoring</a></p>
414 /// <p>The wildcard () returns count of all message categories.</p>
415 /// <p><code>AGGREGATE_ALL</code> aggregates job counts for all message categories and returns the sum.</p>
416 pub fn set_by_message_category(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
417 self.inner = self.inner.set_by_message_category(input);
418 self
419 }
420 /// <p>This is an optional parameter that can be used to filter out jobs with a MessageCategory which matches the value you input.</p>
421 /// <p>Example strings may include <code>AccessDenied</code>, <code>SUCCESS</code>, <code>AGGREGATE_ALL</code>, and <code>InvalidParameters</code>.</p>
422 /// <p>View <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/monitoring.html">Monitoring</a></p>
423 /// <p>The wildcard () returns count of all message categories.</p>
424 /// <p><code>AGGREGATE_ALL</code> aggregates job counts for all message categories and returns the sum.</p>
425 pub fn get_by_message_category(&self) -> &::std::option::Option<::std::string::String> {
426 self.inner.get_by_message_category()
427 }
428}