AWS SDK for C++  1.9.107
AWS SDK for C++
CloudWatchLogsConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace OpsWorks
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline bool GetEnabled() const{ return m_enabled; }
46 
50  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
51 
55  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
56 
60  inline CloudWatchLogsConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
61 
62 
66  inline const Aws::Vector<CloudWatchLogsLogStream>& GetLogStreams() const{ return m_logStreams; }
67 
71  inline bool LogStreamsHasBeenSet() const { return m_logStreamsHasBeenSet; }
72 
76  inline void SetLogStreams(const Aws::Vector<CloudWatchLogsLogStream>& value) { m_logStreamsHasBeenSet = true; m_logStreams = value; }
77 
81  inline void SetLogStreams(Aws::Vector<CloudWatchLogsLogStream>&& value) { m_logStreamsHasBeenSet = true; m_logStreams = std::move(value); }
82 
86  inline CloudWatchLogsConfiguration& WithLogStreams(const Aws::Vector<CloudWatchLogsLogStream>& value) { SetLogStreams(value); return *this;}
87 
91  inline CloudWatchLogsConfiguration& WithLogStreams(Aws::Vector<CloudWatchLogsLogStream>&& value) { SetLogStreams(std::move(value)); return *this;}
92 
96  inline CloudWatchLogsConfiguration& AddLogStreams(const CloudWatchLogsLogStream& value) { m_logStreamsHasBeenSet = true; m_logStreams.push_back(value); return *this; }
97 
101  inline CloudWatchLogsConfiguration& AddLogStreams(CloudWatchLogsLogStream&& value) { m_logStreamsHasBeenSet = true; m_logStreams.push_back(std::move(value)); return *this; }
102 
103  private:
104 
105  bool m_enabled;
106  bool m_enabledHasBeenSet;
107 
109  bool m_logStreamsHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace OpsWorks
114 } // namespace Aws
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::CloudWatchLogsConfiguration
CloudWatchLogsConfiguration()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::operator=
CloudWatchLogsConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::SetLogStreams
void SetLogStreams(const Aws::Vector< CloudWatchLogsLogStream > &value)
Definition: CloudWatchLogsConfiguration.h:76
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: CloudWatchLogsConfiguration.h:50
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::GetLogStreams
const Aws::Vector< CloudWatchLogsLogStream > & GetLogStreams() const
Definition: CloudWatchLogsConfiguration.h:66
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::WithEnabled
CloudWatchLogsConfiguration & WithEnabled(bool value)
Definition: CloudWatchLogsConfiguration.h:60
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::LogStreamsHasBeenSet
bool LogStreamsHasBeenSet() const
Definition: CloudWatchLogsConfiguration.h:71
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::AddLogStreams
CloudWatchLogsConfiguration & AddLogStreams(CloudWatchLogsLogStream &&value)
Definition: CloudWatchLogsConfiguration.h:101
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::CloudWatchLogsConfiguration
CloudWatchLogsConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::SetLogStreams
void SetLogStreams(Aws::Vector< CloudWatchLogsLogStream > &&value)
Definition: CloudWatchLogsConfiguration.h:81
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::SetEnabled
void SetEnabled(bool value)
Definition: CloudWatchLogsConfiguration.h:55
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::GetEnabled
bool GetEnabled() const
Definition: CloudWatchLogsConfiguration.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::AddLogStreams
CloudWatchLogsConfiguration & AddLogStreams(const CloudWatchLogsLogStream &value)
Definition: CloudWatchLogsConfiguration.h:96
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::CloudWatchLogsConfiguration
Definition: CloudWatchLogsConfiguration.h:34
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::WithLogStreams
CloudWatchLogsConfiguration & WithLogStreams(const Aws::Vector< CloudWatchLogsLogStream > &value)
Definition: CloudWatchLogsConfiguration.h:86
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::CloudWatchLogsConfiguration::WithLogStreams
CloudWatchLogsConfiguration & WithLogStreams(Aws::Vector< CloudWatchLogsLogStream > &&value)
Definition: CloudWatchLogsConfiguration.h:91
CloudWatchLogsLogStream.h
Aws::OpsWorks::Model::CloudWatchLogsLogStream
Definition: CloudWatchLogsLogStream.h:38