#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateNodeOutput {
pub arn: ::std::option::Option<::std::string::String>,
pub channel_placement_groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub cluster_id: ::std::option::Option<::std::string::String>,
pub connection_state: ::std::option::Option<crate::types::NodeConnectionState>,
pub id: ::std::option::Option<::std::string::String>,
pub instance_arn: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
pub node_interface_mappings: ::std::option::Option<::std::vec::Vec<crate::types::NodeInterfaceMapping>>,
pub role: ::std::option::Option<crate::types::NodeRole>,
pub state: ::std::option::Option<crate::types::NodeState>,
_request_id: Option<String>,
}
impl UpdateNodeOutput {
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
pub fn channel_placement_groups(&self) -> &[::std::string::String] {
self.channel_placement_groups.as_deref().unwrap_or_default()
}
pub fn cluster_id(&self) -> ::std::option::Option<&str> {
self.cluster_id.as_deref()
}
pub fn connection_state(&self) -> ::std::option::Option<&crate::types::NodeConnectionState> {
self.connection_state.as_ref()
}
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn instance_arn(&self) -> ::std::option::Option<&str> {
self.instance_arn.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn node_interface_mappings(&self) -> &[crate::types::NodeInterfaceMapping] {
self.node_interface_mappings.as_deref().unwrap_or_default()
}
pub fn role(&self) -> ::std::option::Option<&crate::types::NodeRole> {
self.role.as_ref()
}
pub fn state(&self) -> ::std::option::Option<&crate::types::NodeState> {
self.state.as_ref()
}
}
impl ::aws_types::request_id::RequestId for UpdateNodeOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateNodeOutput {
pub fn builder() -> crate::operation::update_node::builders::UpdateNodeOutputBuilder {
crate::operation::update_node::builders::UpdateNodeOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateNodeOutputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) channel_placement_groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) cluster_id: ::std::option::Option<::std::string::String>,
pub(crate) connection_state: ::std::option::Option<crate::types::NodeConnectionState>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) instance_arn: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) node_interface_mappings: ::std::option::Option<::std::vec::Vec<crate::types::NodeInterfaceMapping>>,
pub(crate) role: ::std::option::Option<crate::types::NodeRole>,
pub(crate) state: ::std::option::Option<crate::types::NodeState>,
_request_id: Option<String>,
}
impl UpdateNodeOutputBuilder {
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
pub fn channel_placement_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.channel_placement_groups.unwrap_or_default();
v.push(input.into());
self.channel_placement_groups = ::std::option::Option::Some(v);
self
}
pub fn set_channel_placement_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.channel_placement_groups = input;
self
}
pub fn get_channel_placement_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.channel_placement_groups
}
pub fn cluster_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_cluster_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_id = input;
self
}
pub fn get_cluster_id(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_id
}
pub fn connection_state(mut self, input: crate::types::NodeConnectionState) -> Self {
self.connection_state = ::std::option::Option::Some(input);
self
}
pub fn set_connection_state(mut self, input: ::std::option::Option<crate::types::NodeConnectionState>) -> Self {
self.connection_state = input;
self
}
pub fn get_connection_state(&self) -> &::std::option::Option<crate::types::NodeConnectionState> {
&self.connection_state
}
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 instance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.instance_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_instance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.instance_arn = input;
self
}
pub fn get_instance_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.instance_arn
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn node_interface_mappings(mut self, input: crate::types::NodeInterfaceMapping) -> Self {
let mut v = self.node_interface_mappings.unwrap_or_default();
v.push(input);
self.node_interface_mappings = ::std::option::Option::Some(v);
self
}
pub fn set_node_interface_mappings(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::NodeInterfaceMapping>>) -> Self {
self.node_interface_mappings = input;
self
}
pub fn get_node_interface_mappings(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::NodeInterfaceMapping>> {
&self.node_interface_mappings
}
pub fn role(mut self, input: crate::types::NodeRole) -> Self {
self.role = ::std::option::Option::Some(input);
self
}
pub fn set_role(mut self, input: ::std::option::Option<crate::types::NodeRole>) -> Self {
self.role = input;
self
}
pub fn get_role(&self) -> &::std::option::Option<crate::types::NodeRole> {
&self.role
}
pub fn state(mut self, input: crate::types::NodeState) -> Self {
self.state = ::std::option::Option::Some(input);
self
}
pub fn set_state(mut self, input: ::std::option::Option<crate::types::NodeState>) -> Self {
self.state = input;
self
}
pub fn get_state(&self) -> &::std::option::Option<crate::types::NodeState> {
&self.state
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::update_node::UpdateNodeOutput {
crate::operation::update_node::UpdateNodeOutput {
arn: self.arn,
channel_placement_groups: self.channel_placement_groups,
cluster_id: self.cluster_id,
connection_state: self.connection_state,
id: self.id,
instance_arn: self.instance_arn,
name: self.name,
node_interface_mappings: self.node_interface_mappings,
role: self.role,
state: self.state,
_request_id: self._request_id,
}
}
}