AWS SDK for C++

AWS SDK for C++ Version 1.11.899

Loading...
Searching...
No Matches
CreateOmniDashboardRequest.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmniRequest.h>
8#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatchOmni {
17namespace Model {
18
22 public:
23 AWS_CLOUDWATCHOMNI_API CreateOmniDashboardRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateOmniDashboard"; }
30
31 AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override;
32
33 AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetSpaceId() const { return m_spaceId; }
40 inline bool SpaceIdHasBeenSet() const { return m_spaceIdHasBeenSet; }
41 template <typename SpaceIdT = Aws::String>
42 void SetSpaceId(SpaceIdT&& value) {
43 m_spaceIdHasBeenSet = true;
44 m_spaceId = std::forward<SpaceIdT>(value);
45 }
46 template <typename SpaceIdT = Aws::String>
48 SetSpaceId(std::forward<SpaceIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 CreateOmniDashboardRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetClientToken() const { return m_clientToken; }
119 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
120 template <typename ClientTokenT = Aws::String>
121 void SetClientToken(ClientTokenT&& value) {
122 m_clientTokenHasBeenSet = true;
123 m_clientToken = std::forward<ClientTokenT>(value);
124 }
125 template <typename ClientTokenT = Aws::String>
127 SetClientToken(std::forward<ClientTokenT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetRequestBody() const { return m_requestBody; }
137 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
138 template <typename RequestBodyT = Aws::String>
139 void SetRequestBody(RequestBodyT&& value) {
140 m_requestBodyHasBeenSet = true;
141 m_requestBody = std::forward<RequestBodyT>(value);
142 }
143 template <typename RequestBodyT = Aws::String>
145 SetRequestBody(std::forward<RequestBodyT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_spaceId;
151
152 Aws::String m_name;
153
154 Aws::String m_description;
155
157
159
160 Aws::String m_requestBody;
161 bool m_spaceIdHasBeenSet = false;
162 bool m_nameHasBeenSet = false;
163 bool m_descriptionHasBeenSet = false;
164 bool m_tagsHasBeenSet = false;
165 bool m_clientTokenHasBeenSet = true;
166 bool m_requestBodyHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace CloudWatchOmni
171} // namespace Aws
AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateOmniDashboardRequest & WithDescription(DescriptionT &&value)
CreateOmniDashboardRequest & WithClientToken(ClientTokenT &&value)
AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CLOUDWATCHOMNI_API CreateOmniDashboardRequest()=default
CreateOmniDashboardRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateOmniDashboardRequest & WithRequestBody(RequestBodyT &&value)
CreateOmniDashboardRequest & WithSpaceId(SpaceIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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