pub struct Builder { /* private fields */ }
Expand description
A builder for DnsServersOptionsModifyStructure
.
Implementations§
source§impl Builder
impl Builder
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 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 build(self) -> DnsServersOptionsModifyStructure
pub fn build(self) -> DnsServersOptionsModifyStructure
Consumes the builder and constructs a DnsServersOptionsModifyStructure
.