AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
OpenSearchLifecyclePolicy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/OpenSearchResourceStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
35 public:
36 AWS_CLOUDWATCHLOGS_API OpenSearchLifecyclePolicy() = default;
37 AWS_CLOUDWATCHLOGS_API OpenSearchLifecyclePolicy(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetPolicyName() const { return m_policyName; }
46 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
47 template <typename PolicyNameT = Aws::String>
48 void SetPolicyName(PolicyNameT&& value) {
49 m_policyNameHasBeenSet = true;
50 m_policyName = std::forward<PolicyNameT>(value);
51 }
52 template <typename PolicyNameT = Aws::String>
54 SetPolicyName(std::forward<PolicyNameT>(value));
55 return *this;
56 }
58
60
64 inline const OpenSearchResourceStatus& GetStatus() const { return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 template <typename StatusT = OpenSearchResourceStatus>
67 void SetStatus(StatusT&& value) {
68 m_statusHasBeenSet = true;
69 m_status = std::forward<StatusT>(value);
70 }
71 template <typename StatusT = OpenSearchResourceStatus>
73 SetStatus(std::forward<StatusT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_policyName;
79
81 bool m_policyNameHasBeenSet = false;
82 bool m_statusHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CloudWatchLogs
87} // namespace Aws
AWS_CLOUDWATCHLOGS_API OpenSearchLifecyclePolicy()=default
AWS_CLOUDWATCHLOGS_API OpenSearchLifecyclePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
OpenSearchLifecyclePolicy & WithStatus(StatusT &&value)
OpenSearchLifecyclePolicy & WithPolicyName(PolicyNameT &&value)
AWS_CLOUDWATCHLOGS_API OpenSearchLifecyclePolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue