#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteClusterOutput {
pub arn: ::std::option::Option<::std::string::String>,
pub channel_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub cluster_type: ::std::option::Option<crate::types::ClusterType>,
pub id: ::std::option::Option<::std::string::String>,
pub instance_role_arn: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
pub network_settings: ::std::option::Option<crate::types::ClusterNetworkSettings>,
pub state: ::std::option::Option<crate::types::ClusterState>,
_request_id: Option<String>,
}
impl DeleteClusterOutput {
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
pub fn channel_ids(&self) -> &[::std::string::String] {
self.channel_ids.as_deref().unwrap_or_default()
}
pub fn cluster_type(&self) -> ::std::option::Option<&crate::types::ClusterType> {
self.cluster_type.as_ref()
}
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn instance_role_arn(&self) -> ::std::option::Option<&str> {
self.instance_role_arn.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn network_settings(&self) -> ::std::option::Option<&crate::types::ClusterNetworkSettings> {
self.network_settings.as_ref()
}
pub fn state(&self) -> ::std::option::Option<&crate::types::ClusterState> {
self.state.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DeleteClusterOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeleteClusterOutput {
pub fn builder() -> crate::operation::delete_cluster::builders::DeleteClusterOutputBuilder {
crate::operation::delete_cluster::builders::DeleteClusterOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteClusterOutputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) channel_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) cluster_type: ::std::option::Option<crate::types::ClusterType>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) instance_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) network_settings: ::std::option::Option<crate::types::ClusterNetworkSettings>,
pub(crate) state: ::std::option::Option<crate::types::ClusterState>,
_request_id: Option<String>,
}
impl DeleteClusterOutputBuilder {
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_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.channel_ids.unwrap_or_default();
v.push(input.into());
self.channel_ids = ::std::option::Option::Some(v);
self
}
pub fn set_channel_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.channel_ids = input;
self
}
pub fn get_channel_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.channel_ids
}
pub fn cluster_type(mut self, input: crate::types::ClusterType) -> Self {
self.cluster_type = ::std::option::Option::Some(input);
self
}
pub fn set_cluster_type(mut self, input: ::std::option::Option<crate::types::ClusterType>) -> Self {
self.cluster_type = input;
self
}
pub fn get_cluster_type(&self) -> &::std::option::Option<crate::types::ClusterType> {
&self.cluster_type
}
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_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.instance_role_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_instance_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.instance_role_arn = input;
self
}
pub fn get_instance_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.instance_role_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 network_settings(mut self, input: crate::types::ClusterNetworkSettings) -> Self {
self.network_settings = ::std::option::Option::Some(input);
self
}
pub fn set_network_settings(mut self, input: ::std::option::Option<crate::types::ClusterNetworkSettings>) -> Self {
self.network_settings = input;
self
}
pub fn get_network_settings(&self) -> &::std::option::Option<crate::types::ClusterNetworkSettings> {
&self.network_settings
}
pub fn state(mut self, input: crate::types::ClusterState) -> Self {
self.state = ::std::option::Option::Some(input);
self
}
pub fn set_state(mut self, input: ::std::option::Option<crate::types::ClusterState>) -> Self {
self.state = input;
self
}
pub fn get_state(&self) -> &::std::option::Option<crate::types::ClusterState> {
&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::delete_cluster::DeleteClusterOutput {
crate::operation::delete_cluster::DeleteClusterOutput {
arn: self.arn,
channel_ids: self.channel_ids,
cluster_type: self.cluster_type,
id: self.id,
instance_role_arn: self.instance_role_arn,
name: self.name,
network_settings: self.network_settings,
state: self.state,
_request_id: self._request_id,
}
}
}