AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetScopeResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/networkflowmonitor/NetworkFlowMonitor_EXPORTS.h>
12#include <aws/networkflowmonitor/model/ScopeStatus.h>
13#include <aws/networkflowmonitor/model/TargetResource.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace NetworkFlowMonitor {
27namespace Model {
29 public:
30 AWS_NETWORKFLOWMONITOR_API GetScopeResult() = default;
33
35
41 inline const Aws::String& GetScopeId() const { return m_scopeId; }
42 template <typename ScopeIdT = Aws::String>
43 void SetScopeId(ScopeIdT&& value) {
44 m_scopeIdHasBeenSet = true;
45 m_scopeId = std::forward<ScopeIdT>(value);
46 }
47 template <typename ScopeIdT = Aws::String>
48 GetScopeResult& WithScopeId(ScopeIdT&& value) {
49 SetScopeId(std::forward<ScopeIdT>(value));
50 return *this;
51 }
53
55
63 inline ScopeStatus GetStatus() const { return m_status; }
64 inline void SetStatus(ScopeStatus value) {
65 m_statusHasBeenSet = true;
66 m_status = value;
67 }
69 SetStatus(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetScopeArn() const { return m_scopeArn; }
79 template <typename ScopeArnT = Aws::String>
80 void SetScopeArn(ScopeArnT&& value) {
81 m_scopeArnHasBeenSet = true;
82 m_scopeArn = std::forward<ScopeArnT>(value);
83 }
84 template <typename ScopeArnT = Aws::String>
85 GetScopeResult& WithScopeArn(ScopeArnT&& value) {
86 SetScopeArn(std::forward<ScopeArnT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::Vector<TargetResource>& GetTargets() const { return m_targets; }
98 template <typename TargetsT = Aws::Vector<TargetResource>>
99 void SetTargets(TargetsT&& value) {
100 m_targetsHasBeenSet = true;
101 m_targets = std::forward<TargetsT>(value);
102 }
103 template <typename TargetsT = Aws::Vector<TargetResource>>
104 GetScopeResult& WithTargets(TargetsT&& value) {
105 SetTargets(std::forward<TargetsT>(value));
106 return *this;
107 }
108 template <typename TargetsT = TargetResource>
109 GetScopeResult& AddTargets(TargetsT&& value) {
110 m_targetsHasBeenSet = true;
111 m_targets.emplace_back(std::forward<TargetsT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 GetScopeResult& WithTags(TagsT&& value) {
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 GetScopeResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
135 return *this;
136 }
138
140
141 inline const Aws::String& GetRequestId() const { return m_requestId; }
142 template <typename RequestIdT = Aws::String>
143 void SetRequestId(RequestIdT&& value) {
144 m_requestIdHasBeenSet = true;
145 m_requestId = std::forward<RequestIdT>(value);
146 }
147 template <typename RequestIdT = Aws::String>
148 GetScopeResult& WithRequestId(RequestIdT&& value) {
149 SetRequestId(std::forward<RequestIdT>(value));
150 return *this;
151 }
153 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
154
155 private:
156 Aws::String m_scopeId;
157
159
160 Aws::String m_scopeArn;
161
163
165
166 Aws::String m_requestId;
167 Aws::Http::HttpResponseCode m_HttpResponseCode;
168 bool m_scopeIdHasBeenSet = false;
169 bool m_statusHasBeenSet = false;
170 bool m_scopeArnHasBeenSet = false;
171 bool m_targetsHasBeenSet = false;
172 bool m_tagsHasBeenSet = false;
173 bool m_requestIdHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace NetworkFlowMonitor
178} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_NETWORKFLOWMONITOR_API GetScopeResult()=default
AWS_NETWORKFLOWMONITOR_API GetScopeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< TargetResource > & GetTargets() const
GetScopeResult & WithTags(TagsT &&value)
GetScopeResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_NETWORKFLOWMONITOR_API GetScopeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetScopeResult & WithRequestId(RequestIdT &&value)
GetScopeResult & WithScopeId(ScopeIdT &&value)
GetScopeResult & WithScopeArn(ScopeArnT &&value)
GetScopeResult & AddTargets(TargetsT &&value)
GetScopeResult & WithTargets(TargetsT &&value)
GetScopeResult & WithStatus(ScopeStatus value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue