AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListSecurityPoliciesRequest.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/opensearchserverless/model/SecurityPolicyType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace OpenSearchServerless
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_OPENSEARCHSERVERLESS_API ListSecurityPoliciesRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListSecurityPolicies"; }
33
34 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
35
36 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline int GetMaxResults() const{ return m_maxResults; }
46 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
47 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
48 inline ListSecurityPoliciesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
50
52
58 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
61 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
62 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
63 inline ListSecurityPoliciesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
64 inline ListSecurityPoliciesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
65 inline ListSecurityPoliciesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
67
69
73 inline const Aws::Vector<Aws::String>& GetResource() const{ return m_resource; }
74 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
75 inline void SetResource(const Aws::Vector<Aws::String>& value) { m_resourceHasBeenSet = true; m_resource = value; }
76 inline void SetResource(Aws::Vector<Aws::String>&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
78 inline ListSecurityPoliciesRequest& WithResource(Aws::Vector<Aws::String>&& value) { SetResource(std::move(value)); return *this;}
79 inline ListSecurityPoliciesRequest& AddResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource.push_back(value); return *this; }
80 inline ListSecurityPoliciesRequest& AddResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource.push_back(std::move(value)); return *this; }
81 inline ListSecurityPoliciesRequest& AddResource(const char* value) { m_resourceHasBeenSet = true; m_resource.push_back(value); return *this; }
83
85
88 inline const SecurityPolicyType& GetType() const{ return m_type; }
89 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 inline void SetType(const SecurityPolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
91 inline void SetType(SecurityPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
92 inline ListSecurityPoliciesRequest& WithType(const SecurityPolicyType& value) { SetType(value); return *this;}
93 inline ListSecurityPoliciesRequest& WithType(SecurityPolicyType&& value) { SetType(std::move(value)); return *this;}
95 private:
96
97 int m_maxResults;
98 bool m_maxResultsHasBeenSet = false;
99
100 Aws::String m_nextToken;
101 bool m_nextTokenHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_resource;
104 bool m_resourceHasBeenSet = false;
105
106 SecurityPolicyType m_type;
107 bool m_typeHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace OpenSearchServerless
112} // namespace Aws
ListSecurityPoliciesRequest & WithNextToken(const Aws::String &value)
ListSecurityPoliciesRequest & WithResource(Aws::Vector< Aws::String > &&value)
ListSecurityPoliciesRequest & AddResource(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
ListSecurityPoliciesRequest & WithNextToken(const char *value)
ListSecurityPoliciesRequest & AddResource(Aws::String &&value)
ListSecurityPoliciesRequest & WithNextToken(Aws::String &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListSecurityPoliciesRequest & WithResource(const Aws::Vector< Aws::String > &value)
ListSecurityPoliciesRequest & WithType(const SecurityPolicyType &value)
ListSecurityPoliciesRequest & WithType(SecurityPolicyType &&value)
ListSecurityPoliciesRequest & AddResource(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector