AWS SDK for C++

AWS SDK for C++ Version 1.11.819

Loading...
Searching...
No Matches
ListAssertionsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
11#include <aws/resiliencehubv2/model/Assertion.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace resiliencehubv2 {
25namespace Model {
27 public:
28 AWS_RESILIENCEHUBV2_API ListAssertionsResult() = default;
31
33
36 inline const Aws::Vector<Assertion>& GetAssertions() const { return m_assertions; }
37 template <typename AssertionsT = Aws::Vector<Assertion>>
38 void SetAssertions(AssertionsT&& value) {
39 m_assertionsHasBeenSet = true;
40 m_assertions = std::forward<AssertionsT>(value);
41 }
42 template <typename AssertionsT = Aws::Vector<Assertion>>
43 ListAssertionsResult& WithAssertions(AssertionsT&& value) {
44 SetAssertions(std::forward<AssertionsT>(value));
45 return *this;
46 }
47 template <typename AssertionsT = Assertion>
48 ListAssertionsResult& AddAssertions(AssertionsT&& value) {
49 m_assertionsHasBeenSet = true;
50 m_assertions.emplace_back(std::forward<AssertionsT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 template <typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) {
60 m_nextTokenHasBeenSet = true;
61 m_nextToken = std::forward<NextTokenT>(value);
62 }
63 template <typename NextTokenT = Aws::String>
64 ListAssertionsResult& WithNextToken(NextTokenT&& value) {
65 SetNextToken(std::forward<NextTokenT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 template <typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) {
75 m_requestIdHasBeenSet = true;
76 m_requestId = std::forward<RequestIdT>(value);
77 }
78 template <typename RequestIdT = Aws::String>
79 ListAssertionsResult& WithRequestId(RequestIdT&& value) {
80 SetRequestId(std::forward<RequestIdT>(value));
81 return *this;
82 }
84 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
85
86 private:
87 Aws::Vector<Assertion> m_assertions;
88
89 Aws::String m_nextToken;
90
91 Aws::String m_requestId;
92 Aws::Http::HttpResponseCode m_HttpResponseCode;
93 bool m_assertionsHasBeenSet = false;
94 bool m_nextTokenHasBeenSet = false;
95 bool m_requestIdHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace resiliencehubv2
100} // namespace Aws
ListAssertionsResult & WithNextToken(NextTokenT &&value)
AWS_RESILIENCEHUBV2_API ListAssertionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Assertion > & GetAssertions() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_RESILIENCEHUBV2_API ListAssertionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_RESILIENCEHUBV2_API ListAssertionsResult()=default
ListAssertionsResult & WithAssertions(AssertionsT &&value)
ListAssertionsResult & WithRequestId(RequestIdT &&value)
ListAssertionsResult & AddAssertions(AssertionsT &&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