AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateClusterSoftwareRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/DeploymentConfiguration.h>
12#include <aws/sagemaker/model/UpdateClusterSoftwareInstanceGroupSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API UpdateClusterSoftwareRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateClusterSoftware"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetClusterName() const { return m_clusterName; }
46 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
47 template<typename ClusterNameT = Aws::String>
48 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
49 template<typename ClusterNameT = Aws::String>
50 UpdateClusterSoftwareRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
52
54
58 inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
59 template<typename InstanceGroupsT = Aws::Vector<UpdateClusterSoftwareInstanceGroupSpecification>>
60 void SetInstanceGroups(InstanceGroupsT&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::forward<InstanceGroupsT>(value); }
61 template<typename InstanceGroupsT = Aws::Vector<UpdateClusterSoftwareInstanceGroupSpecification>>
62 UpdateClusterSoftwareRequest& WithInstanceGroups(InstanceGroupsT&& value) { SetInstanceGroups(std::forward<InstanceGroupsT>(value)); return *this;}
63 template<typename InstanceGroupsT = UpdateClusterSoftwareInstanceGroupSpecification>
64 UpdateClusterSoftwareRequest& AddInstanceGroups(InstanceGroupsT&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.emplace_back(std::forward<InstanceGroupsT>(value)); return *this; }
66
68
71 inline const DeploymentConfiguration& GetDeploymentConfig() const { return m_deploymentConfig; }
72 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
73 template<typename DeploymentConfigT = DeploymentConfiguration>
74 void SetDeploymentConfig(DeploymentConfigT&& value) { m_deploymentConfigHasBeenSet = true; m_deploymentConfig = std::forward<DeploymentConfigT>(value); }
75 template<typename DeploymentConfigT = DeploymentConfiguration>
76 UpdateClusterSoftwareRequest& WithDeploymentConfig(DeploymentConfigT&& value) { SetDeploymentConfig(std::forward<DeploymentConfigT>(value)); return *this;}
78 private:
79
80 Aws::String m_clusterName;
81 bool m_clusterNameHasBeenSet = false;
82
84 bool m_instanceGroupsHasBeenSet = false;
85
86 DeploymentConfiguration m_deploymentConfig;
87 bool m_deploymentConfigHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SageMaker
92} // namespace Aws
const Aws::Vector< UpdateClusterSoftwareInstanceGroupSpecification > & GetInstanceGroups() const
AWS_SAGEMAKER_API UpdateClusterSoftwareRequest()=default
UpdateClusterSoftwareRequest & AddInstanceGroups(InstanceGroupsT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateClusterSoftwareRequest & WithInstanceGroups(InstanceGroupsT &&value)
UpdateClusterSoftwareRequest & WithDeploymentConfig(DeploymentConfigT &&value)
const DeploymentConfiguration & GetDeploymentConfig() const
UpdateClusterSoftwareRequest & WithClusterName(ClusterNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector