AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListProtectionsResult.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/shield/Shield_EXPORTS.h>
10#include <aws/shield/model/Protection.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Shield {
24namespace Model {
26 public:
27 AWS_SHIELD_API ListProtectionsResult() = default;
30
32
35 inline const Aws::Vector<Protection>& GetProtections() const { return m_protections; }
36 template <typename ProtectionsT = Aws::Vector<Protection>>
37 void SetProtections(ProtectionsT&& value) {
38 m_protectionsHasBeenSet = true;
39 m_protections = std::forward<ProtectionsT>(value);
40 }
41 template <typename ProtectionsT = Aws::Vector<Protection>>
42 ListProtectionsResult& WithProtections(ProtectionsT&& value) {
43 SetProtections(std::forward<ProtectionsT>(value));
44 return *this;
45 }
46 template <typename ProtectionsT = Protection>
47 ListProtectionsResult& AddProtections(ProtectionsT&& value) {
48 m_protectionsHasBeenSet = true;
49 m_protections.emplace_back(std::forward<ProtectionsT>(value));
50 return *this;
51 }
53
55
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 template <typename NextTokenT = Aws::String>
70 void SetNextToken(NextTokenT&& value) {
71 m_nextTokenHasBeenSet = true;
72 m_nextToken = std::forward<NextTokenT>(value);
73 }
74 template <typename NextTokenT = Aws::String>
75 ListProtectionsResult& WithNextToken(NextTokenT&& value) {
76 SetNextToken(std::forward<NextTokenT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
90 ListProtectionsResult& WithRequestId(RequestIdT&& value) {
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 private:
96 Aws::Vector<Protection> m_protections;
97
98 Aws::String m_nextToken;
99
100 Aws::String m_requestId;
101 bool m_protectionsHasBeenSet = false;
102 bool m_nextTokenHasBeenSet = false;
103 bool m_requestIdHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Shield
108} // namespace Aws
ListProtectionsResult & AddProtections(ProtectionsT &&value)
AWS_SHIELD_API ListProtectionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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