aws_sdk_cloudwatchlogs/operation/stop_query/
_stop_query_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StopQueryOutput {
pub success: bool,
_request_id: Option<String>,
}
impl StopQueryOutput {
pub fn success(&self) -> bool {
self.success
}
}
impl ::aws_types::request_id::RequestId for StopQueryOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl StopQueryOutput {
pub fn builder() -> crate::operation::stop_query::builders::StopQueryOutputBuilder {
crate::operation::stop_query::builders::StopQueryOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StopQueryOutputBuilder {
pub(crate) success: ::std::option::Option<bool>,
_request_id: Option<String>,
}
impl StopQueryOutputBuilder {
pub fn success(mut self, input: bool) -> Self {
self.success = ::std::option::Option::Some(input);
self
}
pub fn set_success(mut self, input: ::std::option::Option<bool>) -> Self {
self.success = input;
self
}
pub fn get_success(&self) -> &::std::option::Option<bool> {
&self.success
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::stop_query::StopQueryOutput {
crate::operation::stop_query::StopQueryOutput {
success: self.success.unwrap_or_default(),
_request_id: self._request_id,
}
}
}