AWS SDK for C++

AWS SDK for C++ Version 1.11.869

Loading...
Searching...
No Matches
CreateAgentContextRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/WellArchitectedRequest.h>
10#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
11#include <aws/wellarchitected/model/ContextContent.h>
12#include <aws/wellarchitected/model/ContextType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace WellArchitected {
18namespace Model {
19
23 public:
24 AWS_WELLARCHITECTED_API CreateAgentContextRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateAgentContext"; }
31
32 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetClientToken() const { return m_clientToken; }
40 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
41 template <typename ClientTokenT = Aws::String>
42 void SetClientToken(ClientTokenT&& value) {
43 m_clientTokenHasBeenSet = true;
44 m_clientToken = std::forward<ClientTokenT>(value);
45 }
46 template <typename ClientTokenT = Aws::String>
48 SetClientToken(std::forward<ClientTokenT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetProfileArn() const { return m_profileArn; }
59 inline bool ProfileArnHasBeenSet() const { return m_profileArnHasBeenSet; }
60 template <typename ProfileArnT = Aws::String>
61 void SetProfileArn(ProfileArnT&& value) {
62 m_profileArnHasBeenSet = true;
63 m_profileArn = std::forward<ProfileArnT>(value);
64 }
65 template <typename ProfileArnT = Aws::String>
67 SetProfileArn(std::forward<ProfileArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTitle() const { return m_title; }
77 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
78 template <typename TitleT = Aws::String>
79 void SetTitle(TitleT&& value) {
80 m_titleHasBeenSet = true;
81 m_title = std::forward<TitleT>(value);
82 }
83 template <typename TitleT = Aws::String>
85 SetTitle(std::forward<TitleT>(value));
86 return *this;
87 }
89
91
94 inline ContextType GetContextType() const { return m_contextType; }
95 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
96 inline void SetContextType(ContextType value) {
97 m_contextTypeHasBeenSet = true;
98 m_contextType = value;
99 }
101 SetContextType(value);
102 return *this;
103 }
105
107
111 inline const ContextContent& GetContent() const { return m_content; }
112 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
113 template <typename ContentT = ContextContent>
114 void SetContent(ContentT&& value) {
115 m_contentHasBeenSet = true;
116 m_content = std::forward<ContentT>(value);
117 }
118 template <typename ContentT = ContextContent>
120 SetContent(std::forward<ContentT>(value));
121 return *this;
122 }
124 private:
126
127 Aws::String m_profileArn;
128
129 Aws::String m_title;
130
131 ContextType m_contextType{ContextType::NOT_SET};
132
133 ContextContent m_content;
134 bool m_clientTokenHasBeenSet = true;
135 bool m_profileArnHasBeenSet = false;
136 bool m_titleHasBeenSet = false;
137 bool m_contextTypeHasBeenSet = false;
138 bool m_contentHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace WellArchitected
143} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateAgentContextRequest & WithProfileArn(ProfileArnT &&value)
AWS_WELLARCHITECTED_API CreateAgentContextRequest()=default
CreateAgentContextRequest & WithContent(ContentT &&value)
CreateAgentContextRequest & WithTitle(TitleT &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
CreateAgentContextRequest & WithClientToken(ClientTokenT &&value)
CreateAgentContextRequest & WithContextType(ContextType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String