AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Logger.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/model/LoggerComponent.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrass/model/LoggerLevel.h>
11#include <aws/greengrass/model/LoggerType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Greengrass
25{
26namespace Model
27{
28
34 class Logger
35 {
36 public:
37 AWS_GREENGRASS_API Logger();
38 AWS_GREENGRASS_API Logger(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GREENGRASS_API Logger& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const LoggerComponent& GetComponent() const{ return m_component; }
48 inline bool ComponentHasBeenSet() const { return m_componentHasBeenSet; }
49 inline void SetComponent(const LoggerComponent& value) { m_componentHasBeenSet = true; m_component = value; }
50 inline void SetComponent(LoggerComponent&& value) { m_componentHasBeenSet = true; m_component = std::move(value); }
51 inline Logger& WithComponent(const LoggerComponent& value) { SetComponent(value); return *this;}
52 inline Logger& WithComponent(LoggerComponent&& value) { SetComponent(std::move(value)); return *this;}
54
56
61 inline const Aws::String& GetId() const{ return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
64 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 inline Logger& WithId(const Aws::String& value) { SetId(value); return *this;}
67 inline Logger& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
68 inline Logger& WithId(const char* value) { SetId(value); return *this;}
70
72
75 inline const LoggerLevel& GetLevel() const{ return m_level; }
76 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
77 inline void SetLevel(const LoggerLevel& value) { m_levelHasBeenSet = true; m_level = value; }
78 inline void SetLevel(LoggerLevel&& value) { m_levelHasBeenSet = true; m_level = std::move(value); }
79 inline Logger& WithLevel(const LoggerLevel& value) { SetLevel(value); return *this;}
80 inline Logger& WithLevel(LoggerLevel&& value) { SetLevel(std::move(value)); return *this;}
82
84
88 inline int GetSpace() const{ return m_space; }
89 inline bool SpaceHasBeenSet() const { return m_spaceHasBeenSet; }
90 inline void SetSpace(int value) { m_spaceHasBeenSet = true; m_space = value; }
91 inline Logger& WithSpace(int value) { SetSpace(value); return *this;}
93
95
98 inline const LoggerType& GetType() const{ return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 inline void SetType(const LoggerType& value) { m_typeHasBeenSet = true; m_type = value; }
101 inline void SetType(LoggerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
102 inline Logger& WithType(const LoggerType& value) { SetType(value); return *this;}
103 inline Logger& WithType(LoggerType&& value) { SetType(std::move(value)); return *this;}
105 private:
106
107 LoggerComponent m_component;
108 bool m_componentHasBeenSet = false;
109
110 Aws::String m_id;
111 bool m_idHasBeenSet = false;
112
113 LoggerLevel m_level;
114 bool m_levelHasBeenSet = false;
115
116 int m_space;
117 bool m_spaceHasBeenSet = false;
118
119 LoggerType m_type;
120 bool m_typeHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Greengrass
125} // namespace Aws
Logger & WithComponent(const LoggerComponent &value)
Definition Logger.h:51
void SetType(const LoggerType &value)
Definition Logger.h:100
bool SpaceHasBeenSet() const
Definition Logger.h:89
const LoggerType & GetType() const
Definition Logger.h:98
Logger & WithLevel(const LoggerLevel &value)
Definition Logger.h:79
AWS_GREENGRASS_API Logger & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLevel(LoggerLevel &&value)
Definition Logger.h:78
Logger & WithType(const LoggerType &value)
Definition Logger.h:102
void SetId(const char *value)
Definition Logger.h:65
Logger & WithId(const Aws::String &value)
Definition Logger.h:66
Logger & WithType(LoggerType &&value)
Definition Logger.h:103
Logger & WithId(Aws::String &&value)
Definition Logger.h:67
void SetId(Aws::String &&value)
Definition Logger.h:64
void SetId(const Aws::String &value)
Definition Logger.h:63
bool ComponentHasBeenSet() const
Definition Logger.h:48
Logger & WithSpace(int value)
Definition Logger.h:91
AWS_GREENGRASS_API Logger(Aws::Utils::Json::JsonView jsonValue)
bool LevelHasBeenSet() const
Definition Logger.h:76
Logger & WithComponent(LoggerComponent &&value)
Definition Logger.h:52
void SetType(LoggerType &&value)
Definition Logger.h:101
AWS_GREENGRASS_API Logger()
void SetComponent(const LoggerComponent &value)
Definition Logger.h:49
Logger & WithLevel(LoggerLevel &&value)
Definition Logger.h:80
void SetSpace(int value)
Definition Logger.h:90
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
Logger & WithId(const char *value)
Definition Logger.h:68
void SetComponent(LoggerComponent &&value)
Definition Logger.h:50
const LoggerLevel & GetLevel() const
Definition Logger.h:75
const LoggerComponent & GetComponent() const
Definition Logger.h:47
bool TypeHasBeenSet() const
Definition Logger.h:99
void SetLevel(const LoggerLevel &value)
Definition Logger.h:77
const Aws::String & GetId() const
Definition Logger.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue