AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
ListMeshesResult.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/MeshRef.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.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 AppMesh {
25namespace Model {
32 public:
33 AWS_APPMESH_API ListMeshesResult() = default;
36
38
41 inline const Aws::Vector<MeshRef>& GetMeshes() const { return m_meshes; }
42 template <typename MeshesT = Aws::Vector<MeshRef>>
43 void SetMeshes(MeshesT&& value) {
44 m_meshesHasBeenSet = true;
45 m_meshes = std::forward<MeshesT>(value);
46 }
47 template <typename MeshesT = Aws::Vector<MeshRef>>
48 ListMeshesResult& WithMeshes(MeshesT&& value) {
49 SetMeshes(std::forward<MeshesT>(value));
50 return *this;
51 }
52 template <typename MeshesT = MeshRef>
53 ListMeshesResult& AddMeshes(MeshesT&& value) {
54 m_meshesHasBeenSet = true;
55 m_meshes.emplace_back(std::forward<MeshesT>(value));
56 return *this;
57 }
59
61
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 template <typename NextTokenT = Aws::String>
70 void SetNextToken(NextTokenT&& value) {
71 m_nextTokenHasBeenSet = true;
72 m_nextToken = std::forward<NextTokenT>(value);
73 }
74 template <typename NextTokenT = Aws::String>
75 ListMeshesResult& WithNextToken(NextTokenT&& value) {
76 SetNextToken(std::forward<NextTokenT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
90 ListMeshesResult& WithRequestId(RequestIdT&& value) {
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 Aws::Vector<MeshRef> m_meshes;
99
100 Aws::String m_nextToken;
101
102 Aws::String m_requestId;
103 Aws::Http::HttpResponseCode m_HttpResponseCode;
104 bool m_meshesHasBeenSet = false;
105 bool m_nextTokenHasBeenSet = false;
106 bool m_requestIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace AppMesh
111} // namespace Aws
void SetRequestId(RequestIdT &&value)
const Aws::Vector< MeshRef > & GetMeshes() const
ListMeshesResult & AddMeshes(MeshesT &&value)
const Aws::String & GetRequestId() const
ListMeshesResult & WithNextToken(NextTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListMeshesResult & WithRequestId(RequestIdT &&value)
AWS_APPMESH_API ListMeshesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListMeshesResult & WithMeshes(MeshesT &&value)
AWS_APPMESH_API ListMeshesResult()=default
AWS_APPMESH_API ListMeshesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetNextToken() const
void SetNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue