AWS SDK for C++

AWS SDK for C++ Version 1.11.908

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
37 AWS_WELLARCHITECTED_API EndpointParameters GetEndpointContextParams() const override;
38
40
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template <typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) {
48 m_clientTokenHasBeenSet = true;
49 m_clientToken = std::forward<ClientTokenT>(value);
50 }
51 template <typename ClientTokenT = Aws::String>
53 SetClientToken(std::forward<ClientTokenT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetProfileArn() const { return m_profileArn; }
64 inline bool ProfileArnHasBeenSet() const { return m_profileArnHasBeenSet; }
65 template <typename ProfileArnT = Aws::String>
66 void SetProfileArn(ProfileArnT&& value) {
67 m_profileArnHasBeenSet = true;
68 m_profileArn = std::forward<ProfileArnT>(value);
69 }
70 template <typename ProfileArnT = Aws::String>
72 SetProfileArn(std::forward<ProfileArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetTitle() const { return m_title; }
82 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
83 template <typename TitleT = Aws::String>
84 void SetTitle(TitleT&& value) {
85 m_titleHasBeenSet = true;
86 m_title = std::forward<TitleT>(value);
87 }
88 template <typename TitleT = Aws::String>
90 SetTitle(std::forward<TitleT>(value));
91 return *this;
92 }
94
96
99 inline ContextType GetContextType() const { return m_contextType; }
100 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
101 inline void SetContextType(ContextType value) {
102 m_contextTypeHasBeenSet = true;
103 m_contextType = value;
104 }
106 SetContextType(value);
107 return *this;
108 }
110
112
116 inline const ContextContent& GetContent() const { return m_content; }
117 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
118 template <typename ContentT = ContextContent>
119 void SetContent(ContentT&& value) {
120 m_contentHasBeenSet = true;
121 m_content = std::forward<ContentT>(value);
122 }
123 template <typename ContentT = ContextContent>
125 SetContent(std::forward<ContentT>(value));
126 return *this;
127 }
129 private:
131
132 Aws::String m_profileArn;
133
134 Aws::String m_title;
135
136 ContextType m_contextType{ContextType::NOT_SET};
137
138 ContextContent m_content;
139 bool m_clientTokenHasBeenSet = true;
140 bool m_profileArnHasBeenSet = false;
141 bool m_titleHasBeenSet = false;
142 bool m_contextTypeHasBeenSet = false;
143 bool m_contentHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace WellArchitected
148} // 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)
AWS_WELLARCHITECTED_API EndpointParameters GetEndpointContextParams() const override
Aws::Endpoint::EndpointParameters EndpointParameters
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String