aws_sdk_cloudwatchlogs/operation/stop_query/
_stop_query_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StopQueryInput {
pub query_id: ::std::option::Option<::std::string::String>,
}
impl StopQueryInput {
pub fn query_id(&self) -> ::std::option::Option<&str> {
self.query_id.as_deref()
}
}
impl StopQueryInput {
pub fn builder() -> crate::operation::stop_query::builders::StopQueryInputBuilder {
crate::operation::stop_query::builders::StopQueryInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StopQueryInputBuilder {
pub(crate) query_id: ::std::option::Option<::std::string::String>,
}
impl StopQueryInputBuilder {
pub fn query_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.query_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_query_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.query_id = input;
self
}
pub fn get_query_id(&self) -> &::std::option::Option<::std::string::String> {
&self.query_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::stop_query::StopQueryInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::stop_query::StopQueryInput { query_id: self.query_id })
}
}