AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
GetConnectionResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/outposts/Outposts_EXPORTS.h>
9#include <aws/outposts/model/ConnectionDetails.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 Outposts {
23namespace Model {
25 public:
26 AWS_OUTPOSTS_API GetConnectionResult() = default;
29
31
34 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
35 template <typename ConnectionIdT = Aws::String>
36 void SetConnectionId(ConnectionIdT&& value) {
37 m_connectionIdHasBeenSet = true;
38 m_connectionId = std::forward<ConnectionIdT>(value);
39 }
40 template <typename ConnectionIdT = Aws::String>
41 GetConnectionResult& WithConnectionId(ConnectionIdT&& value) {
42 SetConnectionId(std::forward<ConnectionIdT>(value));
43 return *this;
44 }
46
48
51 inline const ConnectionDetails& GetConnectionDetails() const { return m_connectionDetails; }
52 template <typename ConnectionDetailsT = ConnectionDetails>
53 void SetConnectionDetails(ConnectionDetailsT&& value) {
54 m_connectionDetailsHasBeenSet = true;
55 m_connectionDetails = std::forward<ConnectionDetailsT>(value);
56 }
57 template <typename ConnectionDetailsT = ConnectionDetails>
58 GetConnectionResult& WithConnectionDetails(ConnectionDetailsT&& value) {
59 SetConnectionDetails(std::forward<ConnectionDetailsT>(value));
60 return *this;
61 }
63
65
66 inline const Aws::String& GetRequestId() const { return m_requestId; }
67 template <typename RequestIdT = Aws::String>
68 void SetRequestId(RequestIdT&& value) {
69 m_requestIdHasBeenSet = true;
70 m_requestId = std::forward<RequestIdT>(value);
71 }
72 template <typename RequestIdT = Aws::String>
73 GetConnectionResult& WithRequestId(RequestIdT&& value) {
74 SetRequestId(std::forward<RequestIdT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_connectionId;
80
81 ConnectionDetails m_connectionDetails;
82
83 Aws::String m_requestId;
84 bool m_connectionIdHasBeenSet = false;
85 bool m_connectionDetailsHasBeenSet = false;
86 bool m_requestIdHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Outposts
91} // namespace Aws
const ConnectionDetails & GetConnectionDetails() const
AWS_OUTPOSTS_API GetConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetConnectionResult & WithConnectionDetails(ConnectionDetailsT &&value)
GetConnectionResult & WithRequestId(RequestIdT &&value)
void SetConnectionDetails(ConnectionDetailsT &&value)
AWS_OUTPOSTS_API GetConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OUTPOSTS_API GetConnectionResult()=default
GetConnectionResult & WithConnectionId(ConnectionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue