AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ListOutpostsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/outposts/Outposts_EXPORTS.h>
11#include <aws/outposts/model/Outpost.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 Outposts {
25namespace Model {
27 public:
28 AWS_OUTPOSTS_API ListOutpostsResult() = default;
31
33
34 inline const Aws::Vector<Outpost>& GetOutposts() const { return m_outposts; }
35 template <typename OutpostsT = Aws::Vector<Outpost>>
36 void SetOutposts(OutpostsT&& value) {
37 m_outpostsHasBeenSet = true;
38 m_outposts = std::forward<OutpostsT>(value);
39 }
40 template <typename OutpostsT = Aws::Vector<Outpost>>
41 ListOutpostsResult& WithOutposts(OutpostsT&& value) {
42 SetOutposts(std::forward<OutpostsT>(value));
43 return *this;
44 }
45 template <typename OutpostsT = Outpost>
46 ListOutpostsResult& AddOutposts(OutpostsT&& value) {
47 m_outpostsHasBeenSet = true;
48 m_outposts.emplace_back(std::forward<OutpostsT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetNextToken() const { return m_nextToken; }
56 template <typename NextTokenT = Aws::String>
57 void SetNextToken(NextTokenT&& value) {
58 m_nextTokenHasBeenSet = true;
59 m_nextToken = std::forward<NextTokenT>(value);
60 }
61 template <typename NextTokenT = Aws::String>
62 ListOutpostsResult& WithNextToken(NextTokenT&& value) {
63 SetNextToken(std::forward<NextTokenT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template <typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) {
73 m_requestIdHasBeenSet = true;
74 m_requestId = std::forward<RequestIdT>(value);
75 }
76 template <typename RequestIdT = Aws::String>
77 ListOutpostsResult& WithRequestId(RequestIdT&& value) {
78 SetRequestId(std::forward<RequestIdT>(value));
79 return *this;
80 }
82 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
83
84 private:
85 Aws::Vector<Outpost> m_outposts;
86
87 Aws::String m_nextToken;
88
89 Aws::String m_requestId;
90 Aws::Http::HttpResponseCode m_HttpResponseCode;
91 bool m_outpostsHasBeenSet = false;
92 bool m_nextTokenHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Outposts
98} // namespace Aws
ListOutpostsResult & AddOutposts(OutpostsT &&value)
ListOutpostsResult & WithRequestId(RequestIdT &&value)
ListOutpostsResult & WithOutposts(OutpostsT &&value)
AWS_OUTPOSTS_API ListOutpostsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListOutpostsResult & WithNextToken(NextTokenT &&value)
AWS_OUTPOSTS_API ListOutpostsResult()=default
const Aws::Vector< Outpost > & GetOutposts() const
AWS_OUTPOSTS_API ListOutpostsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue