AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const InputAuthenticationType& GetType() const{ return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(const InputAuthenticationType& value) { m_typeHasBeenSet = true; m_type = value; }
52 inline void SetType(InputAuthenticationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
53 inline AuthenticationMode& WithType(const InputAuthenticationType& value) { SetType(value); return *this;}
54 inline AuthenticationMode& WithType(InputAuthenticationType&& value) { SetType(std::move(value)); return *this;}
56
58
62 inline const Aws::Vector<Aws::String>& GetPasswords() const{ return m_passwords; }
63 inline bool PasswordsHasBeenSet() const { return m_passwordsHasBeenSet; }
64 inline void SetPasswords(const Aws::Vector<Aws::String>& value) { m_passwordsHasBeenSet = true; m_passwords = value; }
65 inline void SetPasswords(Aws::Vector<Aws::String>&& value) { m_passwordsHasBeenSet = true; m_passwords = std::move(value); }
66 inline AuthenticationMode& WithPasswords(const Aws::Vector<Aws::String>& value) { SetPasswords(value); return *this;}
67 inline AuthenticationMode& WithPasswords(Aws::Vector<Aws::String>&& value) { SetPasswords(std::move(value)); return *this;}
68 inline AuthenticationMode& AddPasswords(const Aws::String& value) { m_passwordsHasBeenSet = true; m_passwords.push_back(value); return *this; }
69 inline AuthenticationMode& AddPasswords(Aws::String&& value) { m_passwordsHasBeenSet = true; m_passwords.push_back(std::move(value)); return *this; }
70 inline AuthenticationMode& AddPasswords(const char* value) { m_passwordsHasBeenSet = true; m_passwords.push_back(value); return *this; }
72 private:
73
75 bool m_typeHasBeenSet = false;
76
77 Aws::Vector<Aws::String> m_passwords;
78 bool m_passwordsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ElastiCache
83} // namespace Aws
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AuthenticationMode & AddPasswords(const Aws::String &value)
void SetType(InputAuthenticationType &&value)
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
const Aws::Vector< Aws::String > & GetPasswords() const
AuthenticationMode & AddPasswords(const char *value)
AuthenticationMode & WithType(const InputAuthenticationType &value)
AuthenticationMode & WithType(InputAuthenticationType &&value)
AuthenticationMode & AddPasswords(Aws::String &&value)
void SetType(const InputAuthenticationType &value)
AuthenticationMode & WithPasswords(Aws::Vector< Aws::String > &&value)
AuthenticationMode & WithPasswords(const Aws::Vector< Aws::String > &value)
const InputAuthenticationType & GetType() const
AWS_ELASTICACHE_API AuthenticationMode(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPasswords(Aws::Vector< Aws::String > &&value)
void SetPasswords(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream