AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateLaunchRequest.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/evidently/CloudWatchEvidentlyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/evidently/model/ScheduledSplitsLaunchConfig.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/evidently/model/LaunchGroupConfig.h>
14#include <aws/evidently/model/MetricMonitorConfig.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CloudWatchEvidently
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CLOUDWATCHEVIDENTLY_API CreateLaunchRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateLaunch"; }
36
37 AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetDescription() const { return m_description; }
45 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
46 template<typename DescriptionT = Aws::String>
47 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
48 template<typename DescriptionT = Aws::String>
49 CreateLaunchRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
51
53
57 inline const Aws::Vector<LaunchGroupConfig>& GetGroups() const { return m_groups; }
58 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
59 template<typename GroupsT = Aws::Vector<LaunchGroupConfig>>
60 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups = std::forward<GroupsT>(value); }
61 template<typename GroupsT = Aws::Vector<LaunchGroupConfig>>
62 CreateLaunchRequest& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
63 template<typename GroupsT = LaunchGroupConfig>
64 CreateLaunchRequest& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
66
68
72 inline const Aws::Vector<MetricMonitorConfig>& GetMetricMonitors() const { return m_metricMonitors; }
73 inline bool MetricMonitorsHasBeenSet() const { return m_metricMonitorsHasBeenSet; }
74 template<typename MetricMonitorsT = Aws::Vector<MetricMonitorConfig>>
75 void SetMetricMonitors(MetricMonitorsT&& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors = std::forward<MetricMonitorsT>(value); }
76 template<typename MetricMonitorsT = Aws::Vector<MetricMonitorConfig>>
77 CreateLaunchRequest& WithMetricMonitors(MetricMonitorsT&& value) { SetMetricMonitors(std::forward<MetricMonitorsT>(value)); return *this;}
78 template<typename MetricMonitorsT = MetricMonitorConfig>
79 CreateLaunchRequest& AddMetricMonitors(MetricMonitorsT&& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors.emplace_back(std::forward<MetricMonitorsT>(value)); return *this; }
81
83
86 inline const Aws::String& GetName() const { return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 template<typename NameT = Aws::String>
89 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
90 template<typename NameT = Aws::String>
91 CreateLaunchRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
93
95
98 inline const Aws::String& GetProject() const { return m_project; }
99 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
100 template<typename ProjectT = Aws::String>
101 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
102 template<typename ProjectT = Aws::String>
103 CreateLaunchRequest& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
105
107
114 inline const Aws::String& GetRandomizationSalt() const { return m_randomizationSalt; }
115 inline bool RandomizationSaltHasBeenSet() const { return m_randomizationSaltHasBeenSet; }
116 template<typename RandomizationSaltT = Aws::String>
117 void SetRandomizationSalt(RandomizationSaltT&& value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt = std::forward<RandomizationSaltT>(value); }
118 template<typename RandomizationSaltT = Aws::String>
119 CreateLaunchRequest& WithRandomizationSalt(RandomizationSaltT&& value) { SetRandomizationSalt(std::forward<RandomizationSaltT>(value)); return *this;}
121
123
127 inline const ScheduledSplitsLaunchConfig& GetScheduledSplitsConfig() const { return m_scheduledSplitsConfig; }
128 inline bool ScheduledSplitsConfigHasBeenSet() const { return m_scheduledSplitsConfigHasBeenSet; }
129 template<typename ScheduledSplitsConfigT = ScheduledSplitsLaunchConfig>
130 void SetScheduledSplitsConfig(ScheduledSplitsConfigT&& value) { m_scheduledSplitsConfigHasBeenSet = true; m_scheduledSplitsConfig = std::forward<ScheduledSplitsConfigT>(value); }
131 template<typename ScheduledSplitsConfigT = ScheduledSplitsLaunchConfig>
132 CreateLaunchRequest& WithScheduledSplitsConfig(ScheduledSplitsConfigT&& value) { SetScheduledSplitsConfig(std::forward<ScheduledSplitsConfigT>(value)); return *this;}
134
136
147 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
151 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 CreateLaunchRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
153 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
154 CreateLaunchRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
155 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
156 }
158 private:
159
160 Aws::String m_description;
161 bool m_descriptionHasBeenSet = false;
162
164 bool m_groupsHasBeenSet = false;
165
166 Aws::Vector<MetricMonitorConfig> m_metricMonitors;
167 bool m_metricMonitorsHasBeenSet = false;
168
169 Aws::String m_name;
170 bool m_nameHasBeenSet = false;
171
172 Aws::String m_project;
173 bool m_projectHasBeenSet = false;
174
175 Aws::String m_randomizationSalt;
176 bool m_randomizationSaltHasBeenSet = false;
177
178 ScheduledSplitsLaunchConfig m_scheduledSplitsConfig;
179 bool m_scheduledSplitsConfigHasBeenSet = false;
180
182 bool m_tagsHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace CloudWatchEvidently
187} // namespace Aws
const ScheduledSplitsLaunchConfig & GetScheduledSplitsConfig() const
CreateLaunchRequest & AddMetricMonitors(MetricMonitorsT &&value)
CreateLaunchRequest & WithScheduledSplitsConfig(ScheduledSplitsConfigT &&value)
CreateLaunchRequest & WithGroups(GroupsT &&value)
CreateLaunchRequest & WithProject(ProjectT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CLOUDWATCHEVIDENTLY_API CreateLaunchRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
CreateLaunchRequest & WithRandomizationSalt(RandomizationSaltT &&value)
CreateLaunchRequest & WithDescription(DescriptionT &&value)
void SetScheduledSplitsConfig(ScheduledSplitsConfigT &&value)
CreateLaunchRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< MetricMonitorConfig > & GetMetricMonitors() const
CreateLaunchRequest & AddGroups(GroupsT &&value)
CreateLaunchRequest & WithMetricMonitors(MetricMonitorsT &&value)
const Aws::Vector< LaunchGroupConfig > & GetGroups() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector