AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
ImportLensRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wellarchitected/WellArchitectedRequest.h>
11#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WellArchitected {
17namespace Model {
18
22 public:
23 AWS_WELLARCHITECTED_API ImportLensRequest() = 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 "ImportLens"; }
30
31 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
32
34
35 inline const Aws::String& GetLensAlias() const { return m_lensAlias; }
36 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
37 template <typename LensAliasT = Aws::String>
38 void SetLensAlias(LensAliasT&& value) {
39 m_lensAliasHasBeenSet = true;
40 m_lensAlias = std::forward<LensAliasT>(value);
41 }
42 template <typename LensAliasT = Aws::String>
43 ImportLensRequest& WithLensAlias(LensAliasT&& value) {
44 SetLensAlias(std::forward<LensAliasT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetJSONString() const { return m_jSONString; }
54 inline bool JSONStringHasBeenSet() const { return m_jSONStringHasBeenSet; }
55 template <typename JSONStringT = Aws::String>
56 void SetJSONString(JSONStringT&& value) {
57 m_jSONStringHasBeenSet = true;
58 m_jSONString = std::forward<JSONStringT>(value);
59 }
60 template <typename JSONStringT = Aws::String>
61 ImportLensRequest& WithJSONString(JSONStringT&& value) {
62 SetJSONString(std::forward<JSONStringT>(value));
63 return *this;
64 }
66
68
69 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
70 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
71 template <typename ClientRequestTokenT = Aws::String>
72 void SetClientRequestToken(ClientRequestTokenT&& value) {
73 m_clientRequestTokenHasBeenSet = true;
74 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
75 }
76 template <typename ClientRequestTokenT = Aws::String>
77 ImportLensRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
78 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
90 void SetTags(TagsT&& value) {
91 m_tagsHasBeenSet = true;
92 m_tags = std::forward<TagsT>(value);
93 }
94 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 ImportLensRequest& WithTags(TagsT&& value) {
96 SetTags(std::forward<TagsT>(value));
97 return *this;
98 }
99 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
100 ImportLensRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
101 m_tagsHasBeenSet = true;
102 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_lensAlias;
108 bool m_lensAliasHasBeenSet = false;
109
110 Aws::String m_jSONString;
111 bool m_jSONStringHasBeenSet = false;
112
113 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
114 bool m_clientRequestTokenHasBeenSet = true;
115
117 bool m_tagsHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace WellArchitected
122} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
void SetClientRequestToken(ClientRequestTokenT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportLensRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
ImportLensRequest & WithJSONString(JSONStringT &&value)
ImportLensRequest & WithTags(TagsT &&value)
ImportLensRequest & WithLensAlias(LensAliasT &&value)
AWS_WELLARCHITECTED_API ImportLensRequest()=default
ImportLensRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
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