AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
AuthenticationMode.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/InputAuthenticationType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace MemoryDB {
22namespace Model {
23
32 public:
33 AWS_MEMORYDB_API AuthenticationMode() = default;
34 AWS_MEMORYDB_API AuthenticationMode(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_MEMORYDB_API AuthenticationMode& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
43 inline InputAuthenticationType GetType() const { return m_type; }
44 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
45 inline void SetType(InputAuthenticationType value) {
46 m_typeHasBeenSet = true;
47 m_type = value;
48 }
50 SetType(value);
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetPasswords() const { return m_passwords; }
60 inline bool PasswordsHasBeenSet() const { return m_passwordsHasBeenSet; }
61 template <typename PasswordsT = Aws::Vector<Aws::String>>
62 void SetPasswords(PasswordsT&& value) {
63 m_passwordsHasBeenSet = true;
64 m_passwords = std::forward<PasswordsT>(value);
65 }
66 template <typename PasswordsT = Aws::Vector<Aws::String>>
67 AuthenticationMode& WithPasswords(PasswordsT&& value) {
68 SetPasswords(std::forward<PasswordsT>(value));
69 return *this;
70 }
71 template <typename PasswordsT = Aws::String>
72 AuthenticationMode& AddPasswords(PasswordsT&& value) {
73 m_passwordsHasBeenSet = true;
74 m_passwords.emplace_back(std::forward<PasswordsT>(value));
75 return *this;
76 }
78 private:
80
81 Aws::Vector<Aws::String> m_passwords;
82 bool m_typeHasBeenSet = false;
83 bool m_passwordsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace MemoryDB
88} // namespace Aws
AuthenticationMode & WithType(InputAuthenticationType value)
AWS_MEMORYDB_API AuthenticationMode & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AuthenticationMode & WithPasswords(PasswordsT &&value)
AWS_MEMORYDB_API AuthenticationMode()=default
const Aws::Vector< Aws::String > & GetPasswords() const
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
InputAuthenticationType GetType() const
AuthenticationMode & AddPasswords(PasswordsT &&value)
void SetType(InputAuthenticationType value)
AWS_MEMORYDB_API AuthenticationMode(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::vector< T, Aws::Allocator< T > > Vector