AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
BrandingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
10#include <aws/workspaces-web/model/ColorTheme.h>
11#include <aws/workspaces-web/model/ImageMetadata.h>
12#include <aws/workspaces-web/model/Locale.h>
13#include <aws/workspaces-web/model/LocalizedBrandingStrings.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WorkSpacesWeb {
25namespace Model {
26
34 public:
35 AWS_WORKSPACESWEB_API BrandingConfiguration() = default;
36 AWS_WORKSPACESWEB_API BrandingConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const ImageMetadata& GetLogo() const { return m_logo; }
46 inline bool LogoHasBeenSet() const { return m_logoHasBeenSet; }
47 template <typename LogoT = ImageMetadata>
48 void SetLogo(LogoT&& value) {
49 m_logoHasBeenSet = true;
50 m_logo = std::forward<LogoT>(value);
51 }
52 template <typename LogoT = ImageMetadata>
54 SetLogo(std::forward<LogoT>(value));
55 return *this;
56 }
58
60
64 inline const ImageMetadata& GetWallpaper() const { return m_wallpaper; }
65 inline bool WallpaperHasBeenSet() const { return m_wallpaperHasBeenSet; }
66 template <typename WallpaperT = ImageMetadata>
67 void SetWallpaper(WallpaperT&& value) {
68 m_wallpaperHasBeenSet = true;
69 m_wallpaper = std::forward<WallpaperT>(value);
70 }
71 template <typename WallpaperT = ImageMetadata>
72 BrandingConfiguration& WithWallpaper(WallpaperT&& value) {
73 SetWallpaper(std::forward<WallpaperT>(value));
74 return *this;
75 }
77
79
83 inline const ImageMetadata& GetFavicon() const { return m_favicon; }
84 inline bool FaviconHasBeenSet() const { return m_faviconHasBeenSet; }
85 template <typename FaviconT = ImageMetadata>
86 void SetFavicon(FaviconT&& value) {
87 m_faviconHasBeenSet = true;
88 m_favicon = std::forward<FaviconT>(value);
89 }
90 template <typename FaviconT = ImageMetadata>
92 SetFavicon(std::forward<FaviconT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::Map<Locale, LocalizedBrandingStrings>& GetLocalizedStrings() const { return m_localizedStrings; }
103 inline bool LocalizedStringsHasBeenSet() const { return m_localizedStringsHasBeenSet; }
104 template <typename LocalizedStringsT = Aws::Map<Locale, LocalizedBrandingStrings>>
105 void SetLocalizedStrings(LocalizedStringsT&& value) {
106 m_localizedStringsHasBeenSet = true;
107 m_localizedStrings = std::forward<LocalizedStringsT>(value);
108 }
109 template <typename LocalizedStringsT = Aws::Map<Locale, LocalizedBrandingStrings>>
110 BrandingConfiguration& WithLocalizedStrings(LocalizedStringsT&& value) {
111 SetLocalizedStrings(std::forward<LocalizedStringsT>(value));
112 return *this;
113 }
115 m_localizedStringsHasBeenSet = true;
116 m_localizedStrings.emplace(key, value);
117 return *this;
118 }
120
122
125 inline ColorTheme GetColorTheme() const { return m_colorTheme; }
126 inline bool ColorThemeHasBeenSet() const { return m_colorThemeHasBeenSet; }
127 inline void SetColorTheme(ColorTheme value) {
128 m_colorThemeHasBeenSet = true;
129 m_colorTheme = value;
130 }
132 SetColorTheme(value);
133 return *this;
134 }
136
138
142 inline const Aws::String& GetTermsOfService() const { return m_termsOfService; }
143 inline bool TermsOfServiceHasBeenSet() const { return m_termsOfServiceHasBeenSet; }
144 template <typename TermsOfServiceT = Aws::String>
145 void SetTermsOfService(TermsOfServiceT&& value) {
146 m_termsOfServiceHasBeenSet = true;
147 m_termsOfService = std::forward<TermsOfServiceT>(value);
148 }
149 template <typename TermsOfServiceT = Aws::String>
150 BrandingConfiguration& WithTermsOfService(TermsOfServiceT&& value) {
151 SetTermsOfService(std::forward<TermsOfServiceT>(value));
152 return *this;
153 }
155 private:
156 ImageMetadata m_logo;
157
158 ImageMetadata m_wallpaper;
159
160 ImageMetadata m_favicon;
161
163
164 ColorTheme m_colorTheme{ColorTheme::NOT_SET};
165
166 Aws::String m_termsOfService;
167 bool m_logoHasBeenSet = false;
168 bool m_wallpaperHasBeenSet = false;
169 bool m_faviconHasBeenSet = false;
170 bool m_localizedStringsHasBeenSet = false;
171 bool m_colorThemeHasBeenSet = false;
172 bool m_termsOfServiceHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace WorkSpacesWeb
177} // namespace Aws
const Aws::Map< Locale, LocalizedBrandingStrings > & GetLocalizedStrings() const
AWS_WORKSPACESWEB_API BrandingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const
BrandingConfiguration & WithWallpaper(WallpaperT &&value)
BrandingConfiguration & WithLogo(LogoT &&value)
BrandingConfiguration & WithLocalizedStrings(LocalizedStringsT &&value)
AWS_WORKSPACESWEB_API BrandingConfiguration()=default
BrandingConfiguration & AddLocalizedStrings(Locale key, LocalizedBrandingStrings value)
AWS_WORKSPACESWEB_API BrandingConfiguration(Aws::Utils::Json::JsonView jsonValue)
BrandingConfiguration & WithColorTheme(ColorTheme value)
BrandingConfiguration & WithTermsOfService(TermsOfServiceT &&value)
BrandingConfiguration & WithFavicon(FaviconT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue