AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateAgentResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datasync/DataSync_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Json {
18class JsonValue;
19} // namespace Json
20} // namespace Utils
21namespace DataSync {
22namespace Model {
29 public:
30 AWS_DATASYNC_API CreateAgentResult() = default;
33
35
41 inline const Aws::String& GetAgentArn() const { return m_agentArn; }
42 template <typename AgentArnT = Aws::String>
43 void SetAgentArn(AgentArnT&& value) {
44 m_agentArnHasBeenSet = true;
45 m_agentArn = std::forward<AgentArnT>(value);
46 }
47 template <typename AgentArnT = Aws::String>
48 CreateAgentResult& WithAgentArn(AgentArnT&& value) {
49 SetAgentArn(std::forward<AgentArnT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetRequestId() const { return m_requestId; }
57 template <typename RequestIdT = Aws::String>
58 void SetRequestId(RequestIdT&& value) {
59 m_requestIdHasBeenSet = true;
60 m_requestId = std::forward<RequestIdT>(value);
61 }
62 template <typename RequestIdT = Aws::String>
63 CreateAgentResult& WithRequestId(RequestIdT&& value) {
64 SetRequestId(std::forward<RequestIdT>(value));
65 return *this;
66 }
68 private:
69 Aws::String m_agentArn;
70
71 Aws::String m_requestId;
72 bool m_agentArnHasBeenSet = false;
73 bool m_requestIdHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace DataSync
78} // 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)
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