AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ConnectionProviderKey.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/GitHubConnectionKey.h>
9#include <aws/assurance/model/S3ConnectionKey.h>
10#include <aws/assurance/model/SharePointConnectionKey.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Assurance {
22namespace Model {
23
31 public:
32 AWS_ASSURANCE_API ConnectionProviderKey() = default;
33 AWS_ASSURANCE_API ConnectionProviderKey(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_ASSURANCE_API ConnectionProviderKey& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const S3ConnectionKey& GetS3() const { return m_s3; }
42 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
43 template <typename S3T = S3ConnectionKey>
44 void SetS3(S3T&& value) {
45 m_s3HasBeenSet = true;
46 m_s3 = std::forward<S3T>(value);
47 }
48 template <typename S3T = S3ConnectionKey>
50 SetS3(std::forward<S3T>(value));
51 return *this;
52 }
54
56
59 inline const GitHubConnectionKey& GetGithub() const { return m_github; }
60 inline bool GithubHasBeenSet() const { return m_githubHasBeenSet; }
61 template <typename GithubT = GitHubConnectionKey>
62 void SetGithub(GithubT&& value) {
63 m_githubHasBeenSet = true;
64 m_github = std::forward<GithubT>(value);
65 }
66 template <typename GithubT = GitHubConnectionKey>
68 SetGithub(std::forward<GithubT>(value));
69 return *this;
70 }
72
74
77 inline const SharePointConnectionKey& GetSharepoint() const { return m_sharepoint; }
78 inline bool SharepointHasBeenSet() const { return m_sharepointHasBeenSet; }
79 template <typename SharepointT = SharePointConnectionKey>
80 void SetSharepoint(SharepointT&& value) {
81 m_sharepointHasBeenSet = true;
82 m_sharepoint = std::forward<SharepointT>(value);
83 }
84 template <typename SharepointT = SharePointConnectionKey>
85 ConnectionProviderKey& WithSharepoint(SharepointT&& value) {
86 SetSharepoint(std::forward<SharepointT>(value));
87 return *this;
88 }
90 private:
91 S3ConnectionKey m_s3;
92
93 GitHubConnectionKey m_github;
94
95 SharePointConnectionKey m_sharepoint;
96 bool m_s3HasBeenSet = false;
97 bool m_githubHasBeenSet = false;
98 bool m_sharepointHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Assurance
103} // namespace Aws
ConnectionProviderKey & WithSharepoint(SharepointT &&value)
AWS_ASSURANCE_API ConnectionProviderKey()=default
const GitHubConnectionKey & GetGithub() const
const SharePointConnectionKey & GetSharepoint() const
ConnectionProviderKey & WithGithub(GithubT &&value)
ConnectionProviderKey & WithS3(S3T &&value)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_ASSURANCE_API ConnectionProviderKey(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ASSURANCE_API ConnectionProviderKey & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)