aws_sdk_controltower/operation/disable_control/
_disable_control_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisableControlOutput {
pub operation_identifier: ::std::string::String,
_request_id: Option<String>,
}
impl DisableControlOutput {
pub fn operation_identifier(&self) -> &str {
use std::ops::Deref;
self.operation_identifier.deref()
}
}
impl ::aws_types::request_id::RequestId for DisableControlOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DisableControlOutput {
pub fn builder() -> crate::operation::disable_control::builders::DisableControlOutputBuilder {
crate::operation::disable_control::builders::DisableControlOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisableControlOutputBuilder {
pub(crate) operation_identifier: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DisableControlOutputBuilder {
pub fn operation_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.operation_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_operation_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.operation_identifier = input;
self
}
pub fn get_operation_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.operation_identifier
}
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_control::DisableControlOutput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::disable_control::DisableControlOutput {
operation_identifier: self.operation_identifier.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"operation_identifier",
"operation_identifier was not specified but it is required when building DisableControlOutput",
)
})?,
_request_id: self._request_id,
})
}
}