AWS SDK for C++  1.9.153
AWS SDK for C++
Attribute.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoTSiteWise
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
49  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
50 
58  inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
59 
67  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
68 
76  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
77 
85  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
86 
94  inline Attribute& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
95 
103  inline Attribute& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
104 
112  inline Attribute& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
113 
114  private:
115 
116  Aws::String m_defaultValue;
117  bool m_defaultValueHasBeenSet;
118  };
119 
120 } // namespace Model
121 } // namespace IoTSiteWise
122 } // namespace Aws
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::Attribute::WithDefaultValue
Attribute & WithDefaultValue(Aws::String &&value)
Definition: Attribute.h:103
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::Attribute::Attribute
Attribute()
Aws::IoTSiteWise::Model::Attribute::SetDefaultValue
void SetDefaultValue(const char *value)
Definition: Attribute.h:85
Aws::IoTSiteWise::Model::Attribute::WithDefaultValue
Attribute & WithDefaultValue(const Aws::String &value)
Definition: Attribute.h:94
Aws::IoTSiteWise::Model::Attribute::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::Attribute::WithDefaultValue
Attribute & WithDefaultValue(const char *value)
Definition: Attribute.h:112
Aws::IoTSiteWise::Model::Attribute
Definition: Attribute.h:34
Aws::IoTSiteWise::Model::Attribute::operator=
Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::Attribute::Attribute
Attribute(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::Attribute::DefaultValueHasBeenSet
bool DefaultValueHasBeenSet() const
Definition: Attribute.h:58
Aws::IoTSiteWise::Model::Attribute::GetDefaultValue
const Aws::String & GetDefaultValue() const
Definition: Attribute.h:49
Aws::IoTSiteWise::Model::Attribute::SetDefaultValue
void SetDefaultValue(Aws::String &&value)
Definition: Attribute.h:76
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::Attribute::SetDefaultValue
void SetDefaultValue(const Aws::String &value)
Definition: Attribute.h:67