AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
39 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline LogsConfigStatusType GetStatus() const { return m_status; }
50 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
51 inline void SetStatus(LogsConfigStatusType value) { m_statusHasBeenSet = true; m_status = value; }
52 inline CloudWatchLogsConfig& WithStatus(LogsConfigStatusType value) { SetStatus(value); return *this;}
54
56
61 inline const Aws::String& GetGroupName() const { return m_groupName; }
62 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
63 template<typename GroupNameT = Aws::String>
64 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
65 template<typename GroupNameT = Aws::String>
66 CloudWatchLogsConfig& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
68
70
76 inline const Aws::String& GetStreamName() const { return m_streamName; }
77 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
78 template<typename StreamNameT = Aws::String>
79 void SetStreamName(StreamNameT&& value) { m_streamNameHasBeenSet = true; m_streamName = std::forward<StreamNameT>(value); }
80 template<typename StreamNameT = Aws::String>
81 CloudWatchLogsConfig& WithStreamName(StreamNameT&& value) { SetStreamName(std::forward<StreamNameT>(value)); return *this;}
83 private:
84
86 bool m_statusHasBeenSet = false;
87
88 Aws::String m_groupName;
89 bool m_groupNameHasBeenSet = false;
90
91 Aws::String m_streamName;
92 bool m_streamNameHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CodeBuild
97} // namespace Aws
AWS_CODEBUILD_API CloudWatchLogsConfig()=default
AWS_CODEBUILD_API CloudWatchLogsConfig(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(LogsConfigStatusType value)
CloudWatchLogsConfig & WithGroupName(GroupNameT &&value)
CloudWatchLogsConfig & WithStatus(LogsConfigStatusType value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API CloudWatchLogsConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLogsConfig & WithStreamName(StreamNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue