AWS SDK for C++  1.9.132
AWS SDK for C++
LogTarget.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const LogTargetType& GetTargetType() const{ return m_targetType; }
45 
49  inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
50 
54  inline void SetTargetType(const LogTargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
55 
59  inline void SetTargetType(LogTargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
60 
64  inline LogTarget& WithTargetType(const LogTargetType& value) { SetTargetType(value); return *this;}
65 
69  inline LogTarget& WithTargetType(LogTargetType&& value) { SetTargetType(std::move(value)); return *this;}
70 
71 
75  inline const Aws::String& GetTargetName() const{ return m_targetName; }
76 
80  inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
81 
85  inline void SetTargetName(const Aws::String& value) { m_targetNameHasBeenSet = true; m_targetName = value; }
86 
90  inline void SetTargetName(Aws::String&& value) { m_targetNameHasBeenSet = true; m_targetName = std::move(value); }
91 
95  inline void SetTargetName(const char* value) { m_targetNameHasBeenSet = true; m_targetName.assign(value); }
96 
100  inline LogTarget& WithTargetName(const Aws::String& value) { SetTargetName(value); return *this;}
101 
105  inline LogTarget& WithTargetName(Aws::String&& value) { SetTargetName(std::move(value)); return *this;}
106 
110  inline LogTarget& WithTargetName(const char* value) { SetTargetName(value); return *this;}
111 
112  private:
113 
114  LogTargetType m_targetType;
115  bool m_targetTypeHasBeenSet;
116 
117  Aws::String m_targetName;
118  bool m_targetNameHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace IoT
123 } // namespace Aws
Aws::IoT::Model::LogTarget::WithTargetName
LogTarget & WithTargetName(Aws::String &&value)
Definition: LogTarget.h:105
Aws::IoT::Model::LogTarget::WithTargetName
LogTarget & WithTargetName(const Aws::String &value)
Definition: LogTarget.h:100
Aws::IoT::Model::LogTarget::WithTargetName
LogTarget & WithTargetName(const char *value)
Definition: LogTarget.h:110
Aws::IoT::Model::LogTarget::TargetTypeHasBeenSet
bool TargetTypeHasBeenSet() const
Definition: LogTarget.h:49
Aws::IoT::Model::LogTargetType
LogTargetType
Definition: LogTargetType.h:17
Aws::IoT::Model::LogTarget::GetTargetName
const Aws::String & GetTargetName() const
Definition: LogTarget.h:75
Aws::IoT::Model::LogTarget::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
LogTargetType.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::LogTarget::SetTargetName
void SetTargetName(Aws::String &&value)
Definition: LogTarget.h:90
Aws::IoT::Model::LogTarget
Definition: LogTarget.h:33
Aws::IoT::Model::LogTarget::GetTargetType
const LogTargetType & GetTargetType() const
Definition: LogTarget.h:44
Aws::IoT::Model::LogTarget::LogTarget
LogTarget()
Aws::IoT::Model::LogTarget::WithTargetType
LogTarget & WithTargetType(const LogTargetType &value)
Definition: LogTarget.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::LogTarget::operator=
LogTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::LogTarget::SetTargetType
void SetTargetType(const LogTargetType &value)
Definition: LogTarget.h:54
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::LogTarget::SetTargetName
void SetTargetName(const char *value)
Definition: LogTarget.h:95
Aws::IoT::Model::LogTarget::WithTargetType
LogTarget & WithTargetType(LogTargetType &&value)
Definition: LogTarget.h:69
Aws::IoT::Model::LogTarget::LogTarget
LogTarget(Aws::Utils::Json::JsonView jsonValue)
IoT_EXPORTS.h
Aws::IoT::Model::LogTarget::SetTargetType
void SetTargetType(LogTargetType &&value)
Definition: LogTarget.h:59
Aws::IoT::Model::LogTarget::TargetNameHasBeenSet
bool TargetNameHasBeenSet() const
Definition: LogTarget.h:80
Aws::IoT::Model::LogTarget::SetTargetName
void SetTargetName(const Aws::String &value)
Definition: LogTarget.h:85