AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Authentication.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/memorydb/MemoryDB_EXPORTS.h>
9#include <aws/memorydb/model/AuthenticationType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace MemoryDB {
20namespace Model {
21
30 public:
31 AWS_MEMORYDB_API Authentication() = default;
32 AWS_MEMORYDB_API Authentication(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_MEMORYDB_API Authentication& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline AuthenticationType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(AuthenticationType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
56 inline int64_t GetPasswordCount() const { return m_passwordCount; }
57 inline bool PasswordCountHasBeenSet() const { return m_passwordCountHasBeenSet; }
58 inline void SetPasswordCount(int64_t value) {
59 m_passwordCountHasBeenSet = true;
60 m_passwordCount = value;
61 }
62 inline Authentication& WithPasswordCount(int64_t value) {
63 SetPasswordCount(value);
64 return *this;
65 }
67 private:
69
70 int64_t m_passwordCount{0};
71 bool m_typeHasBeenSet = false;
72 bool m_passwordCountHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace MemoryDB
77} // namespace Aws
Authentication & WithPasswordCount(int64_t value)
AWS_MEMORYDB_API Authentication()=default
AuthenticationType GetType() const
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetType(AuthenticationType value)
AWS_MEMORYDB_API Authentication(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MEMORYDB_API Authentication & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Authentication & WithType(AuthenticationType value)