AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListSitesResult.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/Site.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 ListSitesResult();
35
36
38
39 inline const Aws::Vector<Site>& GetSites() const{ return m_sites; }
40 inline void SetSites(const Aws::Vector<Site>& value) { m_sites = value; }
41 inline void SetSites(Aws::Vector<Site>&& value) { m_sites = std::move(value); }
42 inline ListSitesResult& WithSites(const Aws::Vector<Site>& value) { SetSites(value); return *this;}
43 inline ListSitesResult& WithSites(Aws::Vector<Site>&& value) { SetSites(std::move(value)); return *this;}
44 inline ListSitesResult& AddSites(const Site& value) { m_sites.push_back(value); return *this; }
45 inline ListSitesResult& AddSites(Site&& value) { m_sites.push_back(std::move(value)); return *this; }
47
49
50 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
51 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
52 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
53 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
54 inline ListSitesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
55 inline ListSitesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
56 inline ListSitesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
58
60
61 inline const Aws::String& GetRequestId() const{ return m_requestId; }
62 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
63 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
64 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
65 inline ListSitesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
66 inline ListSitesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
67 inline ListSitesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
69 private:
70
71 Aws::Vector<Site> m_sites;
72
73 Aws::String m_nextToken;
74
75 Aws::String m_requestId;
76 };
77
78} // namespace Model
79} // namespace Outposts
80} // namespace Aws
const Aws::String & GetRequestId() const
void SetRequestId(Aws::String &&value)
AWS_OUTPOSTS_API ListSitesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetNextToken(const Aws::String &value)
const Aws::Vector< Site > & GetSites() const
ListSitesResult & WithSites(Aws::Vector< Site > &&value)
void SetNextToken(Aws::String &&value)
ListSitesResult & AddSites(Site &&value)
ListSitesResult & WithRequestId(const char *value)
ListSitesResult & WithRequestId(const Aws::String &value)
ListSitesResult & WithNextToken(Aws::String &&value)
void SetSites(Aws::Vector< Site > &&value)
ListSitesResult & WithSites(const Aws::Vector< Site > &value)
AWS_OUTPOSTS_API ListSitesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListSitesResult & WithRequestId(Aws::String &&value)
ListSitesResult & WithNextToken(const Aws::String &value)
ListSitesResult & AddSites(const Site &value)
const Aws::String & GetNextToken() const
void SetRequestId(const Aws::String &value)
void SetSites(const Aws::Vector< Site > &value)
ListSitesResult & WithNextToken(const char *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