AWS SDK for C++  1.9.159
AWS SDK for C++
ExpressionVariable.h
Go to the documentation of this file.
1 
6 #pragma once
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 IoTSiteWise
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline ExpressionVariable& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline ExpressionVariable& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline ExpressionVariable& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const VariableValue& GetValue() const{ return m_value; }
86 
90  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
91 
95  inline void SetValue(const VariableValue& value) { m_valueHasBeenSet = true; m_value = value; }
96 
100  inline void SetValue(VariableValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
101 
105  inline ExpressionVariable& WithValue(const VariableValue& value) { SetValue(value); return *this;}
106 
110  inline ExpressionVariable& WithValue(VariableValue&& value) { SetValue(std::move(value)); return *this;}
111 
112  private:
113 
114  Aws::String m_name;
115  bool m_nameHasBeenSet;
116 
117  VariableValue m_value;
118  bool m_valueHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace IoTSiteWise
123 } // namespace Aws
Aws::IoTSiteWise::Model::ExpressionVariable::SetName
void SetName(Aws::String &&value)
Definition: ExpressionVariable.h:59
Aws::IoTSiteWise::Model::ExpressionVariable::GetName
const Aws::String & GetName() const
Definition: ExpressionVariable.h:44
Aws::IoTSiteWise::Model::ExpressionVariable::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ExpressionVariable.h:49
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::ExpressionVariable::ExpressionVariable
ExpressionVariable(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::ExpressionVariable::SetValue
void SetValue(const VariableValue &value)
Definition: ExpressionVariable.h:95
Aws::IoTSiteWise::Model::ExpressionVariable::WithName
ExpressionVariable & WithName(Aws::String &&value)
Definition: ExpressionVariable.h:74
Aws::IoTSiteWise::Model::ExpressionVariable::WithValue
ExpressionVariable & WithValue(VariableValue &&value)
Definition: ExpressionVariable.h:110
Aws::IoTSiteWise::Model::ExpressionVariable::ExpressionVariable
ExpressionVariable()
Aws::IoTSiteWise::Model::ExpressionVariable::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::ExpressionVariable::SetName
void SetName(const Aws::String &value)
Definition: ExpressionVariable.h:54
Aws::IoTSiteWise::Model::ExpressionVariable::WithName
ExpressionVariable & WithName(const Aws::String &value)
Definition: ExpressionVariable.h:69
Aws::IoTSiteWise::Model::ExpressionVariable::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: ExpressionVariable.h:90
Aws::IoTSiteWise::Model::ExpressionVariable::GetValue
const VariableValue & GetValue() const
Definition: ExpressionVariable.h:85
Aws::IoTSiteWise::Model::ExpressionVariable::SetValue
void SetValue(VariableValue &&value)
Definition: ExpressionVariable.h:100
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::ExpressionVariable::SetName
void SetName(const char *value)
Definition: ExpressionVariable.h:64
VariableValue.h
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::ExpressionVariable::WithValue
ExpressionVariable & WithValue(const VariableValue &value)
Definition: ExpressionVariable.h:105
Aws::IoTSiteWise::Model::ExpressionVariable::WithName
ExpressionVariable & WithName(const char *value)
Definition: ExpressionVariable.h:79
Aws::IoTSiteWise::Model::ExpressionVariable
Definition: ExpressionVariable.h:33
Aws::IoTSiteWise::Model::VariableValue
Definition: VariableValue.h:33
Aws::IoTSiteWise::Model::ExpressionVariable::operator=
ExpressionVariable & operator=(Aws::Utils::Json::JsonView jsonValue)