AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
CreateAgentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/AgentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight {
24namespace Model {
26 public:
27 AWS_QUICKSIGHT_API CreateAgentResult() = default;
30
32
35 inline const Aws::String& GetArn() const { return m_arn; }
36 template <typename ArnT = Aws::String>
37 void SetArn(ArnT&& value) {
38 m_arnHasBeenSet = true;
39 m_arn = std::forward<ArnT>(value);
40 }
41 template <typename ArnT = Aws::String>
42 CreateAgentResult& WithArn(ArnT&& value) {
43 SetArn(std::forward<ArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetAgentId() const { return m_agentId; }
53 template <typename AgentIdT = Aws::String>
54 void SetAgentId(AgentIdT&& value) {
55 m_agentIdHasBeenSet = true;
56 m_agentId = std::forward<AgentIdT>(value);
57 }
58 template <typename AgentIdT = Aws::String>
59 CreateAgentResult& WithAgentId(AgentIdT&& value) {
60 SetAgentId(std::forward<AgentIdT>(value));
61 return *this;
62 }
64
66
69 inline AgentStatus GetAgentStatus() const { return m_agentStatus; }
70 inline void SetAgentStatus(AgentStatus value) {
71 m_agentStatusHasBeenSet = true;
72 m_agentStatus = value;
73 }
75 SetAgentStatus(value);
76 return *this;
77 }
79
81
84 inline const Aws::String& GetAgentName() const { return m_agentName; }
85 template <typename AgentNameT = Aws::String>
86 void SetAgentName(AgentNameT&& value) {
87 m_agentNameHasBeenSet = true;
88 m_agentName = std::forward<AgentNameT>(value);
89 }
90 template <typename AgentNameT = Aws::String>
91 CreateAgentResult& WithAgentName(AgentNameT&& value) {
92 SetAgentName(std::forward<AgentNameT>(value));
93 return *this;
94 }
96
98
99 inline const Aws::String& GetRequestId() const { return m_requestId; }
100 template <typename RequestIdT = Aws::String>
101 void SetRequestId(RequestIdT&& value) {
102 m_requestIdHasBeenSet = true;
103 m_requestId = std::forward<RequestIdT>(value);
104 }
105 template <typename RequestIdT = Aws::String>
106 CreateAgentResult& WithRequestId(RequestIdT&& value) {
107 SetRequestId(std::forward<RequestIdT>(value));
108 return *this;
109 }
111 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
112
113 private:
114 Aws::String m_arn;
115
116 Aws::String m_agentId;
117
118 AgentStatus m_agentStatus{AgentStatus::NOT_SET};
119
120 Aws::String m_agentName;
121
122 Aws::String m_requestId;
123 Aws::Http::HttpResponseCode m_HttpResponseCode;
124 bool m_arnHasBeenSet = false;
125 bool m_agentIdHasBeenSet = false;
126 bool m_agentStatusHasBeenSet = false;
127 bool m_agentNameHasBeenSet = false;
128 bool m_requestIdHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace QuickSight
133} // namespace Aws
CreateAgentResult & WithAgentStatus(AgentStatus value)
CreateAgentResult & WithArn(ArnT &&value)
AWS_QUICKSIGHT_API CreateAgentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_QUICKSIGHT_API CreateAgentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateAgentResult & WithAgentId(AgentIdT &&value)
CreateAgentResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_QUICKSIGHT_API CreateAgentResult()=default
CreateAgentResult & WithAgentName(AgentNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue