#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisableFrameworkOutput {
pub environment: ::std::string::String,
pub framework: ::std::string::String,
pub project: ::std::string::String,
_request_id: Option<String>,
}
impl DisableFrameworkOutput {
pub fn environment(&self) -> &str {
use std::ops::Deref;
self.environment.deref()
}
pub fn framework(&self) -> &str {
use std::ops::Deref;
self.framework.deref()
}
pub fn project(&self) -> &str {
use std::ops::Deref;
self.project.deref()
}
}
impl ::aws_types::request_id::RequestId for DisableFrameworkOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DisableFrameworkOutput {
pub fn builder() -> crate::operation::disable_framework::builders::DisableFrameworkOutputBuilder {
crate::operation::disable_framework::builders::DisableFrameworkOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisableFrameworkOutputBuilder {
pub(crate) environment: ::std::option::Option<::std::string::String>,
pub(crate) framework: ::std::option::Option<::std::string::String>,
pub(crate) project: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DisableFrameworkOutputBuilder {
pub fn environment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.environment = ::std::option::Option::Some(input.into());
self
}
pub fn set_environment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.environment = input;
self
}
pub fn get_environment(&self) -> &::std::option::Option<::std::string::String> {
&self.environment
}
pub fn framework(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.framework = ::std::option::Option::Some(input.into());
self
}
pub fn set_framework(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.framework = input;
self
}
pub fn get_framework(&self) -> &::std::option::Option<::std::string::String> {
&self.framework
}
pub fn project(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.project = ::std::option::Option::Some(input.into());
self
}
pub fn set_project(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.project = input;
self
}
pub fn get_project(&self) -> &::std::option::Option<::std::string::String> {
&self.project
}
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::disable_framework::DisableFrameworkOutput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::disable_framework::DisableFrameworkOutput {
environment: self.environment.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"environment",
"environment was not specified but it is required when building DisableFrameworkOutput",
)
})?,
framework: self.framework.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"framework",
"framework was not specified but it is required when building DisableFrameworkOutput",
)
})?,
project: self.project.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"project",
"project was not specified but it is required when building DisableFrameworkOutput",
)
})?,
_request_id: self._request_id,
})
}
}