AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
30 public:
31 AWS_CODEBUILD_API CloudWatchLogsConfig() = default;
34 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline LogsConfigStatusType GetStatus() const { return m_status; }
44 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
45 inline void SetStatus(LogsConfigStatusType value) {
46 m_statusHasBeenSet = true;
47 m_status = value;
48 }
50 SetStatus(value);
51 return *this;
52 }
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) {
65 m_groupNameHasBeenSet = true;
66 m_groupName = std::forward<GroupNameT>(value);
67 }
68 template <typename GroupNameT = Aws::String>
69 CloudWatchLogsConfig& WithGroupName(GroupNameT&& value) {
70 SetGroupName(std::forward<GroupNameT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::String& GetStreamName() const { return m_streamName; }
83 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
84 template <typename StreamNameT = Aws::String>
85 void SetStreamName(StreamNameT&& value) {
86 m_streamNameHasBeenSet = true;
87 m_streamName = std::forward<StreamNameT>(value);
88 }
89 template <typename StreamNameT = Aws::String>
90 CloudWatchLogsConfig& WithStreamName(StreamNameT&& value) {
91 SetStreamName(std::forward<StreamNameT>(value));
92 return *this;
93 }
95 private:
97
98 Aws::String m_groupName;
99
100 Aws::String m_streamName;
101 bool m_statusHasBeenSet = false;
102 bool m_groupNameHasBeenSet = false;
103 bool m_streamNameHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace CodeBuild
108} // 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