AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Attribute.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_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 IoTSiteWise
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_IOTSITEWISE_API Attribute();
37 AWS_IOTSITEWISE_API Attribute(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTSITEWISE_API Attribute& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
51 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
52 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
53 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
54 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
55 inline Attribute& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
56 inline Attribute& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
57 inline Attribute& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
59 private:
60
61 Aws::String m_defaultValue;
62 bool m_defaultValueHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace IoTSiteWise
67} // namespace Aws
AWS_IOTSITEWISE_API Attribute(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Attribute()
void SetDefaultValue(const char *value)
Definition Attribute.h:54
Attribute & WithDefaultValue(Aws::String &&value)
Definition Attribute.h:56
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
Attribute & WithDefaultValue(const Aws::String &value)
Definition Attribute.h:55
const Aws::String & GetDefaultValue() const
Definition Attribute.h:50
void SetDefaultValue(Aws::String &&value)
Definition Attribute.h:53
void SetDefaultValue(const Aws::String &value)
Definition Attribute.h:52
Attribute & WithDefaultValue(const char *value)
Definition Attribute.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue