AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSecurityPolicyRequest.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/SecurityPolicyType.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 CreateSecurityPolicyRequest();
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 "CreateSecurityPolicy"; }
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 CreateSecurityPolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline CreateSecurityPolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline CreateSecurityPolicyRequest& 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 CreateSecurityPolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline CreateSecurityPolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline CreateSecurityPolicyRequest& 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 CreateSecurityPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline CreateSecurityPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline CreateSecurityPolicyRequest& 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 CreateSecurityPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
92 inline CreateSecurityPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
93 inline CreateSecurityPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
95
97
100 inline const SecurityPolicyType& GetType() const{ return m_type; }
101 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
102 inline void SetType(const SecurityPolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
103 inline void SetType(SecurityPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
104 inline CreateSecurityPolicyRequest& WithType(const SecurityPolicyType& value) { SetType(value); return *this;}
105 inline CreateSecurityPolicyRequest& WithType(SecurityPolicyType&& 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 SecurityPolicyType m_type;
122 bool m_typeHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace OpenSearchServerless
127} // namespace Aws
CreateSecurityPolicyRequest & WithType(SecurityPolicyType &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
CreateSecurityPolicyRequest & WithClientToken(const char *value)
CreateSecurityPolicyRequest & WithType(const SecurityPolicyType &value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSecurityPolicyRequest & WithPolicy(const char *value)
CreateSecurityPolicyRequest & WithName(const Aws::String &value)
CreateSecurityPolicyRequest & WithDescription(const Aws::String &value)
CreateSecurityPolicyRequest & WithDescription(const char *value)
CreateSecurityPolicyRequest & WithClientToken(const Aws::String &value)
CreateSecurityPolicyRequest & WithDescription(Aws::String &&value)
CreateSecurityPolicyRequest & WithClientToken(Aws::String &&value)
CreateSecurityPolicyRequest & WithPolicy(Aws::String &&value)
CreateSecurityPolicyRequest & WithPolicy(const Aws::String &value)
CreateSecurityPolicyRequest & WithName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String