AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
TlsAuthConfiguration.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/mailmanager/MailManager_EXPORTS.h>
9#include <aws/mailmanager/model/TrustStore.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace MailManager {
20namespace Model {
21
29 public:
30 AWS_MAILMANAGER_API TlsAuthConfiguration() = default;
31 AWS_MAILMANAGER_API TlsAuthConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_MAILMANAGER_API TlsAuthConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const TrustStore& GetTrustStore() const { return m_trustStore; }
40 inline bool TrustStoreHasBeenSet() const { return m_trustStoreHasBeenSet; }
41 template <typename TrustStoreT = TrustStore>
42 void SetTrustStore(TrustStoreT&& value) {
43 m_trustStoreHasBeenSet = true;
44 m_trustStore = std::forward<TrustStoreT>(value);
45 }
46 template <typename TrustStoreT = TrustStore>
47 TlsAuthConfiguration& WithTrustStore(TrustStoreT&& value) {
48 SetTrustStore(std::forward<TrustStoreT>(value));
49 return *this;
50 }
52 private:
53 TrustStore m_trustStore;
54 bool m_trustStoreHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace MailManager
59} // namespace Aws
AWS_MAILMANAGER_API TlsAuthConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MAILMANAGER_API TlsAuthConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
TlsAuthConfiguration & WithTrustStore(TrustStoreT &&value)
AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_MAILMANAGER_API TlsAuthConfiguration()=default