AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
EnvironmentConnectionSummary.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/ConnectionStatus.h>
9#include <aws/assurance/model/ConnectionType.h>
10#include <aws/assurance/model/GitHubConnectionDetails.h>
11#include <aws/assurance/model/S3ConnectionDetails.h>
12#include <aws/assurance/model/SharePointConnectionDetails.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/crt/cbor/Cbor.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace Assurance {
26namespace Model {
27
35 public:
36 AWS_ASSURANCE_API EnvironmentConnectionSummary() = default;
37 AWS_ASSURANCE_API EnvironmentConnectionSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_ASSURANCE_API EnvironmentConnectionSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
45 inline ConnectionType GetConnectionType() const { return m_connectionType; }
46 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
47 inline void SetConnectionType(ConnectionType value) {
48 m_connectionTypeHasBeenSet = true;
49 m_connectionType = value;
50 }
52 SetConnectionType(value);
53 return *this;
54 }
56
58
61 inline ConnectionStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(ConnectionStatus value) {
64 m_statusHasBeenSet = true;
65 m_status = value;
66 }
68 SetStatus(value);
69 return *this;
70 }
72
74
82 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
83 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
84 template <typename ConnectionIdT = Aws::String>
85 void SetConnectionId(ConnectionIdT&& value) {
86 m_connectionIdHasBeenSet = true;
87 m_connectionId = std::forward<ConnectionIdT>(value);
88 }
89 template <typename ConnectionIdT = Aws::String>
91 SetConnectionId(std::forward<ConnectionIdT>(value));
92 return *this;
93 }
95
97
101 inline const S3ConnectionDetails& GetS3() const { return m_s3; }
102 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
103 template <typename S3T = S3ConnectionDetails>
104 void SetS3(S3T&& value) {
105 m_s3HasBeenSet = true;
106 m_s3 = std::forward<S3T>(value);
107 }
108 template <typename S3T = S3ConnectionDetails>
110 SetS3(std::forward<S3T>(value));
111 return *this;
112 }
114
116
120 inline const GitHubConnectionDetails& GetGithub() const { return m_github; }
121 inline bool GithubHasBeenSet() const { return m_githubHasBeenSet; }
122 template <typename GithubT = GitHubConnectionDetails>
123 void SetGithub(GithubT&& value) {
124 m_githubHasBeenSet = true;
125 m_github = std::forward<GithubT>(value);
126 }
127 template <typename GithubT = GitHubConnectionDetails>
129 SetGithub(std::forward<GithubT>(value));
130 return *this;
131 }
133
135
139 inline const SharePointConnectionDetails& GetSharepoint() const { return m_sharepoint; }
140 inline bool SharepointHasBeenSet() const { return m_sharepointHasBeenSet; }
141 template <typename SharepointT = SharePointConnectionDetails>
142 void SetSharepoint(SharepointT&& value) {
143 m_sharepointHasBeenSet = true;
144 m_sharepoint = std::forward<SharepointT>(value);
145 }
146 template <typename SharepointT = SharePointConnectionDetails>
148 SetSharepoint(std::forward<SharepointT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
158 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
159 template <typename CreatedAtT = Aws::Utils::DateTime>
160 void SetCreatedAt(CreatedAtT&& value) {
161 m_createdAtHasBeenSet = true;
162 m_createdAt = std::forward<CreatedAtT>(value);
163 }
164 template <typename CreatedAtT = Aws::Utils::DateTime>
166 SetCreatedAt(std::forward<CreatedAtT>(value));
167 return *this;
168 }
170 private:
171 ConnectionType m_connectionType{ConnectionType::NOT_SET};
172
174
175 Aws::String m_connectionId;
176
177 S3ConnectionDetails m_s3;
178
179 GitHubConnectionDetails m_github;
180
181 SharePointConnectionDetails m_sharepoint;
182
183 Aws::Utils::DateTime m_createdAt{};
184 bool m_connectionTypeHasBeenSet = false;
185 bool m_statusHasBeenSet = false;
186 bool m_connectionIdHasBeenSet = false;
187 bool m_s3HasBeenSet = false;
188 bool m_githubHasBeenSet = false;
189 bool m_sharepointHasBeenSet = false;
190 bool m_createdAtHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace Assurance
195} // namespace Aws
AWS_ASSURANCE_API EnvironmentConnectionSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const SharePointConnectionDetails & GetSharepoint() const
EnvironmentConnectionSummary & WithCreatedAt(CreatedAtT &&value)
AWS_ASSURANCE_API EnvironmentConnectionSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EnvironmentConnectionSummary & WithConnectionId(ConnectionIdT &&value)
EnvironmentConnectionSummary & WithSharepoint(SharepointT &&value)
EnvironmentConnectionSummary & WithStatus(ConnectionStatus value)
EnvironmentConnectionSummary & WithGithub(GithubT &&value)
AWS_ASSURANCE_API EnvironmentConnectionSummary()=default
EnvironmentConnectionSummary & WithConnectionType(ConnectionType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String