AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetSecurityPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
9#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
10#include <aws/opensearchserverless/model/SecurityPolicyType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace OpenSearchServerless {
16namespace Model {
17
21 public:
22 AWS_OPENSEARCHSERVERLESS_API GetSecurityPolicyRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetSecurityPolicy"; }
29
30 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
31
32 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline SecurityPolicyType GetType() const { return m_type; }
39 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
40 inline void SetType(SecurityPolicyType value) {
41 m_typeHasBeenSet = true;
42 m_type = value;
43 }
45 SetType(value);
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67 private:
69
70 Aws::String m_name;
71 bool m_typeHasBeenSet = false;
72 bool m_nameHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace OpenSearchServerless
77} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetSecurityPolicyRequest & WithType(SecurityPolicyType value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
AWS_OPENSEARCHSERVERLESS_API GetSecurityPolicyRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String