#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateIpamScopeOutput {
pub ipam_scope: ::std::option::Option<crate::types::IpamScope>,
_request_id: Option<String>,
}
impl CreateIpamScopeOutput {
pub fn ipam_scope(&self) -> ::std::option::Option<&crate::types::IpamScope> {
self.ipam_scope.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreateIpamScopeOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateIpamScopeOutput {
pub fn builder() -> crate::operation::create_ipam_scope::builders::CreateIpamScopeOutputBuilder {
crate::operation::create_ipam_scope::builders::CreateIpamScopeOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateIpamScopeOutputBuilder {
pub(crate) ipam_scope: ::std::option::Option<crate::types::IpamScope>,
_request_id: Option<String>,
}
impl CreateIpamScopeOutputBuilder {
pub fn ipam_scope(mut self, input: crate::types::IpamScope) -> Self {
self.ipam_scope = ::std::option::Option::Some(input);
self
}
pub fn set_ipam_scope(mut self, input: ::std::option::Option<crate::types::IpamScope>) -> Self {
self.ipam_scope = input;
self
}
pub fn get_ipam_scope(&self) -> &::std::option::Option<crate::types::IpamScope> {
&self.ipam_scope
}
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::create_ipam_scope::CreateIpamScopeOutput {
crate::operation::create_ipam_scope::CreateIpamScopeOutput {
ipam_scope: self.ipam_scope,
_request_id: self._request_id,
}
}
}