AWS SDK for C++

AWS SDK for C++ Version 1.11.899

Loading...
Searching...
No Matches
IntegrationCredential.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/ApiKeyCredential.h>
9#include <aws/cloudwatchomni/model/OAuthClientCredential.h>
10#include <aws/cloudwatchomni/model/OAuthCodeCredential.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 CloudWatchOmni {
22namespace Model {
23
32 public:
33 AWS_CLOUDWATCHOMNI_API IntegrationCredential() = default;
34 AWS_CLOUDWATCHOMNI_API IntegrationCredential(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCHOMNI_API IntegrationCredential& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const OAuthCodeCredential& GetOauthCodeCredential() const { return m_oauthCodeCredential; }
43 inline bool OauthCodeCredentialHasBeenSet() const { return m_oauthCodeCredentialHasBeenSet; }
44 template <typename OauthCodeCredentialT = OAuthCodeCredential>
45 void SetOauthCodeCredential(OauthCodeCredentialT&& value) {
46 m_oauthCodeCredentialHasBeenSet = true;
47 m_oauthCodeCredential = std::forward<OauthCodeCredentialT>(value);
48 }
49 template <typename OauthCodeCredentialT = OAuthCodeCredential>
50 IntegrationCredential& WithOauthCodeCredential(OauthCodeCredentialT&& value) {
51 SetOauthCodeCredential(std::forward<OauthCodeCredentialT>(value));
52 return *this;
53 }
55
57
60 inline const OAuthClientCredential& GetOauthClientCredential() const { return m_oauthClientCredential; }
61 inline bool OauthClientCredentialHasBeenSet() const { return m_oauthClientCredentialHasBeenSet; }
62 template <typename OauthClientCredentialT = OAuthClientCredential>
63 void SetOauthClientCredential(OauthClientCredentialT&& value) {
64 m_oauthClientCredentialHasBeenSet = true;
65 m_oauthClientCredential = std::forward<OauthClientCredentialT>(value);
66 }
67 template <typename OauthClientCredentialT = OAuthClientCredential>
68 IntegrationCredential& WithOauthClientCredential(OauthClientCredentialT&& value) {
69 SetOauthClientCredential(std::forward<OauthClientCredentialT>(value));
70 return *this;
71 }
73
75
78 inline const ApiKeyCredential& GetApiKeyCredential() const { return m_apiKeyCredential; }
79 inline bool ApiKeyCredentialHasBeenSet() const { return m_apiKeyCredentialHasBeenSet; }
80 template <typename ApiKeyCredentialT = ApiKeyCredential>
81 void SetApiKeyCredential(ApiKeyCredentialT&& value) {
82 m_apiKeyCredentialHasBeenSet = true;
83 m_apiKeyCredential = std::forward<ApiKeyCredentialT>(value);
84 }
85 template <typename ApiKeyCredentialT = ApiKeyCredential>
86 IntegrationCredential& WithApiKeyCredential(ApiKeyCredentialT&& value) {
87 SetApiKeyCredential(std::forward<ApiKeyCredentialT>(value));
88 return *this;
89 }
91 private:
92 OAuthCodeCredential m_oauthCodeCredential;
93
94 OAuthClientCredential m_oauthClientCredential;
95
96 ApiKeyCredential m_apiKeyCredential;
97 bool m_oauthCodeCredentialHasBeenSet = false;
98 bool m_oauthClientCredentialHasBeenSet = false;
99 bool m_apiKeyCredentialHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace CloudWatchOmni
104} // namespace Aws
AWS_CLOUDWATCHOMNI_API IntegrationCredential(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const OAuthClientCredential & GetOauthClientCredential() const
void SetOauthCodeCredential(OauthCodeCredentialT &&value)
void SetOauthClientCredential(OauthClientCredentialT &&value)
AWS_CLOUDWATCHOMNI_API IntegrationCredential & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API IntegrationCredential()=default
IntegrationCredential & WithOauthClientCredential(OauthClientCredentialT &&value)
IntegrationCredential & WithOauthCodeCredential(OauthCodeCredentialT &&value)
IntegrationCredential & WithApiKeyCredential(ApiKeyCredentialT &&value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const OAuthCodeCredential & GetOauthCodeCredential() const