AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/notifications/Notifications_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Notifications {
21namespace Model {
22
29class Resource {
30 public:
31 AWS_NOTIFICATIONS_API Resource() = default;
32 AWS_NOTIFICATIONS_API Resource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NOTIFICATIONS_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 Resource& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
68 Resource& WithArn(ArnT&& value) {
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetDetailUrl() const { return m_detailUrl; }
80 inline bool DetailUrlHasBeenSet() const { return m_detailUrlHasBeenSet; }
81 template <typename DetailUrlT = Aws::String>
82 void SetDetailUrl(DetailUrlT&& value) {
83 m_detailUrlHasBeenSet = true;
84 m_detailUrl = std::forward<DetailUrlT>(value);
85 }
86 template <typename DetailUrlT = Aws::String>
87 Resource& WithDetailUrl(DetailUrlT&& value) {
88 SetDetailUrl(std::forward<DetailUrlT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::Vector<Aws::String>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template <typename TagsT = Aws::Vector<Aws::String>>
101 void SetTags(TagsT&& value) {
102 m_tagsHasBeenSet = true;
103 m_tags = std::forward<TagsT>(value);
104 }
105 template <typename TagsT = Aws::Vector<Aws::String>>
106 Resource& WithTags(TagsT&& value) {
107 SetTags(std::forward<TagsT>(value));
108 return *this;
109 }
110 template <typename TagsT = Aws::String>
111 Resource& AddTags(TagsT&& value) {
112 m_tagsHasBeenSet = true;
113 m_tags.emplace_back(std::forward<TagsT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_id;
119
120 Aws::String m_arn;
121
122 Aws::String m_detailUrl;
123
125 bool m_idHasBeenSet = false;
126 bool m_arnHasBeenSet = false;
127 bool m_detailUrlHasBeenSet = false;
128 bool m_tagsHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace Notifications
133} // namespace Aws
void SetDetailUrl(DetailUrlT &&value)
Definition Resource.h:82
const Aws::String & GetArn() const
Definition Resource.h:60
Resource & WithId(IdT &&value)
Definition Resource.h:49
Resource & AddTags(TagsT &&value)
Definition Resource.h:111
Resource & WithArn(ArnT &&value)
Definition Resource.h:68
const Aws::Vector< Aws::String > & GetTags() const
Definition Resource.h:98
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
Resource & WithTags(TagsT &&value)
Definition Resource.h:106
AWS_NOTIFICATIONS_API Resource()=default
const Aws::String & GetId() const
Definition Resource.h:41
AWS_NOTIFICATIONS_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDetailUrl() const
Definition Resource.h:79
Resource & WithDetailUrl(DetailUrlT &&value)
Definition Resource.h:87
AWS_NOTIFICATIONS_API Resource(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue