AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
47 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
48 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
49 inline CreateLaunchRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
50 inline CreateLaunchRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
51 inline CreateLaunchRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
53
55
59 inline const Aws::Vector<LaunchGroupConfig>& GetGroups() const{ return m_groups; }
60 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
61 inline void SetGroups(const Aws::Vector<LaunchGroupConfig>& value) { m_groupsHasBeenSet = true; m_groups = value; }
62 inline void SetGroups(Aws::Vector<LaunchGroupConfig>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
63 inline CreateLaunchRequest& WithGroups(const Aws::Vector<LaunchGroupConfig>& value) { SetGroups(value); return *this;}
64 inline CreateLaunchRequest& WithGroups(Aws::Vector<LaunchGroupConfig>&& value) { SetGroups(std::move(value)); return *this;}
65 inline CreateLaunchRequest& AddGroups(const LaunchGroupConfig& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
66 inline CreateLaunchRequest& AddGroups(LaunchGroupConfig&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
68
70
74 inline const Aws::Vector<MetricMonitorConfig>& GetMetricMonitors() const{ return m_metricMonitors; }
75 inline bool MetricMonitorsHasBeenSet() const { return m_metricMonitorsHasBeenSet; }
76 inline void SetMetricMonitors(const Aws::Vector<MetricMonitorConfig>& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors = value; }
77 inline void SetMetricMonitors(Aws::Vector<MetricMonitorConfig>&& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors = std::move(value); }
80 inline CreateLaunchRequest& AddMetricMonitors(const MetricMonitorConfig& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors.push_back(value); return *this; }
81 inline CreateLaunchRequest& AddMetricMonitors(MetricMonitorConfig&& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors.push_back(std::move(value)); return *this; }
83
85
88 inline const Aws::String& GetName() const{ return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
92 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
93 inline CreateLaunchRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
94 inline CreateLaunchRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 inline CreateLaunchRequest& WithName(const char* value) { SetName(value); return *this;}
97
99
102 inline const Aws::String& GetProject() const{ return m_project; }
103 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
104 inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; }
105 inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); }
106 inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); }
107 inline CreateLaunchRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;}
108 inline CreateLaunchRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;}
109 inline CreateLaunchRequest& WithProject(const char* value) { SetProject(value); return *this;}
111
113
120 inline const Aws::String& GetRandomizationSalt() const{ return m_randomizationSalt; }
121 inline bool RandomizationSaltHasBeenSet() const { return m_randomizationSaltHasBeenSet; }
122 inline void SetRandomizationSalt(const Aws::String& value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt = value; }
123 inline void SetRandomizationSalt(Aws::String&& value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt = std::move(value); }
124 inline void SetRandomizationSalt(const char* value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt.assign(value); }
125 inline CreateLaunchRequest& WithRandomizationSalt(const Aws::String& value) { SetRandomizationSalt(value); return *this;}
126 inline CreateLaunchRequest& WithRandomizationSalt(Aws::String&& value) { SetRandomizationSalt(std::move(value)); return *this;}
127 inline CreateLaunchRequest& WithRandomizationSalt(const char* value) { SetRandomizationSalt(value); return *this;}
129
131
135 inline const ScheduledSplitsLaunchConfig& GetScheduledSplitsConfig() const{ return m_scheduledSplitsConfig; }
136 inline bool ScheduledSplitsConfigHasBeenSet() const { return m_scheduledSplitsConfigHasBeenSet; }
137 inline void SetScheduledSplitsConfig(const ScheduledSplitsLaunchConfig& value) { m_scheduledSplitsConfigHasBeenSet = true; m_scheduledSplitsConfig = value; }
138 inline void SetScheduledSplitsConfig(ScheduledSplitsLaunchConfig&& value) { m_scheduledSplitsConfigHasBeenSet = true; m_scheduledSplitsConfig = std::move(value); }
142
144
155 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
158 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
159 inline CreateLaunchRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
160 inline CreateLaunchRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
161 inline CreateLaunchRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
162 inline CreateLaunchRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
163 inline CreateLaunchRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
164 inline CreateLaunchRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
165 inline CreateLaunchRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
166 inline CreateLaunchRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
167 inline CreateLaunchRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
169 private:
170
171 Aws::String m_description;
172 bool m_descriptionHasBeenSet = false;
173
175 bool m_groupsHasBeenSet = false;
176
177 Aws::Vector<MetricMonitorConfig> m_metricMonitors;
178 bool m_metricMonitorsHasBeenSet = false;
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 Aws::String m_project;
184 bool m_projectHasBeenSet = false;
185
186 Aws::String m_randomizationSalt;
187 bool m_randomizationSaltHasBeenSet = false;
188
189 ScheduledSplitsLaunchConfig m_scheduledSplitsConfig;
190 bool m_scheduledSplitsConfigHasBeenSet = false;
191
193 bool m_tagsHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace CloudWatchEvidently
198} // namespace Aws
void SetGroups(Aws::Vector< LaunchGroupConfig > &&value)
const ScheduledSplitsLaunchConfig & GetScheduledSplitsConfig() const
CreateLaunchRequest & WithRandomizationSalt(const Aws::String &value)
CreateLaunchRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetScheduledSplitsConfig(const ScheduledSplitsLaunchConfig &value)
CreateLaunchRequest & AddGroups(LaunchGroupConfig &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLaunchRequest & WithName(Aws::String &&value)
AWS_CLOUDWATCHEVIDENTLY_API CreateLaunchRequest()
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLaunchRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateLaunchRequest & WithMetricMonitors(const Aws::Vector< MetricMonitorConfig > &value)
CreateLaunchRequest & WithDescription(Aws::String &&value)
CreateLaunchRequest & WithName(const char *value)
CreateLaunchRequest & WithDescription(const char *value)
CreateLaunchRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateLaunchRequest & WithProject(Aws::String &&value)
CreateLaunchRequest & WithScheduledSplitsConfig(ScheduledSplitsLaunchConfig &&value)
CreateLaunchRequest & WithName(const Aws::String &value)
CreateLaunchRequest & WithGroups(const Aws::Vector< LaunchGroupConfig > &value)
CreateLaunchRequest & WithProject(const char *value)
CreateLaunchRequest & WithGroups(Aws::Vector< LaunchGroupConfig > &&value)
CreateLaunchRequest & AddMetricMonitors(const MetricMonitorConfig &value)
CreateLaunchRequest & WithProject(const Aws::String &value)
CreateLaunchRequest & AddMetricMonitors(MetricMonitorConfig &&value)
CreateLaunchRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CreateLaunchRequest & WithScheduledSplitsConfig(const ScheduledSplitsLaunchConfig &value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
CreateLaunchRequest & AddGroups(const LaunchGroupConfig &value)
void SetMetricMonitors(Aws::Vector< MetricMonitorConfig > &&value)
CreateLaunchRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetScheduledSplitsConfig(ScheduledSplitsLaunchConfig &&value)
void SetGroups(const Aws::Vector< LaunchGroupConfig > &value)
CreateLaunchRequest & WithRandomizationSalt(Aws::String &&value)
CreateLaunchRequest & WithRandomizationSalt(const char *value)
const Aws::Vector< MetricMonitorConfig > & GetMetricMonitors() const
CreateLaunchRequest & AddTags(const char *key, Aws::String &&value)
CreateLaunchRequest & WithMetricMonitors(Aws::Vector< MetricMonitorConfig > &&value)
CreateLaunchRequest & AddTags(const char *key, const char *value)
CreateLaunchRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetMetricMonitors(const Aws::Vector< MetricMonitorConfig > &value)
CreateLaunchRequest & WithDescription(const Aws::String &value)
CreateLaunchRequest & AddTags(Aws::String &&key, const char *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