AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Subscription.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Greengrass
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GREENGRASS_API Subscription();
35 AWS_GREENGRASS_API Subscription(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GREENGRASS_API Subscription& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline Subscription& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline Subscription& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline Subscription& WithId(const char* value) { SetId(value); return *this;}
55
57
62 inline const Aws::String& GetSource() const{ return m_source; }
63 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
64 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
65 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
66 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
67 inline Subscription& WithSource(const Aws::String& value) { SetSource(value); return *this;}
68 inline Subscription& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
69 inline Subscription& WithSource(const char* value) { SetSource(value); return *this;}
71
73
76 inline const Aws::String& GetSubject() const{ return m_subject; }
77 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
78 inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
79 inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
80 inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
81 inline Subscription& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
82 inline Subscription& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
83 inline Subscription& WithSubject(const char* value) { SetSubject(value); return *this;}
85
87
92 inline const Aws::String& GetTarget() const{ return m_target; }
93 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
94 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
95 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
96 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
97 inline Subscription& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
98 inline Subscription& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
99 inline Subscription& WithTarget(const char* value) { SetTarget(value); return *this;}
101 private:
102
103 Aws::String m_id;
104 bool m_idHasBeenSet = false;
105
106 Aws::String m_source;
107 bool m_sourceHasBeenSet = false;
108
109 Aws::String m_subject;
110 bool m_subjectHasBeenSet = false;
111
112 Aws::String m_target;
113 bool m_targetHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Greengrass
118} // namespace Aws
const Aws::String & GetSubject() const
Subscription & WithSource(const char *value)
void SetId(const char *value)
Subscription & WithSubject(const char *value)
void SetId(Aws::String &&value)
void SetTarget(Aws::String &&value)
const Aws::String & GetId() const
Subscription & WithSource(Aws::String &&value)
Subscription & WithSubject(Aws::String &&value)
Subscription & WithSubject(const Aws::String &value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
Subscription & WithTarget(const char *value)
void SetSource(const char *value)
AWS_GREENGRASS_API Subscription & operator=(Aws::Utils::Json::JsonView jsonValue)
Subscription & WithId(Aws::String &&value)
void SetSubject(const Aws::String &value)
Subscription & WithTarget(Aws::String &&value)
void SetSource(Aws::String &&value)
const Aws::String & GetSource() const
const Aws::String & GetTarget() const
void SetSubject(const char *value)
Subscription & WithId(const Aws::String &value)
Subscription & WithSource(const Aws::String &value)
void SetTarget(const char *value)
Subscription & WithTarget(const Aws::String &value)
AWS_GREENGRASS_API Subscription(Aws::Utils::Json::JsonView jsonValue)
void SetId(const Aws::String &value)
void SetTarget(const Aws::String &value)
void SetSubject(Aws::String &&value)
void SetSource(const Aws::String &value)
Subscription & WithId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue