AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PortalContent.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/apiportal/model/PortalTheme.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace APIPortal {
21namespace Model {
22
29 public:
30 AWS_APIPORTAL_API PortalContent() = default;
31 AWS_APIPORTAL_API PortalContent(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIPORTAL_API PortalContent& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDisplayName() const { return m_displayName; }
40 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
41 template <typename DisplayNameT = Aws::String>
42 void SetDisplayName(DisplayNameT&& value) {
43 m_displayNameHasBeenSet = true;
44 m_displayName = std::forward<DisplayNameT>(value);
45 }
46 template <typename DisplayNameT = Aws::String>
47 PortalContent& WithDisplayName(DisplayNameT&& value) {
48 SetDisplayName(std::forward<DisplayNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 PortalContent& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const PortalTheme& GetTheme() const { return m_theme; }
76 inline bool ThemeHasBeenSet() const { return m_themeHasBeenSet; }
77 template <typename ThemeT = PortalTheme>
78 void SetTheme(ThemeT&& value) {
79 m_themeHasBeenSet = true;
80 m_theme = std::forward<ThemeT>(value);
81 }
82 template <typename ThemeT = PortalTheme>
83 PortalContent& WithTheme(ThemeT&& value) {
84 SetTheme(std::forward<ThemeT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_displayName;
90
91 Aws::String m_description;
92
93 PortalTheme m_theme;
94 bool m_displayNameHasBeenSet = false;
95 bool m_descriptionHasBeenSet = false;
96 bool m_themeHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace APIPortal
101} // namespace Aws
AWS_APIPORTAL_API PortalContent(Aws::Utils::Json::JsonView jsonValue)
PortalContent & WithTheme(ThemeT &&value)
const Aws::String & GetDescription() const
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetDisplayName() const
AWS_APIPORTAL_API PortalContent()=default
void SetDescription(DescriptionT &&value)
AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const
const PortalTheme & GetTheme() const
PortalContent & WithDescription(DescriptionT &&value)
AWS_APIPORTAL_API PortalContent & operator=(Aws::Utils::Json::JsonView jsonValue)
PortalContent & WithDisplayName(DisplayNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue