Struct aws_sdk_datasync::types::builders::HdfsNameNodeBuilder
source · #[non_exhaustive]pub struct HdfsNameNodeBuilder { /* private fields */ }
Expand description
A builder for HdfsNameNode
.
Implementations§
source§impl HdfsNameNodeBuilder
impl HdfsNameNodeBuilder
sourcepub fn hostname(self, input: impl Into<String>) -> Self
pub fn hostname(self, input: impl Into<String>) -> Self
The hostname of the NameNode in the HDFS cluster. This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that's installed on-premises uses this hostname to communicate with the NameNode in the network.
This field is required.sourcepub fn set_hostname(self, input: Option<String>) -> Self
pub fn set_hostname(self, input: Option<String>) -> Self
The hostname of the NameNode in the HDFS cluster. This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that's installed on-premises uses this hostname to communicate with the NameNode in the network.
sourcepub fn get_hostname(&self) -> &Option<String>
pub fn get_hostname(&self) -> &Option<String>
The hostname of the NameNode in the HDFS cluster. This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that's installed on-premises uses this hostname to communicate with the NameNode in the network.
sourcepub fn port(self, input: i32) -> Self
pub fn port(self, input: i32) -> Self
The port that the NameNode uses to listen to client requests.
This field is required.sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
The port that the NameNode uses to listen to client requests.
sourcepub fn get_port(&self) -> &Option<i32>
pub fn get_port(&self) -> &Option<i32>
The port that the NameNode uses to listen to client requests.
sourcepub fn build(self) -> Result<HdfsNameNode, BuildError>
pub fn build(self) -> Result<HdfsNameNode, BuildError>
Consumes the builder and constructs a HdfsNameNode
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for HdfsNameNodeBuilder
impl Clone for HdfsNameNodeBuilder
source§fn clone(&self) -> HdfsNameNodeBuilder
fn clone(&self) -> HdfsNameNodeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HdfsNameNodeBuilder
impl Debug for HdfsNameNodeBuilder
source§impl Default for HdfsNameNodeBuilder
impl Default for HdfsNameNodeBuilder
source§fn default() -> HdfsNameNodeBuilder
fn default() -> HdfsNameNodeBuilder
source§impl PartialEq for HdfsNameNodeBuilder
impl PartialEq for HdfsNameNodeBuilder
source§fn eq(&self, other: &HdfsNameNodeBuilder) -> bool
fn eq(&self, other: &HdfsNameNodeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.