AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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/datasync/DataSync_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace DataSync {
23namespace Model {
30 public:
31 AWS_DATASYNC_API CreateAgentResult() = default;
34
36
42 inline const Aws::String& GetAgentArn() const { return m_agentArn; }
43 template <typename AgentArnT = Aws::String>
44 void SetAgentArn(AgentArnT&& value) {
45 m_agentArnHasBeenSet = true;
46 m_agentArn = std::forward<AgentArnT>(value);
47 }
48 template <typename AgentArnT = Aws::String>
49 CreateAgentResult& WithAgentArn(AgentArnT&& value) {
50 SetAgentArn(std::forward<AgentArnT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::String& GetRequestId() const { return m_requestId; }
58 template <typename RequestIdT = Aws::String>
59 void SetRequestId(RequestIdT&& value) {
60 m_requestIdHasBeenSet = true;
61 m_requestId = std::forward<RequestIdT>(value);
62 }
63 template <typename RequestIdT = Aws::String>
64 CreateAgentResult& WithRequestId(RequestIdT&& value) {
65 SetRequestId(std::forward<RequestIdT>(value));
66 return *this;
67 }
69 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
70
71 private:
72 Aws::String m_agentArn;
73
74 Aws::String m_requestId;
75 Aws::Http::HttpResponseCode m_HttpResponseCode;
76 bool m_agentArnHasBeenSet = false;
77 bool m_requestIdHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace DataSync
82} // namespace Aws
CreateAgentResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
AWS_DATASYNC_API CreateAgentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DATASYNC_API CreateAgentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetAgentArn() const
AWS_DATASYNC_API CreateAgentResult()=default
CreateAgentResult & WithAgentArn(AgentArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue