AWS SDK for C++

AWS SDK for C++ Version 1.11.837

Loading...
Searching...
No Matches
WebNotificationContent.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ContentAttributes.h>
9#include <aws/connect/model/NotificationType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
32 public:
33 AWS_CONNECT_API WebNotificationContent() = default;
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline NotificationType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(NotificationType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetViewArn() const { return m_viewArn; }
60 inline bool ViewArnHasBeenSet() const { return m_viewArnHasBeenSet; }
61 template <typename ViewArnT = Aws::String>
62 void SetViewArn(ViewArnT&& value) {
63 m_viewArnHasBeenSet = true;
64 m_viewArn = std::forward<ViewArnT>(value);
65 }
66 template <typename ViewArnT = Aws::String>
68 SetViewArn(std::forward<ViewArnT>(value));
69 return *this;
70 }
72
74
78 inline const ContentAttributes& GetAttributes() const { return m_attributes; }
79 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
80 template <typename AttributesT = ContentAttributes>
81 void SetAttributes(AttributesT&& value) {
82 m_attributesHasBeenSet = true;
83 m_attributes = std::forward<AttributesT>(value);
84 }
85 template <typename AttributesT = ContentAttributes>
86 WebNotificationContent& WithAttributes(AttributesT&& value) {
87 SetAttributes(std::forward<AttributesT>(value));
88 return *this;
89 }
91 private:
93
94 Aws::String m_viewArn;
95
96 ContentAttributes m_attributes;
97 bool m_typeHasBeenSet = false;
98 bool m_viewArnHasBeenSet = false;
99 bool m_attributesHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Connect
104} // namespace Aws
const ContentAttributes & GetAttributes() const
WebNotificationContent & WithAttributes(AttributesT &&value)
AWS_CONNECT_API WebNotificationContent(Aws::Utils::Json::JsonView jsonValue)
WebNotificationContent & WithType(NotificationType value)
WebNotificationContent & WithViewArn(ViewArnT &&value)
AWS_CONNECT_API WebNotificationContent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API WebNotificationContent()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue