#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateCidrCollectionOutput {
#[doc(hidden)]
pub collection: std::option::Option<crate::types::CidrCollection>,
#[doc(hidden)]
pub location: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl CreateCidrCollectionOutput {
pub fn collection(&self) -> std::option::Option<&crate::types::CidrCollection> {
self.collection.as_ref()
}
pub fn location(&self) -> std::option::Option<&str> {
self.location.as_deref()
}
}
impl aws_http::request_id::RequestId for CreateCidrCollectionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateCidrCollectionOutput {
pub fn builder(
) -> crate::operation::create_cidr_collection::builders::CreateCidrCollectionOutputBuilder {
crate::operation::create_cidr_collection::builders::CreateCidrCollectionOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct CreateCidrCollectionOutputBuilder {
pub(crate) collection: std::option::Option<crate::types::CidrCollection>,
pub(crate) location: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl CreateCidrCollectionOutputBuilder {
pub fn collection(mut self, input: crate::types::CidrCollection) -> Self {
self.collection = Some(input);
self
}
pub fn set_collection(
mut self,
input: std::option::Option<crate::types::CidrCollection>,
) -> Self {
self.collection = input;
self
}
pub fn location(mut self, input: impl Into<std::string::String>) -> Self {
self.location = Some(input.into());
self
}
pub fn set_location(mut self, input: std::option::Option<std::string::String>) -> Self {
self.location = input;
self
}
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_cidr_collection::CreateCidrCollectionOutput {
crate::operation::create_cidr_collection::CreateCidrCollectionOutput {
collection: self.collection,
location: self.location,
_request_id: self._request_id,
}
}
}