AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
ListOutpostsResult.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/outposts/Outposts_EXPORTS.h>
10#include <aws/outposts/model/Outpost.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Outposts {
24namespace Model {
26 public:
27 AWS_OUTPOSTS_API ListOutpostsResult() = default;
30
32
33 inline const Aws::Vector<Outpost>& GetOutposts() const { return m_outposts; }
34 template <typename OutpostsT = Aws::Vector<Outpost>>
35 void SetOutposts(OutpostsT&& value) {
36 m_outpostsHasBeenSet = true;
37 m_outposts = std::forward<OutpostsT>(value);
38 }
39 template <typename OutpostsT = Aws::Vector<Outpost>>
40 ListOutpostsResult& WithOutposts(OutpostsT&& value) {
41 SetOutposts(std::forward<OutpostsT>(value));
42 return *this;
43 }
44 template <typename OutpostsT = Outpost>
45 ListOutpostsResult& AddOutposts(OutpostsT&& value) {
46 m_outpostsHasBeenSet = true;
47 m_outposts.emplace_back(std::forward<OutpostsT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::String& GetNextToken() const { return m_nextToken; }
55 template <typename NextTokenT = Aws::String>
56 void SetNextToken(NextTokenT&& value) {
57 m_nextTokenHasBeenSet = true;
58 m_nextToken = std::forward<NextTokenT>(value);
59 }
60 template <typename NextTokenT = Aws::String>
61 ListOutpostsResult& WithNextToken(NextTokenT&& value) {
62 SetNextToken(std::forward<NextTokenT>(value));
63 return *this;
64 }
66
68
69 inline const Aws::String& GetRequestId() const { return m_requestId; }
70 template <typename RequestIdT = Aws::String>
71 void SetRequestId(RequestIdT&& value) {
72 m_requestIdHasBeenSet = true;
73 m_requestId = std::forward<RequestIdT>(value);
74 }
75 template <typename RequestIdT = Aws::String>
76 ListOutpostsResult& WithRequestId(RequestIdT&& value) {
77 SetRequestId(std::forward<RequestIdT>(value));
78 return *this;
79 }
81 private:
82 Aws::Vector<Outpost> m_outposts;
83
84 Aws::String m_nextToken;
85
86 Aws::String m_requestId;
87 bool m_outpostsHasBeenSet = false;
88 bool m_nextTokenHasBeenSet = false;
89 bool m_requestIdHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace Outposts
94} // 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)
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