AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateClusterSoftwareRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/DeploymentConfiguration.h>
12#include <aws/sagemaker/model/UpdateClusterSoftwareInstanceGroupSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API UpdateClusterSoftwareRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateClusterSoftware"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetClusterName() const { return m_clusterName; }
42 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
43 template <typename ClusterNameT = Aws::String>
44 void SetClusterName(ClusterNameT&& value) {
45 m_clusterNameHasBeenSet = true;
46 m_clusterName = std::forward<ClusterNameT>(value);
47 }
48 template <typename ClusterNameT = Aws::String>
50 SetClusterName(std::forward<ClusterNameT>(value));
51 return *this;
52 }
54
56
60 inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
61 template <typename InstanceGroupsT = Aws::Vector<UpdateClusterSoftwareInstanceGroupSpecification>>
62 void SetInstanceGroups(InstanceGroupsT&& value) {
63 m_instanceGroupsHasBeenSet = true;
64 m_instanceGroups = std::forward<InstanceGroupsT>(value);
65 }
66 template <typename InstanceGroupsT = Aws::Vector<UpdateClusterSoftwareInstanceGroupSpecification>>
68 SetInstanceGroups(std::forward<InstanceGroupsT>(value));
69 return *this;
70 }
71 template <typename InstanceGroupsT = UpdateClusterSoftwareInstanceGroupSpecification>
73 m_instanceGroupsHasBeenSet = true;
74 m_instanceGroups.emplace_back(std::forward<InstanceGroupsT>(value));
75 return *this;
76 }
78
80
83 inline const DeploymentConfiguration& GetDeploymentConfig() const { return m_deploymentConfig; }
84 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
85 template <typename DeploymentConfigT = DeploymentConfiguration>
86 void SetDeploymentConfig(DeploymentConfigT&& value) {
87 m_deploymentConfigHasBeenSet = true;
88 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
89 }
90 template <typename DeploymentConfigT = DeploymentConfiguration>
92 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
93 return *this;
94 }
96
98
116 inline const Aws::String& GetImageId() const { return m_imageId; }
117 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
118 template <typename ImageIdT = Aws::String>
119 void SetImageId(ImageIdT&& value) {
120 m_imageIdHasBeenSet = true;
121 m_imageId = std::forward<ImageIdT>(value);
122 }
123 template <typename ImageIdT = Aws::String>
125 SetImageId(std::forward<ImageIdT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_clusterName;
131
133
134 DeploymentConfiguration m_deploymentConfig;
135
136 Aws::String m_imageId;
137 bool m_clusterNameHasBeenSet = false;
138 bool m_instanceGroupsHasBeenSet = false;
139 bool m_deploymentConfigHasBeenSet = false;
140 bool m_imageIdHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace SageMaker
145} // namespace Aws
const Aws::Vector< UpdateClusterSoftwareInstanceGroupSpecification > & GetInstanceGroups() const
AWS_SAGEMAKER_API UpdateClusterSoftwareRequest()=default
UpdateClusterSoftwareRequest & WithImageId(ImageIdT &&value)
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