#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DnsOptions {
pub dns_record_ip_type: ::std::option::Option<crate::types::DnsRecordIpType>,
pub private_dns_only_for_inbound_resolver_endpoint: ::std::option::Option<bool>,
}
impl DnsOptions {
pub fn dns_record_ip_type(&self) -> ::std::option::Option<&crate::types::DnsRecordIpType> {
self.dns_record_ip_type.as_ref()
}
pub fn private_dns_only_for_inbound_resolver_endpoint(&self) -> ::std::option::Option<bool> {
self.private_dns_only_for_inbound_resolver_endpoint
}
}
impl DnsOptions {
pub fn builder() -> crate::types::builders::DnsOptionsBuilder {
crate::types::builders::DnsOptionsBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DnsOptionsBuilder {
pub(crate) dns_record_ip_type: ::std::option::Option<crate::types::DnsRecordIpType>,
pub(crate) private_dns_only_for_inbound_resolver_endpoint: ::std::option::Option<bool>,
}
impl DnsOptionsBuilder {
pub fn dns_record_ip_type(mut self, input: crate::types::DnsRecordIpType) -> Self {
self.dns_record_ip_type = ::std::option::Option::Some(input);
self
}
pub fn set_dns_record_ip_type(mut self, input: ::std::option::Option<crate::types::DnsRecordIpType>) -> Self {
self.dns_record_ip_type = input;
self
}
pub fn get_dns_record_ip_type(&self) -> &::std::option::Option<crate::types::DnsRecordIpType> {
&self.dns_record_ip_type
}
pub fn private_dns_only_for_inbound_resolver_endpoint(mut self, input: bool) -> Self {
self.private_dns_only_for_inbound_resolver_endpoint = ::std::option::Option::Some(input);
self
}
pub fn set_private_dns_only_for_inbound_resolver_endpoint(mut self, input: ::std::option::Option<bool>) -> Self {
self.private_dns_only_for_inbound_resolver_endpoint = input;
self
}
pub fn get_private_dns_only_for_inbound_resolver_endpoint(&self) -> &::std::option::Option<bool> {
&self.private_dns_only_for_inbound_resolver_endpoint
}
pub fn build(self) -> crate::types::DnsOptions {
crate::types::DnsOptions {
dns_record_ip_type: self.dns_record_ip_type,
private_dns_only_for_inbound_resolver_endpoint: self.private_dns_only_for_inbound_resolver_endpoint,
}
}
}