#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateHostedZoneOutput {
#[doc(hidden)]
pub hosted_zone: std::option::Option<crate::types::HostedZone>,
#[doc(hidden)]
pub change_info: std::option::Option<crate::types::ChangeInfo>,
#[doc(hidden)]
pub delegation_set: std::option::Option<crate::types::DelegationSet>,
#[doc(hidden)]
pub vpc: std::option::Option<crate::types::Vpc>,
#[doc(hidden)]
pub location: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl CreateHostedZoneOutput {
pub fn hosted_zone(&self) -> std::option::Option<&crate::types::HostedZone> {
self.hosted_zone.as_ref()
}
pub fn change_info(&self) -> std::option::Option<&crate::types::ChangeInfo> {
self.change_info.as_ref()
}
pub fn delegation_set(&self) -> std::option::Option<&crate::types::DelegationSet> {
self.delegation_set.as_ref()
}
pub fn vpc(&self) -> std::option::Option<&crate::types::Vpc> {
self.vpc.as_ref()
}
pub fn location(&self) -> std::option::Option<&str> {
self.location.as_deref()
}
}
impl aws_http::request_id::RequestId for CreateHostedZoneOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateHostedZoneOutput {
pub fn builder() -> crate::operation::create_hosted_zone::builders::CreateHostedZoneOutputBuilder
{
crate::operation::create_hosted_zone::builders::CreateHostedZoneOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct CreateHostedZoneOutputBuilder {
pub(crate) hosted_zone: std::option::Option<crate::types::HostedZone>,
pub(crate) change_info: std::option::Option<crate::types::ChangeInfo>,
pub(crate) delegation_set: std::option::Option<crate::types::DelegationSet>,
pub(crate) vpc: std::option::Option<crate::types::Vpc>,
pub(crate) location: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl CreateHostedZoneOutputBuilder {
pub fn hosted_zone(mut self, input: crate::types::HostedZone) -> Self {
self.hosted_zone = Some(input);
self
}
pub fn set_hosted_zone(mut self, input: std::option::Option<crate::types::HostedZone>) -> Self {
self.hosted_zone = input;
self
}
pub fn change_info(mut self, input: crate::types::ChangeInfo) -> Self {
self.change_info = Some(input);
self
}
pub fn set_change_info(mut self, input: std::option::Option<crate::types::ChangeInfo>) -> Self {
self.change_info = input;
self
}
pub fn delegation_set(mut self, input: crate::types::DelegationSet) -> Self {
self.delegation_set = Some(input);
self
}
pub fn set_delegation_set(
mut self,
input: std::option::Option<crate::types::DelegationSet>,
) -> Self {
self.delegation_set = input;
self
}
pub fn vpc(mut self, input: crate::types::Vpc) -> Self {
self.vpc = Some(input);
self
}
pub fn set_vpc(mut self, input: std::option::Option<crate::types::Vpc>) -> Self {
self.vpc = 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_hosted_zone::CreateHostedZoneOutput {
crate::operation::create_hosted_zone::CreateHostedZoneOutput {
hosted_zone: self.hosted_zone,
change_info: self.change_info,
delegation_set: self.delegation_set,
vpc: self.vpc,
location: self.location,
_request_id: self._request_id,
}
}
}