AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AccountWithRestoreAccess.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
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:
35 AWS_REDSHIFT_API AccountWithRestoreAccess() = default;
36 AWS_REDSHIFT_API AccountWithRestoreAccess(const Aws::Utils::Xml::XmlNode& xmlNode);
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
44
48 inline const Aws::String& GetAccountId() const { return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 template<typename AccountIdT = Aws::String>
51 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
52 template<typename AccountIdT = Aws::String>
53 AccountWithRestoreAccess& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
55
57
62 inline const Aws::String& GetAccountAlias() const { return m_accountAlias; }
63 inline bool AccountAliasHasBeenSet() const { return m_accountAliasHasBeenSet; }
64 template<typename AccountAliasT = Aws::String>
65 void SetAccountAlias(AccountAliasT&& value) { m_accountAliasHasBeenSet = true; m_accountAlias = std::forward<AccountAliasT>(value); }
66 template<typename AccountAliasT = Aws::String>
67 AccountWithRestoreAccess& WithAccountAlias(AccountAliasT&& value) { SetAccountAlias(std::forward<AccountAliasT>(value)); return *this;}
69 private:
70
71 Aws::String m_accountId;
72 bool m_accountIdHasBeenSet = false;
73
74 Aws::String m_accountAlias;
75 bool m_accountAliasHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Redshift
80} // namespace Aws
AccountWithRestoreAccess & WithAccountId(AccountIdT &&value)
AWS_REDSHIFT_API AccountWithRestoreAccess()=default
AWS_REDSHIFT_API AccountWithRestoreAccess & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_REDSHIFT_API AccountWithRestoreAccess(const Aws::Utils::Xml::XmlNode &xmlNode)
AccountWithRestoreAccess & WithAccountAlias(AccountAliasT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream