AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
CreateClusterSchedulerConfigRequest.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/SchedulerConfig.h>
12#include <aws/sagemaker/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API CreateClusterSchedulerConfigRequest() = 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 "CreateClusterSchedulerConfig"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
61 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
62 template <typename ClusterArnT = Aws::String>
63 void SetClusterArn(ClusterArnT&& value) {
64 m_clusterArnHasBeenSet = true;
65 m_clusterArn = std::forward<ClusterArnT>(value);
66 }
67 template <typename ClusterArnT = Aws::String>
69 SetClusterArn(std::forward<ClusterArnT>(value));
70 return *this;
71 }
73
75
78 inline const SchedulerConfig& GetSchedulerConfig() const { return m_schedulerConfig; }
79 inline bool SchedulerConfigHasBeenSet() const { return m_schedulerConfigHasBeenSet; }
80 template <typename SchedulerConfigT = SchedulerConfig>
81 void SetSchedulerConfig(SchedulerConfigT&& value) {
82 m_schedulerConfigHasBeenSet = true;
83 m_schedulerConfig = std::forward<SchedulerConfigT>(value);
84 }
85 template <typename SchedulerConfigT = SchedulerConfig>
87 SetSchedulerConfig(std::forward<SchedulerConfigT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template <typename TagsT = Aws::Vector<Tag>>
117 void SetTags(TagsT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags = std::forward<TagsT>(value);
120 }
121 template <typename TagsT = Aws::Vector<Tag>>
123 SetTags(std::forward<TagsT>(value));
124 return *this;
125 }
126 template <typename TagsT = Tag>
128 m_tagsHasBeenSet = true;
129 m_tags.emplace_back(std::forward<TagsT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_name;
135
136 Aws::String m_clusterArn;
137
138 SchedulerConfig m_schedulerConfig;
139
140 Aws::String m_description;
141
142 Aws::Vector<Tag> m_tags;
143 bool m_nameHasBeenSet = false;
144 bool m_clusterArnHasBeenSet = false;
145 bool m_schedulerConfigHasBeenSet = false;
146 bool m_descriptionHasBeenSet = false;
147 bool m_tagsHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace SageMaker
152} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateClusterSchedulerConfigRequest & WithSchedulerConfig(SchedulerConfigT &&value)
CreateClusterSchedulerConfigRequest & WithClusterArn(ClusterArnT &&value)
CreateClusterSchedulerConfigRequest & WithDescription(DescriptionT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateClusterSchedulerConfigRequest & WithName(NameT &&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