AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AuthenticationMode.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/InputAuthenticationType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElastiCache {
22namespace Model {
23
30 public:
31 AWS_ELASTICACHE_API AuthenticationMode() = default;
32 AWS_ELASTICACHE_API AuthenticationMode(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_ELASTICACHE_API AuthenticationMode& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) 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
60 inline const Aws::Vector<Aws::String>& GetPasswords() const { return m_passwords; }
61 inline bool PasswordsHasBeenSet() const { return m_passwordsHasBeenSet; }
62 template <typename PasswordsT = Aws::Vector<Aws::String>>
63 void SetPasswords(PasswordsT&& value) {
64 m_passwordsHasBeenSet = true;
65 m_passwords = std::forward<PasswordsT>(value);
66 }
67 template <typename PasswordsT = Aws::Vector<Aws::String>>
68 AuthenticationMode& WithPasswords(PasswordsT&& value) {
69 SetPasswords(std::forward<PasswordsT>(value));
70 return *this;
71 }
72 template <typename PasswordsT = Aws::String>
73 AuthenticationMode& AddPasswords(PasswordsT&& value) {
74 m_passwordsHasBeenSet = true;
75 m_passwords.emplace_back(std::forward<PasswordsT>(value));
76 return *this;
77 }
79 private:
81
82 Aws::Vector<Aws::String> m_passwords;
83 bool m_typeHasBeenSet = false;
84 bool m_passwordsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace ElastiCache
89} // namespace Aws
void SetType(InputAuthenticationType value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InputAuthenticationType GetType() const
AuthenticationMode & AddPasswords(PasswordsT &&value)
AWS_ELASTICACHE_API AuthenticationMode()=default
AWS_ELASTICACHE_API AuthenticationMode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AuthenticationMode & WithPasswords(PasswordsT &&value)
const Aws::Vector< Aws::String > & GetPasswords() const
AWS_ELASTICACHE_API AuthenticationMode(const Aws::Utils::Xml::XmlNode &xmlNode)
AuthenticationMode & WithType(InputAuthenticationType value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream