AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListProtectionsRequest.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/ShieldRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/shield/model/InclusionProtectionFilters.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Shield
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SHIELD_API ListProtectionsRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListProtections"; }
32
33 AWS_SHIELD_API Aws::String SerializePayload() const override;
34
36
37
39
53 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
54 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
55 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
56 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
57 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
58 inline ListProtectionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
59 inline ListProtectionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
60 inline ListProtectionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
62
64
71 inline int GetMaxResults() const{ return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 inline ListProtectionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
76
78
86 inline const InclusionProtectionFilters& GetInclusionFilters() const{ return m_inclusionFilters; }
87 inline bool InclusionFiltersHasBeenSet() const { return m_inclusionFiltersHasBeenSet; }
88 inline void SetInclusionFilters(const InclusionProtectionFilters& value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters = value; }
89 inline void SetInclusionFilters(InclusionProtectionFilters&& value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters = std::move(value); }
93 private:
94
95 Aws::String m_nextToken;
96 bool m_nextTokenHasBeenSet = false;
97
98 int m_maxResults;
99 bool m_maxResultsHasBeenSet = false;
100
101 InclusionProtectionFilters m_inclusionFilters;
102 bool m_inclusionFiltersHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Shield
107} // namespace Aws
ListProtectionsRequest & WithNextToken(Aws::String &&value)
ListProtectionsRequest & WithInclusionFilters(InclusionProtectionFilters &&value)
ListProtectionsRequest & WithMaxResults(int value)
ListProtectionsRequest & WithNextToken(const Aws::String &value)
AWS_SHIELD_API Aws::String SerializePayload() const override
void SetInclusionFilters(InclusionProtectionFilters &&value)
ListProtectionsRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override
const InclusionProtectionFilters & GetInclusionFilters() const
void SetInclusionFilters(const InclusionProtectionFilters &value)
AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListProtectionsRequest & WithInclusionFilters(const InclusionProtectionFilters &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String