AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 Subscription& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
64 template<typename SourceT = Aws::String>
65 Subscription& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
67
69
72 inline const Aws::String& GetSubject() const { return m_subject; }
73 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
74 template<typename SubjectT = Aws::String>
75 void SetSubject(SubjectT&& value) { m_subjectHasBeenSet = true; m_subject = std::forward<SubjectT>(value); }
76 template<typename SubjectT = Aws::String>
77 Subscription& WithSubject(SubjectT&& value) { SetSubject(std::forward<SubjectT>(value)); return *this;}
79
81
86 inline const Aws::String& GetTarget() const { return m_target; }
87 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
88 template<typename TargetT = Aws::String>
89 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
90 template<typename TargetT = Aws::String>
91 Subscription& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
93 private:
94
95 Aws::String m_id;
96 bool m_idHasBeenSet = false;
97
98 Aws::String m_source;
99 bool m_sourceHasBeenSet = false;
100
101 Aws::String m_subject;
102 bool m_subjectHasBeenSet = false;
103
104 Aws::String m_target;
105 bool m_targetHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Greengrass
110} // 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