#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Addon {
pub addon_name: ::std::option::Option<::std::string::String>,
pub cluster_name: ::std::option::Option<::std::string::String>,
pub status: ::std::option::Option<crate::types::AddonStatus>,
pub addon_version: ::std::option::Option<::std::string::String>,
pub health: ::std::option::Option<crate::types::AddonHealth>,
pub addon_arn: ::std::option::Option<::std::string::String>,
pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub modified_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub service_account_role_arn: ::std::option::Option<::std::string::String>,
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub publisher: ::std::option::Option<::std::string::String>,
pub owner: ::std::option::Option<::std::string::String>,
pub marketplace_information: ::std::option::Option<crate::types::MarketplaceInformation>,
pub configuration_values: ::std::option::Option<::std::string::String>,
pub pod_identity_associations: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub namespace_config: ::std::option::Option<crate::types::AddonNamespaceConfigResponse>,
}
impl Addon {
pub fn addon_name(&self) -> ::std::option::Option<&str> {
self.addon_name.as_deref()
}
pub fn cluster_name(&self) -> ::std::option::Option<&str> {
self.cluster_name.as_deref()
}
pub fn status(&self) -> ::std::option::Option<&crate::types::AddonStatus> {
self.status.as_ref()
}
pub fn addon_version(&self) -> ::std::option::Option<&str> {
self.addon_version.as_deref()
}
pub fn health(&self) -> ::std::option::Option<&crate::types::AddonHealth> {
self.health.as_ref()
}
pub fn addon_arn(&self) -> ::std::option::Option<&str> {
self.addon_arn.as_deref()
}
pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
pub fn modified_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.modified_at.as_ref()
}
pub fn service_account_role_arn(&self) -> ::std::option::Option<&str> {
self.service_account_role_arn.as_deref()
}
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
pub fn publisher(&self) -> ::std::option::Option<&str> {
self.publisher.as_deref()
}
pub fn owner(&self) -> ::std::option::Option<&str> {
self.owner.as_deref()
}
pub fn marketplace_information(&self) -> ::std::option::Option<&crate::types::MarketplaceInformation> {
self.marketplace_information.as_ref()
}
pub fn configuration_values(&self) -> ::std::option::Option<&str> {
self.configuration_values.as_deref()
}
pub fn pod_identity_associations(&self) -> &[::std::string::String] {
self.pod_identity_associations.as_deref().unwrap_or_default()
}
pub fn namespace_config(&self) -> ::std::option::Option<&crate::types::AddonNamespaceConfigResponse> {
self.namespace_config.as_ref()
}
}
impl Addon {
pub fn builder() -> crate::types::builders::AddonBuilder {
crate::types::builders::AddonBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct AddonBuilder {
pub(crate) addon_name: ::std::option::Option<::std::string::String>,
pub(crate) cluster_name: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::AddonStatus>,
pub(crate) addon_version: ::std::option::Option<::std::string::String>,
pub(crate) health: ::std::option::Option<crate::types::AddonHealth>,
pub(crate) addon_arn: ::std::option::Option<::std::string::String>,
pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) modified_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) service_account_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) publisher: ::std::option::Option<::std::string::String>,
pub(crate) owner: ::std::option::Option<::std::string::String>,
pub(crate) marketplace_information: ::std::option::Option<crate::types::MarketplaceInformation>,
pub(crate) configuration_values: ::std::option::Option<::std::string::String>,
pub(crate) pod_identity_associations: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) namespace_config: ::std::option::Option<crate::types::AddonNamespaceConfigResponse>,
}
impl AddonBuilder {
pub fn addon_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.addon_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_addon_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.addon_name = input;
self
}
pub fn get_addon_name(&self) -> &::std::option::Option<::std::string::String> {
&self.addon_name
}
pub fn cluster_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_cluster_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_name = input;
self
}
pub fn get_cluster_name(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_name
}
pub fn status(mut self, input: crate::types::AddonStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
pub fn set_status(mut self, input: ::std::option::Option<crate::types::AddonStatus>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<crate::types::AddonStatus> {
&self.status
}
pub fn addon_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.addon_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_addon_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.addon_version = input;
self
}
pub fn get_addon_version(&self) -> &::std::option::Option<::std::string::String> {
&self.addon_version
}
pub fn health(mut self, input: crate::types::AddonHealth) -> Self {
self.health = ::std::option::Option::Some(input);
self
}
pub fn set_health(mut self, input: ::std::option::Option<crate::types::AddonHealth>) -> Self {
self.health = input;
self
}
pub fn get_health(&self) -> &::std::option::Option<crate::types::AddonHealth> {
&self.health
}
pub fn addon_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.addon_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_addon_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.addon_arn = input;
self
}
pub fn get_addon_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.addon_arn
}
pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_at = ::std::option::Option::Some(input);
self
}
pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_at = input;
self
}
pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_at
}
pub fn modified_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.modified_at = ::std::option::Option::Some(input);
self
}
pub fn set_modified_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.modified_at = input;
self
}
pub fn get_modified_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.modified_at
}
pub fn service_account_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.service_account_role_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_service_account_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.service_account_role_arn = input;
self
}
pub fn get_service_account_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.service_account_role_arn
}
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
pub fn publisher(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.publisher = ::std::option::Option::Some(input.into());
self
}
pub fn set_publisher(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.publisher = input;
self
}
pub fn get_publisher(&self) -> &::std::option::Option<::std::string::String> {
&self.publisher
}
pub fn owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.owner = ::std::option::Option::Some(input.into());
self
}
pub fn set_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.owner = input;
self
}
pub fn get_owner(&self) -> &::std::option::Option<::std::string::String> {
&self.owner
}
pub fn marketplace_information(mut self, input: crate::types::MarketplaceInformation) -> Self {
self.marketplace_information = ::std::option::Option::Some(input);
self
}
pub fn set_marketplace_information(mut self, input: ::std::option::Option<crate::types::MarketplaceInformation>) -> Self {
self.marketplace_information = input;
self
}
pub fn get_marketplace_information(&self) -> &::std::option::Option<crate::types::MarketplaceInformation> {
&self.marketplace_information
}
pub fn configuration_values(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.configuration_values = ::std::option::Option::Some(input.into());
self
}
pub fn set_configuration_values(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.configuration_values = input;
self
}
pub fn get_configuration_values(&self) -> &::std::option::Option<::std::string::String> {
&self.configuration_values
}
pub fn pod_identity_associations(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.pod_identity_associations.unwrap_or_default();
v.push(input.into());
self.pod_identity_associations = ::std::option::Option::Some(v);
self
}
pub fn set_pod_identity_associations(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.pod_identity_associations = input;
self
}
pub fn get_pod_identity_associations(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.pod_identity_associations
}
pub fn namespace_config(mut self, input: crate::types::AddonNamespaceConfigResponse) -> Self {
self.namespace_config = ::std::option::Option::Some(input);
self
}
pub fn set_namespace_config(mut self, input: ::std::option::Option<crate::types::AddonNamespaceConfigResponse>) -> Self {
self.namespace_config = input;
self
}
pub fn get_namespace_config(&self) -> &::std::option::Option<crate::types::AddonNamespaceConfigResponse> {
&self.namespace_config
}
pub fn build(self) -> crate::types::Addon {
crate::types::Addon {
addon_name: self.addon_name,
cluster_name: self.cluster_name,
status: self.status,
addon_version: self.addon_version,
health: self.health,
addon_arn: self.addon_arn,
created_at: self.created_at,
modified_at: self.modified_at,
service_account_role_arn: self.service_account_role_arn,
tags: self.tags,
publisher: self.publisher,
owner: self.owner,
marketplace_information: self.marketplace_information,
configuration_values: self.configuration_values,
pod_identity_associations: self.pod_identity_associations,
namespace_config: self.namespace_config,
}
}
}