271 lines
9.5 KiB
C
271 lines
9.5 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/eks/EKS_EXPORTS.h>
|
|||
|
|
#include <aws/eks/EKSRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/eks/model/UpdateLabelsPayload.h>
|
|||
|
|
#include <aws/eks/model/NodegroupScalingConfig.h>
|
|||
|
|
#include <utility>
|
|||
|
|
#include <aws/core/utils/UUID.h>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace EKS
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
*/
|
|||
|
|
class AWS_EKS_API UpdateNodegroupConfigRequest : public EKSRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
UpdateNodegroupConfigRequest();
|
|||
|
|
|
|||
|
|
// Service request name is the Operation name which will send this request out,
|
|||
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|||
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|||
|
|
// so we can not get operation's name from response.
|
|||
|
|
inline virtual const char* GetServiceRequestName() const override { return "UpdateNodegroupConfig"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Amazon EKS cluster that the managed node group resides
|
|||
|
|
* in.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetClusterName() const{ return m_clusterName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Amazon EKS cluster that the managed node group resides
|
|||
|
|
* in.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Amazon EKS cluster that the managed node group resides
|
|||
|
|
* in.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Amazon EKS cluster that the managed node group resides
|
|||
|
|
* in.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Amazon EKS cluster that the managed node group resides
|
|||
|
|
* in.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Amazon EKS cluster that the managed node group resides
|
|||
|
|
* in.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Amazon EKS cluster that the managed node group resides
|
|||
|
|
* in.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Amazon EKS cluster that the managed node group resides
|
|||
|
|
* in.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the managed node group to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetNodegroupName() const{ return m_nodegroupName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the managed node group to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool NodegroupNameHasBeenSet() const { return m_nodegroupNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the managed node group to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNodegroupName(const Aws::String& value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the managed node group to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNodegroupName(Aws::String&& value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the managed node group to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNodegroupName(const char* value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the managed node group to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithNodegroupName(const Aws::String& value) { SetNodegroupName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the managed node group to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithNodegroupName(Aws::String&& value) { SetNodegroupName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the managed node group to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithNodegroupName(const char* value) { SetNodegroupName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Kubernetes labels to be applied to the nodes in the node group after the
|
|||
|
|
* update.</p>
|
|||
|
|
*/
|
|||
|
|
inline const UpdateLabelsPayload& GetLabels() const{ return m_labels; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Kubernetes labels to be applied to the nodes in the node group after the
|
|||
|
|
* update.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Kubernetes labels to be applied to the nodes in the node group after the
|
|||
|
|
* update.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLabels(const UpdateLabelsPayload& value) { m_labelsHasBeenSet = true; m_labels = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Kubernetes labels to be applied to the nodes in the node group after the
|
|||
|
|
* update.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLabels(UpdateLabelsPayload&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Kubernetes labels to be applied to the nodes in the node group after the
|
|||
|
|
* update.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithLabels(const UpdateLabelsPayload& value) { SetLabels(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Kubernetes labels to be applied to the nodes in the node group after the
|
|||
|
|
* update.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithLabels(UpdateLabelsPayload&& value) { SetLabels(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The scaling configuration details for the Auto Scaling group after the
|
|||
|
|
* update.</p>
|
|||
|
|
*/
|
|||
|
|
inline const NodegroupScalingConfig& GetScalingConfig() const{ return m_scalingConfig; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The scaling configuration details for the Auto Scaling group after the
|
|||
|
|
* update.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The scaling configuration details for the Auto Scaling group after the
|
|||
|
|
* update.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetScalingConfig(const NodegroupScalingConfig& value) { m_scalingConfigHasBeenSet = true; m_scalingConfig = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The scaling configuration details for the Auto Scaling group after the
|
|||
|
|
* update.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetScalingConfig(NodegroupScalingConfig&& value) { m_scalingConfigHasBeenSet = true; m_scalingConfig = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The scaling configuration details for the Auto Scaling group after the
|
|||
|
|
* update.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithScalingConfig(const NodegroupScalingConfig& value) { SetScalingConfig(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The scaling configuration details for the Auto Scaling group after the
|
|||
|
|
* update.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithScalingConfig(NodegroupScalingConfig&& value) { SetScalingConfig(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|||
|
|
* of the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|||
|
|
* of the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|||
|
|
* of the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|||
|
|
* of the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|||
|
|
* of the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|||
|
|
* of the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|||
|
|
* of the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|||
|
|
* of the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateNodegroupConfigRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_clusterName;
|
|||
|
|
bool m_clusterNameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_nodegroupName;
|
|||
|
|
bool m_nodegroupNameHasBeenSet;
|
|||
|
|
|
|||
|
|
UpdateLabelsPayload m_labels;
|
|||
|
|
bool m_labelsHasBeenSet;
|
|||
|
|
|
|||
|
|
NodegroupScalingConfig m_scalingConfig;
|
|||
|
|
bool m_scalingConfigHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_clientRequestToken;
|
|||
|
|
bool m_clientRequestTokenHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace EKS
|
|||
|
|
} // namespace Aws
|