AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CloudWatchLogsConfiguration.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opsworks/model/CloudWatchLogsLogStream.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 OpsWorks
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPSWORKS_API CloudWatchLogsConfiguration() = default;
39 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline bool GetEnabled() const { return m_enabled; }
47 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
48 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
49 inline CloudWatchLogsConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
51
53
56 inline const Aws::Vector<CloudWatchLogsLogStream>& GetLogStreams() const { return m_logStreams; }
57 inline bool LogStreamsHasBeenSet() const { return m_logStreamsHasBeenSet; }
58 template<typename LogStreamsT = Aws::Vector<CloudWatchLogsLogStream>>
59 void SetLogStreams(LogStreamsT&& value) { m_logStreamsHasBeenSet = true; m_logStreams = std::forward<LogStreamsT>(value); }
60 template<typename LogStreamsT = Aws::Vector<CloudWatchLogsLogStream>>
61 CloudWatchLogsConfiguration& WithLogStreams(LogStreamsT&& value) { SetLogStreams(std::forward<LogStreamsT>(value)); return *this;}
62 template<typename LogStreamsT = CloudWatchLogsLogStream>
63 CloudWatchLogsConfiguration& AddLogStreams(LogStreamsT&& value) { m_logStreamsHasBeenSet = true; m_logStreams.emplace_back(std::forward<LogStreamsT>(value)); return *this; }
65 private:
66
67 bool m_enabled{false};
68 bool m_enabledHasBeenSet = false;
69
71 bool m_logStreamsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace OpsWorks
76} // namespace Aws
CloudWatchLogsConfiguration & AddLogStreams(LogStreamsT &&value)
AWS_OPSWORKS_API CloudWatchLogsConfiguration()=default
const Aws::Vector< CloudWatchLogsLogStream > & GetLogStreams() const
CloudWatchLogsConfiguration & WithLogStreams(LogStreamsT &&value)
CloudWatchLogsConfiguration & WithEnabled(bool value)
AWS_OPSWORKS_API CloudWatchLogsConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_OPSWORKS_API CloudWatchLogsConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue