AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateLaunchRequest.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/evidently/model/LaunchGroupConfig.h>
13#include <aws/evidently/model/MetricMonitorConfig.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CloudWatchEvidently
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CLOUDWATCHEVIDENTLY_API UpdateLaunchRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateLaunch"; }
35
36 AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template<typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
47 template<typename DescriptionT = Aws::String>
48 UpdateLaunchRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
50
52
56 inline const Aws::Vector<LaunchGroupConfig>& GetGroups() const { return m_groups; }
57 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
58 template<typename GroupsT = Aws::Vector<LaunchGroupConfig>>
59 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups = std::forward<GroupsT>(value); }
60 template<typename GroupsT = Aws::Vector<LaunchGroupConfig>>
61 UpdateLaunchRequest& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
62 template<typename GroupsT = LaunchGroupConfig>
63 UpdateLaunchRequest& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
65
67
70 inline const Aws::String& GetLaunch() const { return m_launch; }
71 inline bool LaunchHasBeenSet() const { return m_launchHasBeenSet; }
72 template<typename LaunchT = Aws::String>
73 void SetLaunch(LaunchT&& value) { m_launchHasBeenSet = true; m_launch = std::forward<LaunchT>(value); }
74 template<typename LaunchT = Aws::String>
75 UpdateLaunchRequest& WithLaunch(LaunchT&& value) { SetLaunch(std::forward<LaunchT>(value)); return *this;}
77
79
83 inline const Aws::Vector<MetricMonitorConfig>& GetMetricMonitors() const { return m_metricMonitors; }
84 inline bool MetricMonitorsHasBeenSet() const { return m_metricMonitorsHasBeenSet; }
85 template<typename MetricMonitorsT = Aws::Vector<MetricMonitorConfig>>
86 void SetMetricMonitors(MetricMonitorsT&& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors = std::forward<MetricMonitorsT>(value); }
87 template<typename MetricMonitorsT = Aws::Vector<MetricMonitorConfig>>
88 UpdateLaunchRequest& WithMetricMonitors(MetricMonitorsT&& value) { SetMetricMonitors(std::forward<MetricMonitorsT>(value)); return *this;}
89 template<typename MetricMonitorsT = MetricMonitorConfig>
90 UpdateLaunchRequest& AddMetricMonitors(MetricMonitorsT&& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors.emplace_back(std::forward<MetricMonitorsT>(value)); return *this; }
92
94
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 UpdateLaunchRequest& 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 UpdateLaunchRequest& 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 UpdateLaunchRequest& WithScheduledSplitsConfig(ScheduledSplitsConfigT&& value) { SetScheduledSplitsConfig(std::forward<ScheduledSplitsConfigT>(value)); return *this;}
134 private:
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
140 bool m_groupsHasBeenSet = false;
141
142 Aws::String m_launch;
143 bool m_launchHasBeenSet = false;
144
145 Aws::Vector<MetricMonitorConfig> m_metricMonitors;
146 bool m_metricMonitorsHasBeenSet = false;
147
148 Aws::String m_project;
149 bool m_projectHasBeenSet = false;
150
151 Aws::String m_randomizationSalt;
152 bool m_randomizationSaltHasBeenSet = false;
153
154 ScheduledSplitsLaunchConfig m_scheduledSplitsConfig;
155 bool m_scheduledSplitsConfigHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace CloudWatchEvidently
160} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
const Aws::Vector< MetricMonitorConfig > & GetMetricMonitors() const
const Aws::Vector< LaunchGroupConfig > & GetGroups() const
AWS_CLOUDWATCHEVIDENTLY_API UpdateLaunchRequest()=default
UpdateLaunchRequest & WithLaunch(LaunchT &&value)
const ScheduledSplitsLaunchConfig & GetScheduledSplitsConfig() const
UpdateLaunchRequest & WithProject(ProjectT &&value)
UpdateLaunchRequest & AddGroups(GroupsT &&value)
UpdateLaunchRequest & WithDescription(DescriptionT &&value)
void SetScheduledSplitsConfig(ScheduledSplitsConfigT &&value)
UpdateLaunchRequest & AddMetricMonitors(MetricMonitorsT &&value)
UpdateLaunchRequest & WithMetricMonitors(MetricMonitorsT &&value)
UpdateLaunchRequest & WithGroups(GroupsT &&value)
UpdateLaunchRequest & WithScheduledSplitsConfig(ScheduledSplitsConfigT &&value)
UpdateLaunchRequest & WithRandomizationSalt(RandomizationSaltT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector