AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetAccessPolicyRequest.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/opensearchserverless/model/AccessPolicyType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpenSearchServerless
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OPENSEARCHSERVERLESS_API GetAccessPolicyRequest();
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 "GetAccessPolicy"; }
32
33 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
34
35 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetName() const{ return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline GetAccessPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline GetAccessPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline GetAccessPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
57 inline const AccessPolicyType& GetType() const{ return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(const AccessPolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
60 inline void SetType(AccessPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
61 inline GetAccessPolicyRequest& WithType(const AccessPolicyType& value) { SetType(value); return *this;}
62 inline GetAccessPolicyRequest& WithType(AccessPolicyType&& value) { SetType(std::move(value)); return *this;}
64 private:
65
66 Aws::String m_name;
67 bool m_nameHasBeenSet = false;
68
69 AccessPolicyType m_type;
70 bool m_typeHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace OpenSearchServerless
75} // namespace Aws
GetAccessPolicyRequest & WithType(AccessPolicyType &&value)
GetAccessPolicyRequest & WithType(const AccessPolicyType &value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
GetAccessPolicyRequest & WithName(const char *value)
GetAccessPolicyRequest & WithName(Aws::String &&value)
GetAccessPolicyRequest & WithName(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String