AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OpenSearchDataSource.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
41 {
42 public:
43 AWS_CLOUDWATCHLOGS_API OpenSearchDataSource() = default;
44 AWS_CLOUDWATCHLOGS_API OpenSearchDataSource(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CLOUDWATCHLOGS_API OpenSearchDataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetDataSourceName() const { return m_dataSourceName; }
54 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
55 template<typename DataSourceNameT = Aws::String>
56 void SetDataSourceName(DataSourceNameT&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::forward<DataSourceNameT>(value); }
57 template<typename DataSourceNameT = Aws::String>
58 OpenSearchDataSource& WithDataSourceName(DataSourceNameT&& value) { SetDataSourceName(std::forward<DataSourceNameT>(value)); return *this;}
60
62
66 inline const OpenSearchResourceStatus& GetStatus() const { return m_status; }
67 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
68 template<typename StatusT = OpenSearchResourceStatus>
69 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
70 template<typename StatusT = OpenSearchResourceStatus>
71 OpenSearchDataSource& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
73 private:
74
75 Aws::String m_dataSourceName;
76 bool m_dataSourceNameHasBeenSet = false;
77
79 bool m_statusHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace CloudWatchLogs
84} // namespace Aws
AWS_CLOUDWATCHLOGS_API OpenSearchDataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API OpenSearchDataSource()=default
const OpenSearchResourceStatus & GetStatus() const
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
OpenSearchDataSource & WithDataSourceName(DataSourceNameT &&value)
OpenSearchDataSource & WithStatus(StatusT &&value)
AWS_CLOUDWATCHLOGS_API OpenSearchDataSource(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue