AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LogGroupField.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchLogs {
20namespace Model {
21
30 public:
31 AWS_CLOUDWATCHLOGS_API LogGroupField() = default;
32 AWS_CLOUDWATCHLOGS_API LogGroupField(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API LogGroupField& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 LogGroupField& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline int GetPercent() const { return m_percent; }
59 inline bool PercentHasBeenSet() const { return m_percentHasBeenSet; }
60 inline void SetPercent(int value) {
61 m_percentHasBeenSet = true;
62 m_percent = value;
63 }
64 inline LogGroupField& WithPercent(int value) {
65 SetPercent(value);
66 return *this;
67 }
69 private:
70 Aws::String m_name;
71
72 int m_percent{0};
73 bool m_nameHasBeenSet = false;
74 bool m_percentHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace CloudWatchLogs
79} // namespace Aws
LogGroupField & WithPercent(int value)
LogGroupField & WithName(NameT &&value)
AWS_CLOUDWATCHLOGS_API LogGroupField(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API LogGroupField()=default
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API LogGroupField & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue