AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeleteSecurityPolicyRequest.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
9#include <aws/opensearchserverless/model/SecurityPolicyType.h>
10#include <aws/core/utils/memory/stl/AWSString.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 DeleteSecurityPolicyRequest() = default;
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 "DeleteSecurityPolicy"; }
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 SecurityPolicyType GetType() const { return m_type; }
44 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
45 inline void SetType(SecurityPolicyType value) { m_typeHasBeenSet = true; m_type = value; }
46 inline DeleteSecurityPolicyRequest& WithType(SecurityPolicyType value) { SetType(value); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 DeleteSecurityPolicyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetClientToken() const { return m_clientToken; }
66 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
67 template<typename ClientTokenT = Aws::String>
68 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
69 template<typename ClientTokenT = Aws::String>
70 DeleteSecurityPolicyRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
72 private:
73
75 bool m_typeHasBeenSet = false;
76
77 Aws::String m_name;
78 bool m_nameHasBeenSet = false;
79
81 bool m_clientTokenHasBeenSet = true;
82 };
83
84} // namespace Model
85} // namespace OpenSearchServerless
86} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API DeleteSecurityPolicyRequest()=default
DeleteSecurityPolicyRequest & WithClientToken(ClientTokenT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
DeleteSecurityPolicyRequest & WithType(SecurityPolicyType value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String