AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AccountWithRestoreAccess.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Redshift {
20namespace Model {
21
29 public:
30 AWS_REDSHIFT_API AccountWithRestoreAccess() = default;
31 AWS_REDSHIFT_API AccountWithRestoreAccess(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
42 inline const Aws::String& GetAccountId() const { return m_accountId; }
43 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
44 template <typename AccountIdT = Aws::String>
45 void SetAccountId(AccountIdT&& value) {
46 m_accountIdHasBeenSet = true;
47 m_accountId = std::forward<AccountIdT>(value);
48 }
49 template <typename AccountIdT = Aws::String>
51 SetAccountId(std::forward<AccountIdT>(value));
52 return *this;
53 }
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) {
66 m_accountAliasHasBeenSet = true;
67 m_accountAlias = std::forward<AccountAliasT>(value);
68 }
69 template <typename AccountAliasT = Aws::String>
71 SetAccountAlias(std::forward<AccountAliasT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_accountId;
77
78 Aws::String m_accountAlias;
79 bool m_accountIdHasBeenSet = false;
80 bool m_accountAliasHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Redshift
85} // 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