#[non_exhaustive]pub struct DnsServersOptionsModifyStructureBuilder { /* private fields */ }
Expand description
A builder for DnsServersOptionsModifyStructure
.
Implementations§
source§impl DnsServersOptionsModifyStructureBuilder
impl DnsServersOptionsModifyStructureBuilder
sourcepub fn custom_dns_servers(self, input: impl Into<String>) -> Self
pub fn custom_dns_servers(self, input: impl Into<String>) -> Self
Appends an item to custom_dns_servers
.
To override the contents of this collection use set_custom_dns_servers
.
The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the existing values.
sourcepub fn set_custom_dns_servers(self, input: Option<Vec<String>>) -> Self
pub fn set_custom_dns_servers(self, input: Option<Vec<String>>) -> Self
The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the existing values.
sourcepub fn get_custom_dns_servers(&self) -> &Option<Vec<String>>
pub fn get_custom_dns_servers(&self) -> &Option<Vec<String>>
The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the existing values.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Indicates whether DNS servers should be used. Specify False
to delete the existing DNS servers.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Indicates whether DNS servers should be used. Specify False
to delete the existing DNS servers.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Indicates whether DNS servers should be used. Specify False
to delete the existing DNS servers.
sourcepub fn build(self) -> DnsServersOptionsModifyStructure
pub fn build(self) -> DnsServersOptionsModifyStructure
Consumes the builder and constructs a DnsServersOptionsModifyStructure
.
Trait Implementations§
source§impl Clone for DnsServersOptionsModifyStructureBuilder
impl Clone for DnsServersOptionsModifyStructureBuilder
source§fn clone(&self) -> DnsServersOptionsModifyStructureBuilder
fn clone(&self) -> DnsServersOptionsModifyStructureBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DnsServersOptionsModifyStructureBuilder
impl Default for DnsServersOptionsModifyStructureBuilder
source§fn default() -> DnsServersOptionsModifyStructureBuilder
fn default() -> DnsServersOptionsModifyStructureBuilder
source§impl PartialEq<DnsServersOptionsModifyStructureBuilder> for DnsServersOptionsModifyStructureBuilder
impl PartialEq<DnsServersOptionsModifyStructureBuilder> for DnsServersOptionsModifyStructureBuilder
source§fn eq(&self, other: &DnsServersOptionsModifyStructureBuilder) -> bool
fn eq(&self, other: &DnsServersOptionsModifyStructureBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.