AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LogGroupField.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_CLOUDWATCHLOGS_API LogGroupField();
37 AWS_CLOUDWATCHLOGS_API LogGroupField(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API LogGroupField& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline LogGroupField& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline LogGroupField& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline LogGroupField& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline int GetPercent() const{ return m_percent; }
61 inline bool PercentHasBeenSet() const { return m_percentHasBeenSet; }
62 inline void SetPercent(int value) { m_percentHasBeenSet = true; m_percent = value; }
63 inline LogGroupField& WithPercent(int value) { SetPercent(value); return *this;}
65 private:
66
67 Aws::String m_name;
68 bool m_nameHasBeenSet = false;
69
70 int m_percent;
71 bool m_percentHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CloudWatchLogs
76} // namespace Aws
LogGroupField & WithName(const char *value)
LogGroupField & WithPercent(int value)
void SetName(const Aws::String &value)
LogGroupField & WithName(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API LogGroupField(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API LogGroupField()
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
LogGroupField & WithName(Aws::String &&value)
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