#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetActionOutput {
pub action: ::std::string::String,
pub service: ::std::string::String,
pub description: ::std::string::String,
_request_id: Option<String>,
}
impl GetActionOutput {
pub fn action(&self) -> &str {
use std::ops::Deref;
self.action.deref()
}
pub fn service(&self) -> &str {
use std::ops::Deref;
self.service.deref()
}
pub fn description(&self) -> &str {
use std::ops::Deref;
self.description.deref()
}
}
impl ::aws_types::request_id::RequestId for GetActionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetActionOutput {
pub fn builder() -> crate::operation::get_action::builders::GetActionOutputBuilder {
crate::operation::get_action::builders::GetActionOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetActionOutputBuilder {
pub(crate) action: ::std::option::Option<::std::string::String>,
pub(crate) service: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetActionOutputBuilder {
pub fn action(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.action = ::std::option::Option::Some(input.into());
self
}
pub fn set_action(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.action = input;
self
}
pub fn get_action(&self) -> &::std::option::Option<::std::string::String> {
&self.action
}
pub fn service(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.service = ::std::option::Option::Some(input.into());
self
}
pub fn set_service(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.service = input;
self
}
pub fn get_service(&self) -> &::std::option::Option<::std::string::String> {
&self.service
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
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) -> ::std::result::Result<crate::operation::get_action::GetActionOutput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_action::GetActionOutput {
action: self.action.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"action",
"action was not specified but it is required when building GetActionOutput",
)
})?,
service: self.service.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"service",
"service was not specified but it is required when building GetActionOutput",
)
})?,
description: self.description.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"description",
"description was not specified but it is required when building GetActionOutput",
)
})?,
_request_id: self._request_id,
})
}
}