AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AccountWithRestoreAccess.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift
22{
23namespace Model
24{
25
33 {
34 public:
38
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
47 inline const Aws::String& GetAccountId() const{ return m_accountId; }
48
53 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
54
59 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
60
65 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
66
71 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
72
77 inline AccountWithRestoreAccess& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
78
83 inline AccountWithRestoreAccess& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
84
89 inline AccountWithRestoreAccess& WithAccountId(const char* value) { SetAccountId(value); return *this;}
90
91
97 inline const Aws::String& GetAccountAlias() const{ return m_accountAlias; }
98
104 inline bool AccountAliasHasBeenSet() const { return m_accountAliasHasBeenSet; }
105
111 inline void SetAccountAlias(const Aws::String& value) { m_accountAliasHasBeenSet = true; m_accountAlias = value; }
112
118 inline void SetAccountAlias(Aws::String&& value) { m_accountAliasHasBeenSet = true; m_accountAlias = std::move(value); }
119
125 inline void SetAccountAlias(const char* value) { m_accountAliasHasBeenSet = true; m_accountAlias.assign(value); }
126
132 inline AccountWithRestoreAccess& WithAccountAlias(const Aws::String& value) { SetAccountAlias(value); return *this;}
133
139 inline AccountWithRestoreAccess& WithAccountAlias(Aws::String&& value) { SetAccountAlias(std::move(value)); return *this;}
140
146 inline AccountWithRestoreAccess& WithAccountAlias(const char* value) { SetAccountAlias(value); return *this;}
147
148 private:
149
150 Aws::String m_accountId;
151 bool m_accountIdHasBeenSet = false;
152
153 Aws::String m_accountAlias;
154 bool m_accountAliasHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace Redshift
159} // namespace Aws
#define AWS_REDSHIFT_API
AWS_REDSHIFT_API AccountWithRestoreAccess & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AccountWithRestoreAccess & WithAccountId(const Aws::String &value)
AccountWithRestoreAccess & WithAccountId(const char *value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AccountWithRestoreAccess & WithAccountAlias(const Aws::String &value)
AWS_REDSHIFT_API AccountWithRestoreAccess(const Aws::Utils::Xml::XmlNode &xmlNode)
AccountWithRestoreAccess & WithAccountAlias(Aws::String &&value)
AccountWithRestoreAccess & WithAccountId(Aws::String &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AccountWithRestoreAccess & WithAccountAlias(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream