AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LogTarget.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/LogTargetType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 IoT
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOT_API LogTarget();
36 AWS_IOT_API LogTarget(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const LogTargetType& GetTargetType() const{ return m_targetType; }
46 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
47 inline void SetTargetType(const LogTargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
48 inline void SetTargetType(LogTargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
49 inline LogTarget& WithTargetType(const LogTargetType& value) { SetTargetType(value); return *this;}
50 inline LogTarget& WithTargetType(LogTargetType&& value) { SetTargetType(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetTargetName() const{ return m_targetName; }
58 inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
59 inline void SetTargetName(const Aws::String& value) { m_targetNameHasBeenSet = true; m_targetName = value; }
60 inline void SetTargetName(Aws::String&& value) { m_targetNameHasBeenSet = true; m_targetName = std::move(value); }
61 inline void SetTargetName(const char* value) { m_targetNameHasBeenSet = true; m_targetName.assign(value); }
62 inline LogTarget& WithTargetName(const Aws::String& value) { SetTargetName(value); return *this;}
63 inline LogTarget& WithTargetName(Aws::String&& value) { SetTargetName(std::move(value)); return *this;}
64 inline LogTarget& WithTargetName(const char* value) { SetTargetName(value); return *this;}
66 private:
67
68 LogTargetType m_targetType;
69 bool m_targetTypeHasBeenSet = false;
70
71 Aws::String m_targetName;
72 bool m_targetNameHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace IoT
77} // namespace Aws
LogTarget & WithTargetName(const Aws::String &value)
Definition LogTarget.h:62
const Aws::String & GetTargetName() const
Definition LogTarget.h:57
void SetTargetType(const LogTargetType &value)
Definition LogTarget.h:47
const LogTargetType & GetTargetType() const
Definition LogTarget.h:45
void SetTargetType(LogTargetType &&value)
Definition LogTarget.h:48
AWS_IOT_API LogTarget(Aws::Utils::Json::JsonView jsonValue)
LogTarget & WithTargetType(const LogTargetType &value)
Definition LogTarget.h:49
LogTarget & WithTargetType(LogTargetType &&value)
Definition LogTarget.h:50
void SetTargetName(Aws::String &&value)
Definition LogTarget.h:60
bool TargetNameHasBeenSet() const
Definition LogTarget.h:58
LogTarget & WithTargetName(const char *value)
Definition LogTarget.h:64
AWS_IOT_API LogTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetName(const Aws::String &value)
Definition LogTarget.h:59
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetName(const char *value)
Definition LogTarget.h:61
bool TargetTypeHasBeenSet() const
Definition LogTarget.h:46
LogTarget & WithTargetName(Aws::String &&value)
Definition LogTarget.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue