AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AuthenticationMode.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/elasticache/model/InputAuthenticationType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElastiCache
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ELASTICACHE_API AuthenticationMode() = default;
37 AWS_ELASTICACHE_API AuthenticationMode(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICACHE_API AuthenticationMode& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline InputAuthenticationType GetType() const { return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(InputAuthenticationType value) { m_typeHasBeenSet = true; m_type = value; }
52 inline AuthenticationMode& WithType(InputAuthenticationType value) { SetType(value); return *this;}
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) { m_passwordsHasBeenSet = true; m_passwords = std::forward<PasswordsT>(value); }
64 template<typename PasswordsT = Aws::Vector<Aws::String>>
65 AuthenticationMode& WithPasswords(PasswordsT&& value) { SetPasswords(std::forward<PasswordsT>(value)); return *this;}
66 template<typename PasswordsT = Aws::String>
67 AuthenticationMode& AddPasswords(PasswordsT&& value) { m_passwordsHasBeenSet = true; m_passwords.emplace_back(std::forward<PasswordsT>(value)); return *this; }
69 private:
70
72 bool m_typeHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_passwords;
75 bool m_passwordsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace ElastiCache
80} // 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