AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetSecurityPolicyRequest.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
13namespace Aws
14{
15namespace OpenSearchServerless
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OPENSEARCHSERVERLESS_API GetSecurityPolicyRequest() = default;
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 "GetSecurityPolicy"; }
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 SecurityPolicyType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(SecurityPolicyType value) { m_typeHasBeenSet = true; m_type = value; }
45 inline GetSecurityPolicyRequest& WithType(SecurityPolicyType value) { SetType(value); return *this;}
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 GetSecurityPolicyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59 private:
60
62 bool m_typeHasBeenSet = false;
63
64 Aws::String m_name;
65 bool m_nameHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace OpenSearchServerless
70} // 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