AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Topic.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/NotificationResource.h>
9#include <aws/datazone/model/NotificationRole.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataZone
24{
25namespace Model
26{
27
33 class Topic
34 {
35 public:
36 AWS_DATAZONE_API Topic();
37 AWS_DATAZONE_API Topic(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAZONE_API Topic& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const NotificationResource& GetResource() const{ return m_resource; }
45 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
46 inline void SetResource(const NotificationResource& value) { m_resourceHasBeenSet = true; m_resource = value; }
47 inline void SetResource(NotificationResource&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
48 inline Topic& WithResource(const NotificationResource& value) { SetResource(value); return *this;}
49 inline Topic& WithResource(NotificationResource&& value) { SetResource(std::move(value)); return *this;}
51
53
56 inline const NotificationRole& GetRole() const{ return m_role; }
57 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
58 inline void SetRole(const NotificationRole& value) { m_roleHasBeenSet = true; m_role = value; }
59 inline void SetRole(NotificationRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
60 inline Topic& WithRole(const NotificationRole& value) { SetRole(value); return *this;}
61 inline Topic& WithRole(NotificationRole&& value) { SetRole(std::move(value)); return *this;}
63
65
68 inline const Aws::String& GetSubject() const{ return m_subject; }
69 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
70 inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
71 inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
72 inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
73 inline Topic& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
74 inline Topic& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
75 inline Topic& WithSubject(const char* value) { SetSubject(value); return *this;}
77 private:
78
79 NotificationResource m_resource;
80 bool m_resourceHasBeenSet = false;
81
82 NotificationRole m_role;
83 bool m_roleHasBeenSet = false;
84
85 Aws::String m_subject;
86 bool m_subjectHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace DataZone
91} // namespace Aws
Topic & WithResource(NotificationResource &&value)
Definition Topic.h:49
AWS_DATAZONE_API Topic(Aws::Utils::Json::JsonView jsonValue)
Topic & WithRole(const NotificationRole &value)
Definition Topic.h:60
const NotificationResource & GetResource() const
Definition Topic.h:44
const NotificationRole & GetRole() const
Definition Topic.h:56
void SetResource(NotificationResource &&value)
Definition Topic.h:47
void SetSubject(Aws::String &&value)
Definition Topic.h:71
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubject(const Aws::String &value)
Definition Topic.h:70
void SetSubject(const char *value)
Definition Topic.h:72
AWS_DATAZONE_API Topic & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Topic()
Topic & WithSubject(const Aws::String &value)
Definition Topic.h:73
void SetResource(const NotificationResource &value)
Definition Topic.h:46
Topic & WithSubject(const char *value)
Definition Topic.h:75
void SetRole(NotificationRole &&value)
Definition Topic.h:59
Topic & WithSubject(Aws::String &&value)
Definition Topic.h:74
bool RoleHasBeenSet() const
Definition Topic.h:57
void SetRole(const NotificationRole &value)
Definition Topic.h:58
bool SubjectHasBeenSet() const
Definition Topic.h:69
bool ResourceHasBeenSet() const
Definition Topic.h:45
const Aws::String & GetSubject() const
Definition Topic.h:68
Topic & WithRole(NotificationRole &&value)
Definition Topic.h:61
Topic & WithResource(const NotificationResource &value)
Definition Topic.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue