AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
UpdateMonitorSettingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/DeadlineRequest.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace deadline {
16namespace Model {
17
21 public:
22 AWS_DEADLINE_API UpdateMonitorSettingsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateMonitorSettings"; }
29
30 AWS_DEADLINE_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetMonitorId() const { return m_monitorId; }
37 inline bool MonitorIdHasBeenSet() const { return m_monitorIdHasBeenSet; }
38 template <typename MonitorIdT = Aws::String>
39 void SetMonitorId(MonitorIdT&& value) {
40 m_monitorIdHasBeenSet = true;
41 m_monitorId = std::forward<MonitorIdT>(value);
42 }
43 template <typename MonitorIdT = Aws::String>
45 SetMonitorId(std::forward<MonitorIdT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::Map<Aws::String, Aws::String>& GetSettings() const { return m_settings; }
57 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
58 template <typename SettingsT = Aws::Map<Aws::String, Aws::String>>
59 void SetSettings(SettingsT&& value) {
60 m_settingsHasBeenSet = true;
61 m_settings = std::forward<SettingsT>(value);
62 }
63 template <typename SettingsT = Aws::Map<Aws::String, Aws::String>>
65 SetSettings(std::forward<SettingsT>(value));
66 return *this;
67 }
68 template <typename SettingsKeyT = Aws::String, typename SettingsValueT = Aws::String>
69 UpdateMonitorSettingsRequest& AddSettings(SettingsKeyT&& key, SettingsValueT&& value) {
70 m_settingsHasBeenSet = true;
71 m_settings.emplace(std::forward<SettingsKeyT>(key), std::forward<SettingsValueT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_monitorId;
77
79 bool m_monitorIdHasBeenSet = false;
80 bool m_settingsHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace deadline
85} // namespace Aws
AWS_DEADLINE_API Aws::String SerializePayload() const override
UpdateMonitorSettingsRequest & AddSettings(SettingsKeyT &&key, SettingsValueT &&value)
AWS_DEADLINE_API UpdateMonitorSettingsRequest()=default
UpdateMonitorSettingsRequest & WithMonitorId(MonitorIdT &&value)
UpdateMonitorSettingsRequest & WithSettings(SettingsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSettings() 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