#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Node {
pub capture_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub id: ::std::option::Option<::std::string::String>,
pub owner: ::std::option::Option<crate::types::NodeOwnerInfo>,
pub region: ::std::option::Option<::std::string::String>,
pub node_type: ::std::option::Option<crate::types::NodeType>,
}
impl Node {
pub fn capture_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.capture_time.as_ref()
}
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn owner(&self) -> ::std::option::Option<&crate::types::NodeOwnerInfo> {
self.owner.as_ref()
}
pub fn region(&self) -> ::std::option::Option<&str> {
self.region.as_deref()
}
pub fn node_type(&self) -> ::std::option::Option<&crate::types::NodeType> {
self.node_type.as_ref()
}
}
impl Node {
pub fn builder() -> crate::types::builders::NodeBuilder {
crate::types::builders::NodeBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct NodeBuilder {
pub(crate) capture_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) owner: ::std::option::Option<crate::types::NodeOwnerInfo>,
pub(crate) region: ::std::option::Option<::std::string::String>,
pub(crate) node_type: ::std::option::Option<crate::types::NodeType>,
}
impl NodeBuilder {
pub fn capture_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.capture_time = ::std::option::Option::Some(input);
self
}
pub fn set_capture_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.capture_time = input;
self
}
pub fn get_capture_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.capture_time
}
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn owner(mut self, input: crate::types::NodeOwnerInfo) -> Self {
self.owner = ::std::option::Option::Some(input);
self
}
pub fn set_owner(mut self, input: ::std::option::Option<crate::types::NodeOwnerInfo>) -> Self {
self.owner = input;
self
}
pub fn get_owner(&self) -> &::std::option::Option<crate::types::NodeOwnerInfo> {
&self.owner
}
pub fn region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.region = ::std::option::Option::Some(input.into());
self
}
pub fn set_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.region = input;
self
}
pub fn get_region(&self) -> &::std::option::Option<::std::string::String> {
&self.region
}
pub fn node_type(mut self, input: crate::types::NodeType) -> Self {
self.node_type = ::std::option::Option::Some(input);
self
}
pub fn set_node_type(mut self, input: ::std::option::Option<crate::types::NodeType>) -> Self {
self.node_type = input;
self
}
pub fn get_node_type(&self) -> &::std::option::Option<crate::types::NodeType> {
&self.node_type
}
pub fn build(self) -> crate::types::Node {
crate::types::Node {
capture_time: self.capture_time,
id: self.id,
owner: self.owner,
region: self.region,
node_type: self.node_type,
}
}
}