AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ListLinksItem.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/oam/OAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OAM {
21namespace Model {
22
30 public:
31 AWS_OAM_API ListLinksItem() = default;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 ListLinksItem& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template <typename IdT = Aws::String>
62 void SetId(IdT&& value) {
63 m_idHasBeenSet = true;
64 m_id = std::forward<IdT>(value);
65 }
66 template <typename IdT = Aws::String>
67 ListLinksItem& WithId(IdT&& value) {
68 SetId(std::forward<IdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetLabel() const { return m_label; }
79 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
80 template <typename LabelT = Aws::String>
81 void SetLabel(LabelT&& value) {
82 m_labelHasBeenSet = true;
83 m_label = std::forward<LabelT>(value);
84 }
85 template <typename LabelT = Aws::String>
86 ListLinksItem& WithLabel(LabelT&& value) {
87 SetLabel(std::forward<LabelT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
97 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
98 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
99 void SetResourceTypes(ResourceTypesT&& value) {
100 m_resourceTypesHasBeenSet = true;
101 m_resourceTypes = std::forward<ResourceTypesT>(value);
102 }
103 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
104 ListLinksItem& WithResourceTypes(ResourceTypesT&& value) {
105 SetResourceTypes(std::forward<ResourceTypesT>(value));
106 return *this;
107 }
108 template <typename ResourceTypesT = Aws::String>
109 ListLinksItem& AddResourceTypes(ResourceTypesT&& value) {
110 m_resourceTypesHasBeenSet = true;
111 m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetSinkArn() const { return m_sinkArn; }
121 inline bool SinkArnHasBeenSet() const { return m_sinkArnHasBeenSet; }
122 template <typename SinkArnT = Aws::String>
123 void SetSinkArn(SinkArnT&& value) {
124 m_sinkArnHasBeenSet = true;
125 m_sinkArn = std::forward<SinkArnT>(value);
126 }
127 template <typename SinkArnT = Aws::String>
128 ListLinksItem& WithSinkArn(SinkArnT&& value) {
129 SetSinkArn(std::forward<SinkArnT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_arn;
135
136 Aws::String m_id;
137
138 Aws::String m_label;
139
140 Aws::Vector<Aws::String> m_resourceTypes;
141
142 Aws::String m_sinkArn;
143 bool m_arnHasBeenSet = false;
144 bool m_idHasBeenSet = false;
145 bool m_labelHasBeenSet = false;
146 bool m_resourceTypesHasBeenSet = false;
147 bool m_sinkArnHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace OAM
152} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue