AWS SDK for C++

AWS SDK for C++ Version 1.11.899

Loading...
Searching...
No Matches
CreateViewRequest.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 CreateViewRequest() = 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 "CreateView"; }
30
31 AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override;
32
33 AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 CreateViewRequest& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDefinition() const { return m_definition; }
59 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
60 template <typename DefinitionT = Aws::String>
61 void SetDefinition(DefinitionT&& value) {
62 m_definitionHasBeenSet = true;
63 m_definition = std::forward<DefinitionT>(value);
64 }
65 template <typename DefinitionT = Aws::String>
66 CreateViewRequest& WithDefinition(DefinitionT&& value) {
67 SetDefinition(std::forward<DefinitionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 CreateViewRequest& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 void SetTags(TagsT&& value) {
98 m_tagsHasBeenSet = true;
99 m_tags = std::forward<TagsT>(value);
100 }
101 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 CreateViewRequest& WithTags(TagsT&& value) {
103 SetTags(std::forward<TagsT>(value));
104 return *this;
105 }
106 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
107 CreateViewRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
108 m_tagsHasBeenSet = true;
109 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetClientToken() const { return m_clientToken; }
120 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
121 template <typename ClientTokenT = Aws::String>
122 void SetClientToken(ClientTokenT&& value) {
123 m_clientTokenHasBeenSet = true;
124 m_clientToken = std::forward<ClientTokenT>(value);
125 }
126 template <typename ClientTokenT = Aws::String>
127 CreateViewRequest& WithClientToken(ClientTokenT&& value) {
128 SetClientToken(std::forward<ClientTokenT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_name;
134
135 Aws::String m_definition;
136
137 Aws::String m_description;
138
140
142 bool m_nameHasBeenSet = false;
143 bool m_definitionHasBeenSet = false;
144 bool m_descriptionHasBeenSet = false;
145 bool m_tagsHasBeenSet = false;
146 bool m_clientTokenHasBeenSet = true;
147};
148
149} // namespace Model
150} // namespace CloudWatchOmni
151} // namespace Aws
CreateViewRequest & WithDescription(DescriptionT &&value)
AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override
CreateViewRequest & WithDefinition(DefinitionT &&value)
CreateViewRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateViewRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateViewRequest & WithClientToken(ClientTokenT &&value)
AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateViewRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CLOUDWATCHOMNI_API CreateViewRequest()=default
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