AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
CreateConnectionResult.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/codeconnections/model/Tag.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeConnections {
25namespace Model {
27 public:
28 AWS_CODECONNECTIONS_API CreateConnectionResult() = default;
31
33
39 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
40 template <typename ConnectionArnT = Aws::String>
41 void SetConnectionArn(ConnectionArnT&& value) {
42 m_connectionArnHasBeenSet = true;
43 m_connectionArn = std::forward<ConnectionArnT>(value);
44 }
45 template <typename ConnectionArnT = Aws::String>
46 CreateConnectionResult& WithConnectionArn(ConnectionArnT&& value) {
47 SetConnectionArn(std::forward<ConnectionArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
57 template <typename TagsT = Aws::Vector<Tag>>
58 void SetTags(TagsT&& value) {
59 m_tagsHasBeenSet = true;
60 m_tags = std::forward<TagsT>(value);
61 }
62 template <typename TagsT = Aws::Vector<Tag>>
64 SetTags(std::forward<TagsT>(value));
65 return *this;
66 }
67 template <typename TagsT = Tag>
69 m_tagsHasBeenSet = true;
70 m_tags.emplace_back(std::forward<TagsT>(value));
71 return *this;
72 }
74
76
77 inline const Aws::String& GetRequestId() const { return m_requestId; }
78 template <typename RequestIdT = Aws::String>
79 void SetRequestId(RequestIdT&& value) {
80 m_requestIdHasBeenSet = true;
81 m_requestId = std::forward<RequestIdT>(value);
82 }
83 template <typename RequestIdT = Aws::String>
85 SetRequestId(std::forward<RequestIdT>(value));
86 return *this;
87 }
89 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
90
91 private:
92 Aws::String m_connectionArn;
93
94 Aws::Vector<Tag> m_tags;
95
96 Aws::String m_requestId;
97 Aws::Http::HttpResponseCode m_HttpResponseCode;
98 bool m_connectionArnHasBeenSet = false;
99 bool m_tagsHasBeenSet = false;
100 bool m_requestIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace CodeConnections
105} // namespace Aws
AWS_CODECONNECTIONS_API CreateConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODECONNECTIONS_API CreateConnectionResult()=default
CreateConnectionResult & WithConnectionArn(ConnectionArnT &&value)
CreateConnectionResult & WithTags(TagsT &&value)
CreateConnectionResult & WithRequestId(RequestIdT &&value)
CreateConnectionResult & AddTags(TagsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CODECONNECTIONS_API CreateConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue