AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateScopeResult.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/networkflowmonitor/NetworkFlowMonitor_EXPORTS.h>
11#include <aws/networkflowmonitor/model/ScopeStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace NetworkFlowMonitor {
25namespace Model {
27 public:
28 AWS_NETWORKFLOWMONITOR_API UpdateScopeResult() = default;
31
33
38 inline const Aws::String& GetScopeId() const { return m_scopeId; }
39 template <typename ScopeIdT = Aws::String>
40 void SetScopeId(ScopeIdT&& value) {
41 m_scopeIdHasBeenSet = true;
42 m_scopeId = std::forward<ScopeIdT>(value);
43 }
44 template <typename ScopeIdT = Aws::String>
45 UpdateScopeResult& WithScopeId(ScopeIdT&& value) {
46 SetScopeId(std::forward<ScopeIdT>(value));
47 return *this;
48 }
50
52
60 inline ScopeStatus GetStatus() const { return m_status; }
61 inline void SetStatus(ScopeStatus value) {
62 m_statusHasBeenSet = true;
63 m_status = value;
64 }
66 SetStatus(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetScopeArn() const { return m_scopeArn; }
76 template <typename ScopeArnT = Aws::String>
77 void SetScopeArn(ScopeArnT&& value) {
78 m_scopeArnHasBeenSet = true;
79 m_scopeArn = std::forward<ScopeArnT>(value);
80 }
81 template <typename ScopeArnT = Aws::String>
82 UpdateScopeResult& WithScopeArn(ScopeArnT&& value) {
83 SetScopeArn(std::forward<ScopeArnT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 void SetTags(TagsT&& value) {
95 m_tagsHasBeenSet = true;
96 m_tags = std::forward<TagsT>(value);
97 }
98 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 UpdateScopeResult& WithTags(TagsT&& value) {
100 SetTags(std::forward<TagsT>(value));
101 return *this;
102 }
103 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
104 UpdateScopeResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
105 m_tagsHasBeenSet = true;
106 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
107 return *this;
108 }
110
112
113 inline const Aws::String& GetRequestId() const { return m_requestId; }
114 template <typename RequestIdT = Aws::String>
115 void SetRequestId(RequestIdT&& value) {
116 m_requestIdHasBeenSet = true;
117 m_requestId = std::forward<RequestIdT>(value);
118 }
119 template <typename RequestIdT = Aws::String>
120 UpdateScopeResult& WithRequestId(RequestIdT&& value) {
121 SetRequestId(std::forward<RequestIdT>(value));
122 return *this;
123 }
125 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
126
127 private:
128 Aws::String m_scopeId;
129
131
132 Aws::String m_scopeArn;
133
135
136 Aws::String m_requestId;
137 Aws::Http::HttpResponseCode m_HttpResponseCode;
138 bool m_scopeIdHasBeenSet = false;
139 bool m_statusHasBeenSet = false;
140 bool m_scopeArnHasBeenSet = false;
141 bool m_tagsHasBeenSet = false;
142 bool m_requestIdHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace NetworkFlowMonitor
147} // namespace Aws
UpdateScopeResult & WithStatus(ScopeStatus value)
UpdateScopeResult & WithTags(TagsT &&value)
AWS_NETWORKFLOWMONITOR_API UpdateScopeResult()=default
UpdateScopeResult & WithScopeId(ScopeIdT &&value)
UpdateScopeResult & WithRequestId(RequestIdT &&value)
UpdateScopeResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_NETWORKFLOWMONITOR_API UpdateScopeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_NETWORKFLOWMONITOR_API UpdateScopeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateScopeResult & WithScopeArn(ScopeArnT &&value)
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
Aws::Utils::Json::JsonValue JsonValue