#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetPlanOutput {
pub plan: ::std::option::Option<crate::types::Plan>,
_request_id: Option<String>,
}
impl GetPlanOutput {
pub fn plan(&self) -> ::std::option::Option<&crate::types::Plan> {
self.plan.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetPlanOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetPlanOutput {
pub fn builder() -> crate::operation::get_plan::builders::GetPlanOutputBuilder {
crate::operation::get_plan::builders::GetPlanOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetPlanOutputBuilder {
pub(crate) plan: ::std::option::Option<crate::types::Plan>,
_request_id: Option<String>,
}
impl GetPlanOutputBuilder {
pub fn plan(mut self, input: crate::types::Plan) -> Self {
self.plan = ::std::option::Option::Some(input);
self
}
pub fn set_plan(mut self, input: ::std::option::Option<crate::types::Plan>) -> Self {
self.plan = input;
self
}
pub fn get_plan(&self) -> &::std::option::Option<crate::types::Plan> {
&self.plan
}
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::get_plan::GetPlanOutput {
crate::operation::get_plan::GetPlanOutput {
plan: self.plan,
_request_id: self._request_id,
}
}
}