AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListOutpostsResult.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/outposts/model/Outpost.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Outposts
26{
27namespace Model
28{
30 {
31 public:
32 AWS_OUTPOSTS_API ListOutpostsResult() = default;
35
36
38
39 inline const Aws::Vector<Outpost>& GetOutposts() const { return m_outposts; }
40 template<typename OutpostsT = Aws::Vector<Outpost>>
41 void SetOutposts(OutpostsT&& value) { m_outpostsHasBeenSet = true; m_outposts = std::forward<OutpostsT>(value); }
42 template<typename OutpostsT = Aws::Vector<Outpost>>
43 ListOutpostsResult& WithOutposts(OutpostsT&& value) { SetOutposts(std::forward<OutpostsT>(value)); return *this;}
44 template<typename OutpostsT = Outpost>
45 ListOutpostsResult& AddOutposts(OutpostsT&& value) { m_outpostsHasBeenSet = true; m_outposts.emplace_back(std::forward<OutpostsT>(value)); return *this; }
47
49
50 inline const Aws::String& GetNextToken() const { return m_nextToken; }
51 template<typename NextTokenT = Aws::String>
52 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
53 template<typename NextTokenT = Aws::String>
54 ListOutpostsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
56
58
59 inline const Aws::String& GetRequestId() const { return m_requestId; }
60 template<typename RequestIdT = Aws::String>
61 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
62 template<typename RequestIdT = Aws::String>
63 ListOutpostsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
65 private:
66
67 Aws::Vector<Outpost> m_outposts;
68 bool m_outpostsHasBeenSet = false;
69
70 Aws::String m_nextToken;
71 bool m_nextTokenHasBeenSet = false;
72
73 Aws::String m_requestId;
74 bool m_requestIdHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Outposts
79} // 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