aws-sdk-eks 1.129.0

AWS SDK for Amazon Elastic Kubernetes Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateNodegroupConfigInput {
    /// <p>The name of your cluster.</p>
    pub cluster_name: ::std::option::Option<::std::string::String>,
    /// <p>The name of the managed node group to update.</p>
    pub nodegroup_name: ::std::option::Option<::std::string::String>,
    /// <p>The Kubernetes <code>labels</code> to apply to the nodes in the node group after the update.</p>
    pub labels: ::std::option::Option<crate::types::UpdateLabelsPayload>,
    /// <p>The Kubernetes taints to be applied to the nodes in the node group after the update. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/node-taints-managed-node-groups.html">Node taints on managed node groups</a>.</p>
    pub taints: ::std::option::Option<crate::types::UpdateTaintsPayload>,
    /// <p>The scaling configuration details for the Auto Scaling group after the update.</p>
    pub scaling_config: ::std::option::Option<crate::types::NodegroupScalingConfig>,
    /// <p>The node group update configuration.</p>
    pub update_config: ::std::option::Option<crate::types::NodegroupUpdateConfig>,
    /// <p>The node auto repair configuration for the node group.</p>
    pub node_repair_config: ::std::option::Option<crate::types::NodeRepairConfig>,
    /// <p>The warm pool configuration to apply to the node group. You can use this to add a warm pool to an existing node group or modify the settings of an existing warm pool.</p>
    pub warm_pool_config: ::std::option::Option<crate::types::WarmPoolConfig>,
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
    pub client_request_token: ::std::option::Option<::std::string::String>,
}
impl UpdateNodegroupConfigInput {
    /// <p>The name of your cluster.</p>
    pub fn cluster_name(&self) -> ::std::option::Option<&str> {
        self.cluster_name.as_deref()
    }
    /// <p>The name of the managed node group to update.</p>
    pub fn nodegroup_name(&self) -> ::std::option::Option<&str> {
        self.nodegroup_name.as_deref()
    }
    /// <p>The Kubernetes <code>labels</code> to apply to the nodes in the node group after the update.</p>
    pub fn labels(&self) -> ::std::option::Option<&crate::types::UpdateLabelsPayload> {
        self.labels.as_ref()
    }
    /// <p>The Kubernetes taints to be applied to the nodes in the node group after the update. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/node-taints-managed-node-groups.html">Node taints on managed node groups</a>.</p>
    pub fn taints(&self) -> ::std::option::Option<&crate::types::UpdateTaintsPayload> {
        self.taints.as_ref()
    }
    /// <p>The scaling configuration details for the Auto Scaling group after the update.</p>
    pub fn scaling_config(&self) -> ::std::option::Option<&crate::types::NodegroupScalingConfig> {
        self.scaling_config.as_ref()
    }
    /// <p>The node group update configuration.</p>
    pub fn update_config(&self) -> ::std::option::Option<&crate::types::NodegroupUpdateConfig> {
        self.update_config.as_ref()
    }
    /// <p>The node auto repair configuration for the node group.</p>
    pub fn node_repair_config(&self) -> ::std::option::Option<&crate::types::NodeRepairConfig> {
        self.node_repair_config.as_ref()
    }
    /// <p>The warm pool configuration to apply to the node group. You can use this to add a warm pool to an existing node group or modify the settings of an existing warm pool.</p>
    pub fn warm_pool_config(&self) -> ::std::option::Option<&crate::types::WarmPoolConfig> {
        self.warm_pool_config.as_ref()
    }
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
    pub fn client_request_token(&self) -> ::std::option::Option<&str> {
        self.client_request_token.as_deref()
    }
}
impl UpdateNodegroupConfigInput {
    /// Creates a new builder-style object to manufacture [`UpdateNodegroupConfigInput`](crate::operation::update_nodegroup_config::UpdateNodegroupConfigInput).
    pub fn builder() -> crate::operation::update_nodegroup_config::builders::UpdateNodegroupConfigInputBuilder {
        crate::operation::update_nodegroup_config::builders::UpdateNodegroupConfigInputBuilder::default()
    }
}

/// A builder for [`UpdateNodegroupConfigInput`](crate::operation::update_nodegroup_config::UpdateNodegroupConfigInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateNodegroupConfigInputBuilder {
    pub(crate) cluster_name: ::std::option::Option<::std::string::String>,
    pub(crate) nodegroup_name: ::std::option::Option<::std::string::String>,
    pub(crate) labels: ::std::option::Option<crate::types::UpdateLabelsPayload>,
    pub(crate) taints: ::std::option::Option<crate::types::UpdateTaintsPayload>,
    pub(crate) scaling_config: ::std::option::Option<crate::types::NodegroupScalingConfig>,
    pub(crate) update_config: ::std::option::Option<crate::types::NodegroupUpdateConfig>,
    pub(crate) node_repair_config: ::std::option::Option<crate::types::NodeRepairConfig>,
    pub(crate) warm_pool_config: ::std::option::Option<crate::types::WarmPoolConfig>,
    pub(crate) client_request_token: ::std::option::Option<::std::string::String>,
}
impl UpdateNodegroupConfigInputBuilder {
    /// <p>The name of your cluster.</p>
    /// This field is required.
    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
    }
    /// <p>The name of your cluster.</p>
    pub fn set_cluster_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.cluster_name = input;
        self
    }
    /// <p>The name of your cluster.</p>
    pub fn get_cluster_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.cluster_name
    }
    /// <p>The name of the managed node group to update.</p>
    /// This field is required.
    pub fn nodegroup_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.nodegroup_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the managed node group to update.</p>
    pub fn set_nodegroup_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.nodegroup_name = input;
        self
    }
    /// <p>The name of the managed node group to update.</p>
    pub fn get_nodegroup_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.nodegroup_name
    }
    /// <p>The Kubernetes <code>labels</code> to apply to the nodes in the node group after the update.</p>
    pub fn labels(mut self, input: crate::types::UpdateLabelsPayload) -> Self {
        self.labels = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Kubernetes <code>labels</code> to apply to the nodes in the node group after the update.</p>
    pub fn set_labels(mut self, input: ::std::option::Option<crate::types::UpdateLabelsPayload>) -> Self {
        self.labels = input;
        self
    }
    /// <p>The Kubernetes <code>labels</code> to apply to the nodes in the node group after the update.</p>
    pub fn get_labels(&self) -> &::std::option::Option<crate::types::UpdateLabelsPayload> {
        &self.labels
    }
    /// <p>The Kubernetes taints to be applied to the nodes in the node group after the update. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/node-taints-managed-node-groups.html">Node taints on managed node groups</a>.</p>
    pub fn taints(mut self, input: crate::types::UpdateTaintsPayload) -> Self {
        self.taints = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Kubernetes taints to be applied to the nodes in the node group after the update. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/node-taints-managed-node-groups.html">Node taints on managed node groups</a>.</p>
    pub fn set_taints(mut self, input: ::std::option::Option<crate::types::UpdateTaintsPayload>) -> Self {
        self.taints = input;
        self
    }
    /// <p>The Kubernetes taints to be applied to the nodes in the node group after the update. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/node-taints-managed-node-groups.html">Node taints on managed node groups</a>.</p>
    pub fn get_taints(&self) -> &::std::option::Option<crate::types::UpdateTaintsPayload> {
        &self.taints
    }
    /// <p>The scaling configuration details for the Auto Scaling group after the update.</p>
    pub fn scaling_config(mut self, input: crate::types::NodegroupScalingConfig) -> Self {
        self.scaling_config = ::std::option::Option::Some(input);
        self
    }
    /// <p>The scaling configuration details for the Auto Scaling group after the update.</p>
    pub fn set_scaling_config(mut self, input: ::std::option::Option<crate::types::NodegroupScalingConfig>) -> Self {
        self.scaling_config = input;
        self
    }
    /// <p>The scaling configuration details for the Auto Scaling group after the update.</p>
    pub fn get_scaling_config(&self) -> &::std::option::Option<crate::types::NodegroupScalingConfig> {
        &self.scaling_config
    }
    /// <p>The node group update configuration.</p>
    pub fn update_config(mut self, input: crate::types::NodegroupUpdateConfig) -> Self {
        self.update_config = ::std::option::Option::Some(input);
        self
    }
    /// <p>The node group update configuration.</p>
    pub fn set_update_config(mut self, input: ::std::option::Option<crate::types::NodegroupUpdateConfig>) -> Self {
        self.update_config = input;
        self
    }
    /// <p>The node group update configuration.</p>
    pub fn get_update_config(&self) -> &::std::option::Option<crate::types::NodegroupUpdateConfig> {
        &self.update_config
    }
    /// <p>The node auto repair configuration for the node group.</p>
    pub fn node_repair_config(mut self, input: crate::types::NodeRepairConfig) -> Self {
        self.node_repair_config = ::std::option::Option::Some(input);
        self
    }
    /// <p>The node auto repair configuration for the node group.</p>
    pub fn set_node_repair_config(mut self, input: ::std::option::Option<crate::types::NodeRepairConfig>) -> Self {
        self.node_repair_config = input;
        self
    }
    /// <p>The node auto repair configuration for the node group.</p>
    pub fn get_node_repair_config(&self) -> &::std::option::Option<crate::types::NodeRepairConfig> {
        &self.node_repair_config
    }
    /// <p>The warm pool configuration to apply to the node group. You can use this to add a warm pool to an existing node group or modify the settings of an existing warm pool.</p>
    pub fn warm_pool_config(mut self, input: crate::types::WarmPoolConfig) -> Self {
        self.warm_pool_config = ::std::option::Option::Some(input);
        self
    }
    /// <p>The warm pool configuration to apply to the node group. You can use this to add a warm pool to an existing node group or modify the settings of an existing warm pool.</p>
    pub fn set_warm_pool_config(mut self, input: ::std::option::Option<crate::types::WarmPoolConfig>) -> Self {
        self.warm_pool_config = input;
        self
    }
    /// <p>The warm pool configuration to apply to the node group. You can use this to add a warm pool to an existing node group or modify the settings of an existing warm pool.</p>
    pub fn get_warm_pool_config(&self) -> &::std::option::Option<crate::types::WarmPoolConfig> {
        &self.warm_pool_config
    }
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
    pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_request_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
    pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_request_token = input;
        self
    }
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
    pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_request_token
    }
    /// Consumes the builder and constructs a [`UpdateNodegroupConfigInput`](crate::operation::update_nodegroup_config::UpdateNodegroupConfigInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_nodegroup_config::UpdateNodegroupConfigInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_nodegroup_config::UpdateNodegroupConfigInput {
            cluster_name: self.cluster_name,
            nodegroup_name: self.nodegroup_name,
            labels: self.labels,
            taints: self.taints,
            scaling_config: self.scaling_config,
            update_config: self.update_config,
            node_repair_config: self.node_repair_config,
            warm_pool_config: self.warm_pool_config,
            client_request_token: self.client_request_token,
        })
    }
}