AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetConnectionResult.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/outposts/model/ConnectionDetails.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Outposts
25{
26namespace Model
27{
29 {
30 public:
31 AWS_OUTPOSTS_API GetConnectionResult() = default;
34
35
37
40 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
41 template<typename ConnectionIdT = Aws::String>
42 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
43 template<typename ConnectionIdT = Aws::String>
44 GetConnectionResult& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
46
48
51 inline const ConnectionDetails& GetConnectionDetails() const { return m_connectionDetails; }
52 template<typename ConnectionDetailsT = ConnectionDetails>
53 void SetConnectionDetails(ConnectionDetailsT&& value) { m_connectionDetailsHasBeenSet = true; m_connectionDetails = std::forward<ConnectionDetailsT>(value); }
54 template<typename ConnectionDetailsT = ConnectionDetails>
55 GetConnectionResult& WithConnectionDetails(ConnectionDetailsT&& value) { SetConnectionDetails(std::forward<ConnectionDetailsT>(value)); return *this;}
57
59
60 inline const Aws::String& GetRequestId() const { return m_requestId; }
61 template<typename RequestIdT = Aws::String>
62 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
63 template<typename RequestIdT = Aws::String>
64 GetConnectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
66 private:
67
68 Aws::String m_connectionId;
69 bool m_connectionIdHasBeenSet = false;
70
71 ConnectionDetails m_connectionDetails;
72 bool m_connectionDetailsHasBeenSet = false;
73
74 Aws::String m_requestId;
75 bool m_requestIdHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Outposts
80} // 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