AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudWatchLogsConfig.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/LogsConfigStatusType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 CodeBuild
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEBUILD_API CloudWatchLogsConfig();
39 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const LogsConfigStatusType& GetStatus() const{ return m_status; }
50 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
51 inline void SetStatus(const LogsConfigStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
52 inline void SetStatus(LogsConfigStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
53 inline CloudWatchLogsConfig& WithStatus(const LogsConfigStatusType& value) { SetStatus(value); return *this;}
54 inline CloudWatchLogsConfig& WithStatus(LogsConfigStatusType&& value) { SetStatus(std::move(value)); return *this;}
56
58
63 inline const Aws::String& GetGroupName() const{ return m_groupName; }
64 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
65 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
66 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
67 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
68 inline CloudWatchLogsConfig& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
69 inline CloudWatchLogsConfig& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
70 inline CloudWatchLogsConfig& WithGroupName(const char* value) { SetGroupName(value); return *this;}
72
74
80 inline const Aws::String& GetStreamName() const{ return m_streamName; }
81 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
82 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
83 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
84 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
85 inline CloudWatchLogsConfig& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
86 inline CloudWatchLogsConfig& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
87 inline CloudWatchLogsConfig& WithStreamName(const char* value) { SetStreamName(value); return *this;}
89 private:
90
91 LogsConfigStatusType m_status;
92 bool m_statusHasBeenSet = false;
93
94 Aws::String m_groupName;
95 bool m_groupNameHasBeenSet = false;
96
97 Aws::String m_streamName;
98 bool m_streamNameHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace CodeBuild
103} // namespace Aws
CloudWatchLogsConfig & WithGroupName(const char *value)
AWS_CODEBUILD_API CloudWatchLogsConfig(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLogsConfig & WithStatus(LogsConfigStatusType &&value)
const LogsConfigStatusType & GetStatus() const
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
CloudWatchLogsConfig & WithStreamName(const char *value)
CloudWatchLogsConfig & WithStreamName(Aws::String &&value)
CloudWatchLogsConfig & WithGroupName(const Aws::String &value)
void SetStatus(LogsConfigStatusType &&value)
CloudWatchLogsConfig & WithGroupName(Aws::String &&value)
CloudWatchLogsConfig & WithStatus(const LogsConfigStatusType &value)
void SetStatus(const LogsConfigStatusType &value)
AWS_CODEBUILD_API CloudWatchLogsConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLogsConfig & WithStreamName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue