AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Notifications
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NOTIFICATIONS_API Resource() = default;
37 AWS_NOTIFICATIONS_API Resource(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NOTIFICATIONS_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 Resource& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
64 template<typename ArnT = Aws::String>
65 Resource& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
67
69
73 inline const Aws::String& GetDetailUrl() const { return m_detailUrl; }
74 inline bool DetailUrlHasBeenSet() const { return m_detailUrlHasBeenSet; }
75 template<typename DetailUrlT = Aws::String>
76 void SetDetailUrl(DetailUrlT&& value) { m_detailUrlHasBeenSet = true; m_detailUrl = std::forward<DetailUrlT>(value); }
77 template<typename DetailUrlT = Aws::String>
78 Resource& WithDetailUrl(DetailUrlT&& value) { SetDetailUrl(std::forward<DetailUrlT>(value)); return *this;}
80
82
86 inline const Aws::Vector<Aws::String>& GetTags() const { return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 template<typename TagsT = Aws::Vector<Aws::String>>
89 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
90 template<typename TagsT = Aws::Vector<Aws::String>>
91 Resource& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
92 template<typename TagsT = Aws::String>
93 Resource& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
95 private:
96
97 Aws::String m_id;
98 bool m_idHasBeenSet = false;
99
100 Aws::String m_arn;
101 bool m_arnHasBeenSet = false;
102
103 Aws::String m_detailUrl;
104 bool m_detailUrlHasBeenSet = false;
105
107 bool m_tagsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Notifications
112} // namespace Aws
void SetDetailUrl(DetailUrlT &&value)
Definition Resource.h:76
const Aws::String & GetArn() const
Definition Resource.h:60
Resource & WithId(IdT &&value)
Definition Resource.h:52
Resource & AddTags(TagsT &&value)
Definition Resource.h:93
Resource & WithArn(ArnT &&value)
Definition Resource.h:65
const Aws::Vector< Aws::String > & GetTags() const
Definition Resource.h:86
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
Resource & WithTags(TagsT &&value)
Definition Resource.h:91
void SetTags(TagsT &&value)
Definition Resource.h:89
AWS_NOTIFICATIONS_API Resource()=default
const Aws::String & GetId() const
Definition Resource.h:47
AWS_NOTIFICATIONS_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDetailUrl() const
Definition Resource.h:73
Resource & WithDetailUrl(DetailUrlT &&value)
Definition Resource.h:78
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