AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
59 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
60 template <typename ClusterArnT = Aws::String>
61 void SetClusterArn(ClusterArnT&& value) {
62 m_clusterArnHasBeenSet = true;
63 m_clusterArn = std::forward<ClusterArnT>(value);
64 }
65 template <typename ClusterArnT = Aws::String>
67 SetClusterArn(std::forward<ClusterArnT>(value));
68 return *this;
69 }
71
73
76 inline const SchedulerConfig& GetSchedulerConfig() const { return m_schedulerConfig; }
77 inline bool SchedulerConfigHasBeenSet() const { return m_schedulerConfigHasBeenSet; }
78 template <typename SchedulerConfigT = SchedulerConfig>
79 void SetSchedulerConfig(SchedulerConfigT&& value) {
80 m_schedulerConfigHasBeenSet = true;
81 m_schedulerConfig = std::forward<SchedulerConfigT>(value);
82 }
83 template <typename SchedulerConfigT = SchedulerConfig>
85 SetSchedulerConfig(std::forward<SchedulerConfigT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template <typename TagsT = Aws::Vector<Tag>>
115 void SetTags(TagsT&& value) {
116 m_tagsHasBeenSet = true;
117 m_tags = std::forward<TagsT>(value);
118 }
119 template <typename TagsT = Aws::Vector<Tag>>
121 SetTags(std::forward<TagsT>(value));
122 return *this;
123 }
124 template <typename TagsT = Tag>
126 m_tagsHasBeenSet = true;
127 m_tags.emplace_back(std::forward<TagsT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_name;
133
134 Aws::String m_clusterArn;
135
136 SchedulerConfig m_schedulerConfig;
137
138 Aws::String m_description;
139
140 Aws::Vector<Tag> m_tags;
141 bool m_nameHasBeenSet = false;
142 bool m_clusterArnHasBeenSet = false;
143 bool m_schedulerConfigHasBeenSet = false;
144 bool m_descriptionHasBeenSet = false;
145 bool m_tagsHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace SageMaker
150} // 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