AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAccessPolicyRequest.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#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace OpenSearchServerless
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_OPENSEARCHSERVERLESS_API CreateAccessPolicyRequest();
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 "CreateAccessPolicy"; }
33
34 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
35
36 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
46 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
47 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
48 inline CreateAccessPolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline CreateAccessPolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline CreateAccessPolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
52
54
58 inline const Aws::String& GetDescription() const{ return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 inline CreateAccessPolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline CreateAccessPolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline CreateAccessPolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline CreateAccessPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline CreateAccessPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline CreateAccessPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
81
83
86 inline const Aws::String& GetPolicy() const{ return m_policy; }
87 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
88 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
89 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
90 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
91 inline CreateAccessPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
92 inline CreateAccessPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
93 inline CreateAccessPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
95
97
100 inline const AccessPolicyType& GetType() const{ return m_type; }
101 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
102 inline void SetType(const AccessPolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
103 inline void SetType(AccessPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
104 inline CreateAccessPolicyRequest& WithType(const AccessPolicyType& value) { SetType(value); return *this;}
105 inline CreateAccessPolicyRequest& WithType(AccessPolicyType&& value) { SetType(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_clientToken;
110 bool m_clientTokenHasBeenSet = false;
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
118 Aws::String m_policy;
119 bool m_policyHasBeenSet = false;
120
121 AccessPolicyType m_type;
122 bool m_typeHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace OpenSearchServerless
127} // namespace Aws
CreateAccessPolicyRequest & WithName(Aws::String &&value)
CreateAccessPolicyRequest & WithPolicy(Aws::String &&value)
CreateAccessPolicyRequest & WithClientToken(const char *value)
CreateAccessPolicyRequest & WithDescription(Aws::String &&value)
CreateAccessPolicyRequest & WithClientToken(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
CreateAccessPolicyRequest & WithClientToken(Aws::String &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAccessPolicyRequest & WithType(AccessPolicyType &&value)
CreateAccessPolicyRequest & WithType(const AccessPolicyType &value)
CreateAccessPolicyRequest & WithName(const char *value)
CreateAccessPolicyRequest & WithPolicy(const char *value)
CreateAccessPolicyRequest & WithName(const Aws::String &value)
CreateAccessPolicyRequest & WithDescription(const Aws::String &value)
CreateAccessPolicyRequest & WithPolicy(const Aws::String &value)
CreateAccessPolicyRequest & WithDescription(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String