AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OpenSearchNetworkPolicy.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/OpenSearchResourceStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_CLOUDWATCHLOGS_API OpenSearchNetworkPolicy() = default;
41 AWS_CLOUDWATCHLOGS_API OpenSearchNetworkPolicy(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetPolicyName() const { return m_policyName; }
51 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
52 template<typename PolicyNameT = Aws::String>
53 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
54 template<typename PolicyNameT = Aws::String>
55 OpenSearchNetworkPolicy& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
57
59
63 inline const OpenSearchResourceStatus& GetStatus() const { return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 template<typename StatusT = OpenSearchResourceStatus>
66 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
67 template<typename StatusT = OpenSearchResourceStatus>
68 OpenSearchNetworkPolicy& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
70 private:
71
72 Aws::String m_policyName;
73 bool m_policyNameHasBeenSet = false;
74
76 bool m_statusHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace CloudWatchLogs
81} // namespace Aws
const OpenSearchResourceStatus & GetStatus() const
OpenSearchNetworkPolicy & WithPolicyName(PolicyNameT &&value)
AWS_CLOUDWATCHLOGS_API OpenSearchNetworkPolicy()=default
AWS_CLOUDWATCHLOGS_API OpenSearchNetworkPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API OpenSearchNetworkPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
OpenSearchNetworkPolicy & WithStatus(StatusT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue