AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
ListProtectionsResult.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/shield/Shield_EXPORTS.h>
11#include <aws/shield/model/Protection.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 Shield {
25namespace Model {
27 public:
28 AWS_SHIELD_API ListProtectionsResult() = default;
31
33
36 inline const Aws::Vector<Protection>& GetProtections() const { return m_protections; }
37 template <typename ProtectionsT = Aws::Vector<Protection>>
38 void SetProtections(ProtectionsT&& value) {
39 m_protectionsHasBeenSet = true;
40 m_protections = std::forward<ProtectionsT>(value);
41 }
42 template <typename ProtectionsT = Aws::Vector<Protection>>
43 ListProtectionsResult& WithProtections(ProtectionsT&& value) {
44 SetProtections(std::forward<ProtectionsT>(value));
45 return *this;
46 }
47 template <typename ProtectionsT = Protection>
48 ListProtectionsResult& AddProtections(ProtectionsT&& value) {
49 m_protectionsHasBeenSet = true;
50 m_protections.emplace_back(std::forward<ProtectionsT>(value));
51 return *this;
52 }
54
56
69 inline const Aws::String& GetNextToken() const { return m_nextToken; }
70 template <typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) {
72 m_nextTokenHasBeenSet = true;
73 m_nextToken = std::forward<NextTokenT>(value);
74 }
75 template <typename NextTokenT = Aws::String>
76 ListProtectionsResult& WithNextToken(NextTokenT&& value) {
77 SetNextToken(std::forward<NextTokenT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template <typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) {
87 m_requestIdHasBeenSet = true;
88 m_requestId = std::forward<RequestIdT>(value);
89 }
90 template <typename RequestIdT = Aws::String>
91 ListProtectionsResult& WithRequestId(RequestIdT&& value) {
92 SetRequestId(std::forward<RequestIdT>(value));
93 return *this;
94 }
96 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
97
98 private:
99 Aws::Vector<Protection> m_protections;
100
101 Aws::String m_nextToken;
102
103 Aws::String m_requestId;
104 Aws::Http::HttpResponseCode m_HttpResponseCode;
105 bool m_protectionsHasBeenSet = false;
106 bool m_nextTokenHasBeenSet = false;
107 bool m_requestIdHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Shield
112} // namespace Aws
ListProtectionsResult & AddProtections(ProtectionsT &&value)
AWS_SHIELD_API ListProtectionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListProtectionsResult & WithNextToken(NextTokenT &&value)
AWS_SHIELD_API ListProtectionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Protection > & GetProtections() const
AWS_SHIELD_API ListProtectionsResult()=default
ListProtectionsResult & WithProtections(ProtectionsT &&value)
ListProtectionsResult & WithRequestId(RequestIdT &&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