AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetOperationsForResourceResult.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/model/Operation.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 Lightsail
26{
27namespace Model
28{
30 {
31 public:
32 AWS_LIGHTSAIL_API GetOperationsForResourceResult() = default;
35
36
38
43 inline const Aws::Vector<Operation>& GetOperations() const { return m_operations; }
44 template<typename OperationsT = Aws::Vector<Operation>>
45 void SetOperations(OperationsT&& value) { m_operationsHasBeenSet = true; m_operations = std::forward<OperationsT>(value); }
46 template<typename OperationsT = Aws::Vector<Operation>>
47 GetOperationsForResourceResult& WithOperations(OperationsT&& value) { SetOperations(std::forward<OperationsT>(value)); return *this;}
48 template<typename OperationsT = Operation>
49 GetOperationsForResourceResult& AddOperations(OperationsT&& value) { m_operationsHasBeenSet = true; m_operations.emplace_back(std::forward<OperationsT>(value)); return *this; }
51
53
60 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
61 template<typename NextPageTokenT = Aws::String>
62 void SetNextPageToken(NextPageTokenT&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::forward<NextPageTokenT>(value); }
63 template<typename NextPageTokenT = Aws::String>
64 GetOperationsForResourceResult& WithNextPageToken(NextPageTokenT&& value) { SetNextPageToken(std::forward<NextPageTokenT>(value)); return *this;}
66
68
69 inline const Aws::String& GetRequestId() const { return m_requestId; }
70 template<typename RequestIdT = Aws::String>
71 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
72 template<typename RequestIdT = Aws::String>
73 GetOperationsForResourceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
75 private:
76
77 Aws::Vector<Operation> m_operations;
78 bool m_operationsHasBeenSet = false;
79
80 Aws::String m_nextPageToken;
81 bool m_nextPageTokenHasBeenSet = false;
82
83 Aws::String m_requestId;
84 bool m_requestIdHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Lightsail
89} // namespace Aws
AWS_LIGHTSAIL_API GetOperationsForResourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LIGHTSAIL_API GetOperationsForResourceResult()=default
GetOperationsForResourceResult & WithRequestId(RequestIdT &&value)
AWS_LIGHTSAIL_API GetOperationsForResourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetOperationsForResourceResult & AddOperations(OperationsT &&value)
GetOperationsForResourceResult & WithNextPageToken(NextPageTokenT &&value)
GetOperationsForResourceResult & WithOperations(OperationsT &&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