AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListVersionsResult.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace OpenSearchService
25{
26namespace Model
27{
35 {
36 public:
37 AWS_OPENSEARCHSERVICE_API ListVersionsResult();
40
41
43
47 inline const Aws::Vector<Aws::String>& GetVersions() const{ return m_versions; }
48 inline void SetVersions(const Aws::Vector<Aws::String>& value) { m_versions = value; }
49 inline void SetVersions(Aws::Vector<Aws::String>&& value) { m_versions = std::move(value); }
50 inline ListVersionsResult& WithVersions(const Aws::Vector<Aws::String>& value) { SetVersions(value); return *this;}
51 inline ListVersionsResult& WithVersions(Aws::Vector<Aws::String>&& value) { SetVersions(std::move(value)); return *this;}
52 inline ListVersionsResult& AddVersions(const Aws::String& value) { m_versions.push_back(value); return *this; }
53 inline ListVersionsResult& AddVersions(Aws::String&& value) { m_versions.push_back(std::move(value)); return *this; }
54 inline ListVersionsResult& AddVersions(const char* value) { m_versions.push_back(value); return *this; }
56
58
63 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
64 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
65 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
66 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
67 inline ListVersionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
68 inline ListVersionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
69 inline ListVersionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
71
73
74 inline const Aws::String& GetRequestId() const{ return m_requestId; }
75 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
76 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
77 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
78 inline ListVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
79 inline ListVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
80 inline ListVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
82 private:
83
84 Aws::Vector<Aws::String> m_versions;
85
86 Aws::String m_nextToken;
87
88 Aws::String m_requestId;
89 };
90
91} // namespace Model
92} // namespace OpenSearchService
93} // namespace Aws
AWS_OPENSEARCHSERVICE_API ListVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListVersionsResult & WithRequestId(Aws::String &&value)
ListVersionsResult & AddVersions(const Aws::String &value)
void SetVersions(const Aws::Vector< Aws::String > &value)
ListVersionsResult & AddVersions(const char *value)
void SetVersions(Aws::Vector< Aws::String > &&value)
ListVersionsResult & WithRequestId(const char *value)
AWS_OPENSEARCHSERVICE_API ListVersionsResult()
ListVersionsResult & WithRequestId(const Aws::String &value)
ListVersionsResult & AddVersions(Aws::String &&value)
const Aws::Vector< Aws::String > & GetVersions() const
ListVersionsResult & WithNextToken(Aws::String &&value)
ListVersionsResult & WithVersions(Aws::Vector< Aws::String > &&value)
ListVersionsResult & WithNextToken(const Aws::String &value)
ListVersionsResult & WithNextToken(const char *value)
ListVersionsResult & WithVersions(const Aws::Vector< Aws::String > &value)
AWS_OPENSEARCHSERVICE_API ListVersionsResult & operator=(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