AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
GetActiveNamesResult.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/lightsail/Lightsail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail {
23namespace Model {
25 public:
26 AWS_LIGHTSAIL_API GetActiveNamesResult() = default;
29
31
34 inline const Aws::Vector<Aws::String>& GetActiveNames() const { return m_activeNames; }
35 template <typename ActiveNamesT = Aws::Vector<Aws::String>>
36 void SetActiveNames(ActiveNamesT&& value) {
37 m_activeNamesHasBeenSet = true;
38 m_activeNames = std::forward<ActiveNamesT>(value);
39 }
40 template <typename ActiveNamesT = Aws::Vector<Aws::String>>
41 GetActiveNamesResult& WithActiveNames(ActiveNamesT&& value) {
42 SetActiveNames(std::forward<ActiveNamesT>(value));
43 return *this;
44 }
45 template <typename ActiveNamesT = Aws::String>
46 GetActiveNamesResult& AddActiveNames(ActiveNamesT&& value) {
47 m_activeNamesHasBeenSet = true;
48 m_activeNames.emplace_back(std::forward<ActiveNamesT>(value));
49 return *this;
50 }
52
54
61 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
62 template <typename NextPageTokenT = Aws::String>
63 void SetNextPageToken(NextPageTokenT&& value) {
64 m_nextPageTokenHasBeenSet = true;
65 m_nextPageToken = std::forward<NextPageTokenT>(value);
66 }
67 template <typename NextPageTokenT = Aws::String>
68 GetActiveNamesResult& WithNextPageToken(NextPageTokenT&& value) {
69 SetNextPageToken(std::forward<NextPageTokenT>(value));
70 return *this;
71 }
73
75
76 inline const Aws::String& GetRequestId() const { return m_requestId; }
77 template <typename RequestIdT = Aws::String>
78 void SetRequestId(RequestIdT&& value) {
79 m_requestIdHasBeenSet = true;
80 m_requestId = std::forward<RequestIdT>(value);
81 }
82 template <typename RequestIdT = Aws::String>
83 GetActiveNamesResult& WithRequestId(RequestIdT&& value) {
84 SetRequestId(std::forward<RequestIdT>(value));
85 return *this;
86 }
88 private:
89 Aws::Vector<Aws::String> m_activeNames;
90 bool m_activeNamesHasBeenSet = false;
91
92 Aws::String m_nextPageToken;
93 bool m_nextPageTokenHasBeenSet = false;
94
95 Aws::String m_requestId;
96 bool m_requestIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Lightsail
101} // namespace Aws
GetActiveNamesResult & WithRequestId(RequestIdT &&value)
GetActiveNamesResult & WithActiveNames(ActiveNamesT &&value)
GetActiveNamesResult & AddActiveNames(ActiveNamesT &&value)
const Aws::Vector< Aws::String > & GetActiveNames() const
AWS_LIGHTSAIL_API GetActiveNamesResult()=default
GetActiveNamesResult & WithNextPageToken(NextPageTokenT &&value)
AWS_LIGHTSAIL_API GetActiveNamesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LIGHTSAIL_API GetActiveNamesResult & 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