AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLogStreams(const Aws::Vector<CloudWatchLogsLogStream>& value) { m_logStreamsHasBeenSet = true; m_logStreams = value; }
59 inline void SetLogStreams(Aws::Vector<CloudWatchLogsLogStream>&& value) { m_logStreamsHasBeenSet = true; m_logStreams = std::move(value); }
62 inline CloudWatchLogsConfiguration& AddLogStreams(const CloudWatchLogsLogStream& value) { m_logStreamsHasBeenSet = true; m_logStreams.push_back(value); return *this; }
63 inline CloudWatchLogsConfiguration& AddLogStreams(CloudWatchLogsLogStream&& value) { m_logStreamsHasBeenSet = true; m_logStreams.push_back(std::move(value)); return *this; }
65 private:
66
67 bool m_enabled;
68 bool m_enabledHasBeenSet = false;
69
71 bool m_logStreamsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace OpsWorks
76} // namespace Aws
const Aws::Vector< CloudWatchLogsLogStream > & GetLogStreams() const
CloudWatchLogsConfiguration & WithEnabled(bool value)
void SetLogStreams(Aws::Vector< CloudWatchLogsLogStream > &&value)
void SetLogStreams(const Aws::Vector< CloudWatchLogsLogStream > &value)
CloudWatchLogsConfiguration & WithLogStreams(const Aws::Vector< CloudWatchLogsLogStream > &value)
AWS_OPSWORKS_API CloudWatchLogsConfiguration(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLogsConfiguration & AddLogStreams(const CloudWatchLogsLogStream &value)
CloudWatchLogsConfiguration & WithLogStreams(Aws::Vector< CloudWatchLogsLogStream > &&value)
AWS_OPSWORKS_API CloudWatchLogsConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLogsConfiguration & AddLogStreams(CloudWatchLogsLogStream &&value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue