Struct aws_sdk_athena::types::builders::NamedQueryBuilder
source · #[non_exhaustive]pub struct NamedQueryBuilder { /* private fields */ }Expand description
A builder for NamedQuery.
Implementations§
source§impl NamedQueryBuilder
impl NamedQueryBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The query description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The query description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The query description.
sourcepub fn database(self, input: impl Into<String>) -> Self
pub fn database(self, input: impl Into<String>) -> Self
The database to which the query belongs.
This field is required.sourcepub fn set_database(self, input: Option<String>) -> Self
pub fn set_database(self, input: Option<String>) -> Self
The database to which the query belongs.
sourcepub fn get_database(&self) -> &Option<String>
pub fn get_database(&self) -> &Option<String>
The database to which the query belongs.
sourcepub fn query_string(self, input: impl Into<String>) -> Self
pub fn query_string(self, input: impl Into<String>) -> Self
The SQL statements that make up the query.
This field is required.sourcepub fn set_query_string(self, input: Option<String>) -> Self
pub fn set_query_string(self, input: Option<String>) -> Self
The SQL statements that make up the query.
sourcepub fn get_query_string(&self) -> &Option<String>
pub fn get_query_string(&self) -> &Option<String>
The SQL statements that make up the query.
sourcepub fn named_query_id(self, input: impl Into<String>) -> Self
pub fn named_query_id(self, input: impl Into<String>) -> Self
The unique identifier of the query.
sourcepub fn set_named_query_id(self, input: Option<String>) -> Self
pub fn set_named_query_id(self, input: Option<String>) -> Self
The unique identifier of the query.
sourcepub fn get_named_query_id(&self) -> &Option<String>
pub fn get_named_query_id(&self) -> &Option<String>
The unique identifier of the query.
sourcepub fn work_group(self, input: impl Into<String>) -> Self
pub fn work_group(self, input: impl Into<String>) -> Self
The name of the workgroup that contains the named query.
sourcepub fn set_work_group(self, input: Option<String>) -> Self
pub fn set_work_group(self, input: Option<String>) -> Self
The name of the workgroup that contains the named query.
sourcepub fn get_work_group(&self) -> &Option<String>
pub fn get_work_group(&self) -> &Option<String>
The name of the workgroup that contains the named query.
sourcepub fn build(self) -> Result<NamedQuery, BuildError>
pub fn build(self) -> Result<NamedQuery, BuildError>
Consumes the builder and constructs a NamedQuery.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for NamedQueryBuilder
impl Clone for NamedQueryBuilder
source§fn clone(&self) -> NamedQueryBuilder
fn clone(&self) -> NamedQueryBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for NamedQueryBuilder
impl Debug for NamedQueryBuilder
source§impl Default for NamedQueryBuilder
impl Default for NamedQueryBuilder
source§fn default() -> NamedQueryBuilder
fn default() -> NamedQueryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for NamedQueryBuilder
impl PartialEq for NamedQueryBuilder
source§fn eq(&self, other: &NamedQueryBuilder) -> bool
fn eq(&self, other: &NamedQueryBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NamedQueryBuilder
Auto Trait Implementations§
impl Freeze for NamedQueryBuilder
impl RefUnwindSafe for NamedQueryBuilder
impl Send for NamedQueryBuilder
impl Sync for NamedQueryBuilder
impl Unpin for NamedQueryBuilder
impl UnwindSafe for NamedQueryBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.