AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Theme.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/ThemeFooterLink.h>
9#include <aws/appstream/model/ThemeState.h>
10#include <aws/appstream/model/ThemeStyling.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppStream {
25namespace Model {
26
33class Theme {
34 public:
35 AWS_APPSTREAM_API Theme() = default;
36 AWS_APPSTREAM_API Theme(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPSTREAM_API Theme& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetStackName() const { return m_stackName; }
45 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
46 template <typename StackNameT = Aws::String>
47 void SetStackName(StackNameT&& value) {
48 m_stackNameHasBeenSet = true;
49 m_stackName = std::forward<StackNameT>(value);
50 }
51 template <typename StackNameT = Aws::String>
52 Theme& WithStackName(StackNameT&& value) {
53 SetStackName(std::forward<StackNameT>(value));
54 return *this;
55 }
57
59
62 inline ThemeState GetState() const { return m_state; }
63 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
64 inline void SetState(ThemeState value) {
65 m_stateHasBeenSet = true;
66 m_state = value;
67 }
68 inline Theme& WithState(ThemeState value) {
69 SetState(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetThemeTitleText() const { return m_themeTitleText; }
79 inline bool ThemeTitleTextHasBeenSet() const { return m_themeTitleTextHasBeenSet; }
80 template <typename ThemeTitleTextT = Aws::String>
81 void SetThemeTitleText(ThemeTitleTextT&& value) {
82 m_themeTitleTextHasBeenSet = true;
83 m_themeTitleText = std::forward<ThemeTitleTextT>(value);
84 }
85 template <typename ThemeTitleTextT = Aws::String>
86 Theme& WithThemeTitleText(ThemeTitleTextT&& value) {
87 SetThemeTitleText(std::forward<ThemeTitleTextT>(value));
88 return *this;
89 }
91
93
97 inline ThemeStyling GetThemeStyling() const { return m_themeStyling; }
98 inline bool ThemeStylingHasBeenSet() const { return m_themeStylingHasBeenSet; }
99 inline void SetThemeStyling(ThemeStyling value) {
100 m_themeStylingHasBeenSet = true;
101 m_themeStyling = value;
102 }
104 SetThemeStyling(value);
105 return *this;
106 }
108
110
113 inline const Aws::Vector<ThemeFooterLink>& GetThemeFooterLinks() const { return m_themeFooterLinks; }
114 inline bool ThemeFooterLinksHasBeenSet() const { return m_themeFooterLinksHasBeenSet; }
115 template <typename ThemeFooterLinksT = Aws::Vector<ThemeFooterLink>>
116 void SetThemeFooterLinks(ThemeFooterLinksT&& value) {
117 m_themeFooterLinksHasBeenSet = true;
118 m_themeFooterLinks = std::forward<ThemeFooterLinksT>(value);
119 }
120 template <typename ThemeFooterLinksT = Aws::Vector<ThemeFooterLink>>
121 Theme& WithThemeFooterLinks(ThemeFooterLinksT&& value) {
122 SetThemeFooterLinks(std::forward<ThemeFooterLinksT>(value));
123 return *this;
124 }
125 template <typename ThemeFooterLinksT = ThemeFooterLink>
126 Theme& AddThemeFooterLinks(ThemeFooterLinksT&& value) {
127 m_themeFooterLinksHasBeenSet = true;
128 m_themeFooterLinks.emplace_back(std::forward<ThemeFooterLinksT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetThemeOrganizationLogoURL() const { return m_themeOrganizationLogoURL; }
138 inline bool ThemeOrganizationLogoURLHasBeenSet() const { return m_themeOrganizationLogoURLHasBeenSet; }
139 template <typename ThemeOrganizationLogoURLT = Aws::String>
140 void SetThemeOrganizationLogoURL(ThemeOrganizationLogoURLT&& value) {
141 m_themeOrganizationLogoURLHasBeenSet = true;
142 m_themeOrganizationLogoURL = std::forward<ThemeOrganizationLogoURLT>(value);
143 }
144 template <typename ThemeOrganizationLogoURLT = Aws::String>
145 Theme& WithThemeOrganizationLogoURL(ThemeOrganizationLogoURLT&& value) {
146 SetThemeOrganizationLogoURL(std::forward<ThemeOrganizationLogoURLT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::String& GetThemeFaviconURL() const { return m_themeFaviconURL; }
157 inline bool ThemeFaviconURLHasBeenSet() const { return m_themeFaviconURLHasBeenSet; }
158 template <typename ThemeFaviconURLT = Aws::String>
159 void SetThemeFaviconURL(ThemeFaviconURLT&& value) {
160 m_themeFaviconURLHasBeenSet = true;
161 m_themeFaviconURL = std::forward<ThemeFaviconURLT>(value);
162 }
163 template <typename ThemeFaviconURLT = Aws::String>
164 Theme& WithThemeFaviconURL(ThemeFaviconURLT&& value) {
165 SetThemeFaviconURL(std::forward<ThemeFaviconURLT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
175 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
176 template <typename CreatedTimeT = Aws::Utils::DateTime>
177 void SetCreatedTime(CreatedTimeT&& value) {
178 m_createdTimeHasBeenSet = true;
179 m_createdTime = std::forward<CreatedTimeT>(value);
180 }
181 template <typename CreatedTimeT = Aws::Utils::DateTime>
182 Theme& WithCreatedTime(CreatedTimeT&& value) {
183 SetCreatedTime(std::forward<CreatedTimeT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_stackName;
189
191
192 Aws::String m_themeTitleText;
193
194 ThemeStyling m_themeStyling{ThemeStyling::NOT_SET};
195
196 Aws::Vector<ThemeFooterLink> m_themeFooterLinks;
197
198 Aws::String m_themeOrganizationLogoURL;
199
200 Aws::String m_themeFaviconURL;
201
202 Aws::Utils::DateTime m_createdTime{};
203 bool m_stackNameHasBeenSet = false;
204 bool m_stateHasBeenSet = false;
205 bool m_themeTitleTextHasBeenSet = false;
206 bool m_themeStylingHasBeenSet = false;
207 bool m_themeFooterLinksHasBeenSet = false;
208 bool m_themeOrganizationLogoURLHasBeenSet = false;
209 bool m_themeFaviconURLHasBeenSet = false;
210 bool m_createdTimeHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace AppStream
215} // namespace Aws
bool ThemeFooterLinksHasBeenSet() const
Definition Theme.h:114
AWS_APPSTREAM_API Theme & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(ThemeState value)
Definition Theme.h:64
const Aws::String & GetThemeTitleText() const
Definition Theme.h:78
Theme & AddThemeFooterLinks(ThemeFooterLinksT &&value)
Definition Theme.h:126
ThemeState GetState() const
Definition Theme.h:62
Theme & WithState(ThemeState value)
Definition Theme.h:68
Theme & WithThemeStyling(ThemeStyling value)
Definition Theme.h:103
void SetCreatedTime(CreatedTimeT &&value)
Definition Theme.h:177
AWS_APPSTREAM_API Theme()=default
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ThemeFooterLink > & GetThemeFooterLinks() const
Definition Theme.h:113
const Aws::String & GetThemeFaviconURL() const
Definition Theme.h:156
bool StateHasBeenSet() const
Definition Theme.h:63
const Aws::String & GetStackName() const
Definition Theme.h:44
ThemeStyling GetThemeStyling() const
Definition Theme.h:97
void SetThemeFooterLinks(ThemeFooterLinksT &&value)
Definition Theme.h:116
bool ThemeTitleTextHasBeenSet() const
Definition Theme.h:79
Theme & WithCreatedTime(CreatedTimeT &&value)
Definition Theme.h:182
AWS_APPSTREAM_API Theme(Aws::Utils::Json::JsonView jsonValue)
Theme & WithThemeTitleText(ThemeTitleTextT &&value)
Definition Theme.h:86
void SetStackName(StackNameT &&value)
Definition Theme.h:47
Theme & WithThemeFooterLinks(ThemeFooterLinksT &&value)
Definition Theme.h:121
const Aws::String & GetThemeOrganizationLogoURL() const
Definition Theme.h:137
void SetThemeTitleText(ThemeTitleTextT &&value)
Definition Theme.h:81
Theme & WithThemeFaviconURL(ThemeFaviconURLT &&value)
Definition Theme.h:164
void SetThemeStyling(ThemeStyling value)
Definition Theme.h:99
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Theme.h:174
bool ThemeStylingHasBeenSet() const
Definition Theme.h:98
bool CreatedTimeHasBeenSet() const
Definition Theme.h:175
void SetThemeOrganizationLogoURL(ThemeOrganizationLogoURLT &&value)
Definition Theme.h:140
Theme & WithStackName(StackNameT &&value)
Definition Theme.h:52
Theme & WithThemeOrganizationLogoURL(ThemeOrganizationLogoURLT &&value)
Definition Theme.h:145
void SetThemeFaviconURL(ThemeFaviconURLT &&value)
Definition Theme.h:159
bool ThemeOrganizationLogoURLHasBeenSet() const
Definition Theme.h:138
bool StackNameHasBeenSet() const
Definition Theme.h:45
bool ThemeFaviconURLHasBeenSet() const
Definition Theme.h:157
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue