AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogGroupSummary.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/LogGroupClass.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 CloudWatchLogs
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDWATCHLOGS_API LogGroupSummary() = default;
37 AWS_CLOUDWATCHLOGS_API LogGroupSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API LogGroupSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
47 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
48 template<typename LogGroupNameT = Aws::String>
49 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
50 template<typename LogGroupNameT = Aws::String>
51 LogGroupSummary& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetLogGroupArn() const { return m_logGroupArn; }
59 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
60 template<typename LogGroupArnT = Aws::String>
61 void SetLogGroupArn(LogGroupArnT&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::forward<LogGroupArnT>(value); }
62 template<typename LogGroupArnT = Aws::String>
63 LogGroupSummary& WithLogGroupArn(LogGroupArnT&& value) { SetLogGroupArn(std::forward<LogGroupArnT>(value)); return *this;}
65
67
73 inline LogGroupClass GetLogGroupClass() const { return m_logGroupClass; }
74 inline bool LogGroupClassHasBeenSet() const { return m_logGroupClassHasBeenSet; }
75 inline void SetLogGroupClass(LogGroupClass value) { m_logGroupClassHasBeenSet = true; m_logGroupClass = value; }
76 inline LogGroupSummary& WithLogGroupClass(LogGroupClass value) { SetLogGroupClass(value); return *this;}
78 private:
79
80 Aws::String m_logGroupName;
81 bool m_logGroupNameHasBeenSet = false;
82
83 Aws::String m_logGroupArn;
84 bool m_logGroupArnHasBeenSet = false;
85
87 bool m_logGroupClassHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CloudWatchLogs
92} // namespace Aws
AWS_CLOUDWATCHLOGS_API LogGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLogGroupArn() const
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
LogGroupSummary & WithLogGroupName(LogGroupNameT &&value)
void SetLogGroupName(LogGroupNameT &&value)
LogGroupSummary & WithLogGroupClass(LogGroupClass value)
AWS_CLOUDWATCHLOGS_API LogGroupSummary()=default
LogGroupSummary & WithLogGroupArn(LogGroupArnT &&value)
AWS_CLOUDWATCHLOGS_API LogGroupSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLogGroupName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue