AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
Subscription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrass/Greengrass_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Greengrass {
20namespace Model {
21
28 public:
29 AWS_GREENGRASS_API Subscription() = default;
30 AWS_GREENGRASS_API Subscription(Aws::Utils::Json::JsonView jsonValue);
31 AWS_GREENGRASS_API Subscription& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 Subscription& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetSource() const { return m_source; }
61 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
62 template <typename SourceT = Aws::String>
63 void SetSource(SourceT&& value) {
64 m_sourceHasBeenSet = true;
65 m_source = std::forward<SourceT>(value);
66 }
67 template <typename SourceT = Aws::String>
68 Subscription& WithSource(SourceT&& value) {
69 SetSource(std::forward<SourceT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetSubject() const { return m_subject; }
79 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
80 template <typename SubjectT = Aws::String>
81 void SetSubject(SubjectT&& value) {
82 m_subjectHasBeenSet = true;
83 m_subject = std::forward<SubjectT>(value);
84 }
85 template <typename SubjectT = Aws::String>
86 Subscription& WithSubject(SubjectT&& value) {
87 SetSubject(std::forward<SubjectT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetTarget() const { return m_target; }
99 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
100 template <typename TargetT = Aws::String>
101 void SetTarget(TargetT&& value) {
102 m_targetHasBeenSet = true;
103 m_target = std::forward<TargetT>(value);
104 }
105 template <typename TargetT = Aws::String>
106 Subscription& WithTarget(TargetT&& value) {
107 SetTarget(std::forward<TargetT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_id;
113
114 Aws::String m_source;
115
116 Aws::String m_subject;
117
118 Aws::String m_target;
119 bool m_idHasBeenSet = false;
120 bool m_sourceHasBeenSet = false;
121 bool m_subjectHasBeenSet = false;
122 bool m_targetHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Greengrass
127} // namespace Aws
const Aws::String & GetSubject() const
const Aws::String & GetId() const
Subscription & WithTarget(TargetT &&value)
void SetSubject(SubjectT &&value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASS_API Subscription()=default
Subscription & WithSource(SourceT &&value)
AWS_GREENGRASS_API Subscription & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSource() const
const Aws::String & GetTarget() const
Subscription & WithId(IdT &&value)
AWS_GREENGRASS_API Subscription(Aws::Utils::Json::JsonView jsonValue)
Subscription & WithSubject(SubjectT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue