AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AccountSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/Edition.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
30 public:
31 AWS_QUICKSIGHT_API AccountSettings() = default;
32 AWS_QUICKSIGHT_API AccountSettings(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetAccountName() const { return m_accountName; }
44 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
45 template <typename AccountNameT = Aws::String>
46 void SetAccountName(AccountNameT&& value) {
47 m_accountNameHasBeenSet = true;
48 m_accountName = std::forward<AccountNameT>(value);
49 }
50 template <typename AccountNameT = Aws::String>
51 AccountSettings& WithAccountName(AccountNameT&& value) {
52 SetAccountName(std::forward<AccountNameT>(value));
53 return *this;
54 }
56
58
62 inline Edition GetEdition() const { return m_edition; }
63 inline bool EditionHasBeenSet() const { return m_editionHasBeenSet; }
64 inline void SetEdition(Edition value) {
65 m_editionHasBeenSet = true;
66 m_edition = value;
67 }
69 SetEdition(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDefaultNamespace() const { return m_defaultNamespace; }
79 inline bool DefaultNamespaceHasBeenSet() const { return m_defaultNamespaceHasBeenSet; }
80 template <typename DefaultNamespaceT = Aws::String>
81 void SetDefaultNamespace(DefaultNamespaceT&& value) {
82 m_defaultNamespaceHasBeenSet = true;
83 m_defaultNamespace = std::forward<DefaultNamespaceT>(value);
84 }
85 template <typename DefaultNamespaceT = Aws::String>
86 AccountSettings& WithDefaultNamespace(DefaultNamespaceT&& value) {
87 SetDefaultNamespace(std::forward<DefaultNamespaceT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetNotificationEmail() const { return m_notificationEmail; }
97 inline bool NotificationEmailHasBeenSet() const { return m_notificationEmailHasBeenSet; }
98 template <typename NotificationEmailT = Aws::String>
99 void SetNotificationEmail(NotificationEmailT&& value) {
100 m_notificationEmailHasBeenSet = true;
101 m_notificationEmail = std::forward<NotificationEmailT>(value);
102 }
103 template <typename NotificationEmailT = Aws::String>
104 AccountSettings& WithNotificationEmail(NotificationEmailT&& value) {
105 SetNotificationEmail(std::forward<NotificationEmailT>(value));
106 return *this;
107 }
109
111
117 inline bool GetPublicSharingEnabled() const { return m_publicSharingEnabled; }
118 inline bool PublicSharingEnabledHasBeenSet() const { return m_publicSharingEnabledHasBeenSet; }
119 inline void SetPublicSharingEnabled(bool value) {
120 m_publicSharingEnabledHasBeenSet = true;
121 m_publicSharingEnabled = value;
122 }
125 return *this;
126 }
128
130
137 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
138 inline bool TerminationProtectionEnabledHasBeenSet() const { return m_terminationProtectionEnabledHasBeenSet; }
139 inline void SetTerminationProtectionEnabled(bool value) {
140 m_terminationProtectionEnabledHasBeenSet = true;
141 m_terminationProtectionEnabled = value;
142 }
145 return *this;
146 }
148 private:
149 Aws::String m_accountName;
150
151 Edition m_edition{Edition::NOT_SET};
152
153 Aws::String m_defaultNamespace;
154
155 Aws::String m_notificationEmail;
156
157 bool m_publicSharingEnabled{false};
158
159 bool m_terminationProtectionEnabled{false};
160 bool m_accountNameHasBeenSet = false;
161 bool m_editionHasBeenSet = false;
162 bool m_defaultNamespaceHasBeenSet = false;
163 bool m_notificationEmailHasBeenSet = false;
164 bool m_publicSharingEnabledHasBeenSet = false;
165 bool m_terminationProtectionEnabledHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace QuickSight
170} // namespace Aws
void SetAccountName(AccountNameT &&value)
AccountSettings & WithEdition(Edition value)
const Aws::String & GetNotificationEmail() const
AccountSettings & WithTerminationProtectionEnabled(bool value)
AWS_QUICKSIGHT_API AccountSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API AccountSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API AccountSettings()=default
AccountSettings & WithDefaultNamespace(DefaultNamespaceT &&value)
const Aws::String & GetDefaultNamespace() const
void SetNotificationEmail(NotificationEmailT &&value)
AccountSettings & WithPublicSharingEnabled(bool value)
AccountSettings & WithAccountName(AccountNameT &&value)
AccountSettings & WithNotificationEmail(NotificationEmailT &&value)
const Aws::String & GetAccountName() const
void SetDefaultNamespace(DefaultNamespaceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue