#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct EcsCluster {
pub ecs_cluster_arn: ::std::option::Option<::std::string::String>,
pub ecs_cluster_name: ::std::option::Option<::std::string::String>,
pub stack_id: ::std::option::Option<::std::string::String>,
pub registered_at: ::std::option::Option<::std::string::String>,
}
impl EcsCluster {
pub fn ecs_cluster_arn(&self) -> ::std::option::Option<&str> {
self.ecs_cluster_arn.as_deref()
}
pub fn ecs_cluster_name(&self) -> ::std::option::Option<&str> {
self.ecs_cluster_name.as_deref()
}
pub fn stack_id(&self) -> ::std::option::Option<&str> {
self.stack_id.as_deref()
}
pub fn registered_at(&self) -> ::std::option::Option<&str> {
self.registered_at.as_deref()
}
}
impl EcsCluster {
pub fn builder() -> crate::types::builders::EcsClusterBuilder {
crate::types::builders::EcsClusterBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct EcsClusterBuilder {
pub(crate) ecs_cluster_arn: ::std::option::Option<::std::string::String>,
pub(crate) ecs_cluster_name: ::std::option::Option<::std::string::String>,
pub(crate) stack_id: ::std::option::Option<::std::string::String>,
pub(crate) registered_at: ::std::option::Option<::std::string::String>,
}
impl EcsClusterBuilder {
pub fn ecs_cluster_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ecs_cluster_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_ecs_cluster_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ecs_cluster_arn = input;
self
}
pub fn get_ecs_cluster_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.ecs_cluster_arn
}
pub fn ecs_cluster_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ecs_cluster_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_ecs_cluster_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ecs_cluster_name = input;
self
}
pub fn get_ecs_cluster_name(&self) -> &::std::option::Option<::std::string::String> {
&self.ecs_cluster_name
}
pub fn stack_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.stack_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_stack_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.stack_id = input;
self
}
pub fn get_stack_id(&self) -> &::std::option::Option<::std::string::String> {
&self.stack_id
}
pub fn registered_at(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.registered_at = ::std::option::Option::Some(input.into());
self
}
pub fn set_registered_at(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.registered_at = input;
self
}
pub fn get_registered_at(&self) -> &::std::option::Option<::std::string::String> {
&self.registered_at
}
pub fn build(self) -> crate::types::EcsCluster {
crate::types::EcsCluster {
ecs_cluster_arn: self.ecs_cluster_arn,
ecs_cluster_name: self.ecs_cluster_name,
stack_id: self.stack_id,
registered_at: self.registered_at,
}
}
}