aws_sdk_athena/client/get_prepared_statement.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 [`GetPreparedStatement`](crate::operation::get_prepared_statement::builders::GetPreparedStatementFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`statement_name(impl Into<String>)`](crate::operation::get_prepared_statement::builders::GetPreparedStatementFluentBuilder::statement_name) / [`set_statement_name(Option<String>)`](crate::operation::get_prepared_statement::builders::GetPreparedStatementFluentBuilder::set_statement_name):<br>required: **true**<br><p>The name of the prepared statement to retrieve.</p><br>
7 /// - [`work_group(impl Into<String>)`](crate::operation::get_prepared_statement::builders::GetPreparedStatementFluentBuilder::work_group) / [`set_work_group(Option<String>)`](crate::operation::get_prepared_statement::builders::GetPreparedStatementFluentBuilder::set_work_group):<br>required: **true**<br><p>The workgroup to which the statement to be retrieved belongs.</p><br>
8 /// - On success, responds with [`GetPreparedStatementOutput`](crate::operation::get_prepared_statement::GetPreparedStatementOutput) with field(s):
9 /// - [`prepared_statement(Option<PreparedStatement>)`](crate::operation::get_prepared_statement::GetPreparedStatementOutput::prepared_statement): <p>The name of the prepared statement that was retrieved.</p>
10 /// - On failure, responds with [`SdkError<GetPreparedStatementError>`](crate::operation::get_prepared_statement::GetPreparedStatementError)
11 pub fn get_prepared_statement(&self) -> crate::operation::get_prepared_statement::builders::GetPreparedStatementFluentBuilder {
12 crate::operation::get_prepared_statement::builders::GetPreparedStatementFluentBuilder::new(self.handle.clone())
13 }
14}