AWS SDK for C++  1.9.153
AWS SDK for C++
AccountWithRestoreAccess.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace Redshift
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  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;
152 
153  Aws::String m_accountAlias;
154  bool m_accountAliasHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace Redshift
159 } // namespace Aws
Aws::Redshift::Model::AccountWithRestoreAccess::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: AccountWithRestoreAccess.h:65
Aws::Redshift::Model::AccountWithRestoreAccess::AccountWithRestoreAccess
AccountWithRestoreAccess(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::AccountWithRestoreAccess::GetAccountAlias
const Aws::String & GetAccountAlias() const
Definition: AccountWithRestoreAccess.h:97
Aws::Redshift::Model::AccountWithRestoreAccess::WithAccountAlias
AccountWithRestoreAccess & WithAccountAlias(const char *value)
Definition: AccountWithRestoreAccess.h:146
Aws::Redshift::Model::AccountWithRestoreAccess::AccountWithRestoreAccess
AccountWithRestoreAccess()
Aws::Redshift::Model::AccountWithRestoreAccess::operator=
AccountWithRestoreAccess & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::Redshift::Model::AccountWithRestoreAccess::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::AccountWithRestoreAccess::WithAccountAlias
AccountWithRestoreAccess & WithAccountAlias(Aws::String &&value)
Definition: AccountWithRestoreAccess.h:139
Aws::Redshift::Model::AccountWithRestoreAccess::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: AccountWithRestoreAccess.h:53
Aws::Redshift::Model::AccountWithRestoreAccess::WithAccountAlias
AccountWithRestoreAccess & WithAccountAlias(const Aws::String &value)
Definition: AccountWithRestoreAccess.h:132
Aws::Redshift::Model::AccountWithRestoreAccess::AccountAliasHasBeenSet
bool AccountAliasHasBeenSet() const
Definition: AccountWithRestoreAccess.h:104
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::AccountWithRestoreAccess::WithAccountId
AccountWithRestoreAccess & WithAccountId(const Aws::String &value)
Definition: AccountWithRestoreAccess.h:77
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::AccountWithRestoreAccess::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: AccountWithRestoreAccess.h:59
Aws::Redshift::Model::AccountWithRestoreAccess::SetAccountId
void SetAccountId(const char *value)
Definition: AccountWithRestoreAccess.h:71
Aws::Redshift::Model::AccountWithRestoreAccess::SetAccountAlias
void SetAccountAlias(const Aws::String &value)
Definition: AccountWithRestoreAccess.h:111
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::AccountWithRestoreAccess::WithAccountId
AccountWithRestoreAccess & WithAccountId(Aws::String &&value)
Definition: AccountWithRestoreAccess.h:83
Aws::Redshift::Model::AccountWithRestoreAccess::WithAccountId
AccountWithRestoreAccess & WithAccountId(const char *value)
Definition: AccountWithRestoreAccess.h:89
Aws::Redshift::Model::AccountWithRestoreAccess::SetAccountAlias
void SetAccountAlias(const char *value)
Definition: AccountWithRestoreAccess.h:125
AWSString.h
Aws::Redshift::Model::AccountWithRestoreAccess::GetAccountId
const Aws::String & GetAccountId() const
Definition: AccountWithRestoreAccess.h:47
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::AccountWithRestoreAccess::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::AccountWithRestoreAccess
Definition: AccountWithRestoreAccess.h:33
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::AccountWithRestoreAccess::SetAccountAlias
void SetAccountAlias(Aws::String &&value)
Definition: AccountWithRestoreAccess.h:118