AWS SDK for C++  1.9.153
AWS SDK for C++
DetectorModelDefinition.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoTEvents
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::Vector<State>& GetStates() const{ return m_states; }
47 
51  inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
52 
56  inline void SetStates(const Aws::Vector<State>& value) { m_statesHasBeenSet = true; m_states = value; }
57 
61  inline void SetStates(Aws::Vector<State>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
62 
66  inline DetectorModelDefinition& WithStates(const Aws::Vector<State>& value) { SetStates(value); return *this;}
67 
71  inline DetectorModelDefinition& WithStates(Aws::Vector<State>&& value) { SetStates(std::move(value)); return *this;}
72 
76  inline DetectorModelDefinition& AddStates(const State& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
77 
81  inline DetectorModelDefinition& AddStates(State&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
82 
83 
87  inline const Aws::String& GetInitialStateName() const{ return m_initialStateName; }
88 
92  inline bool InitialStateNameHasBeenSet() const { return m_initialStateNameHasBeenSet; }
93 
97  inline void SetInitialStateName(const Aws::String& value) { m_initialStateNameHasBeenSet = true; m_initialStateName = value; }
98 
102  inline void SetInitialStateName(Aws::String&& value) { m_initialStateNameHasBeenSet = true; m_initialStateName = std::move(value); }
103 
107  inline void SetInitialStateName(const char* value) { m_initialStateNameHasBeenSet = true; m_initialStateName.assign(value); }
108 
112  inline DetectorModelDefinition& WithInitialStateName(const Aws::String& value) { SetInitialStateName(value); return *this;}
113 
117  inline DetectorModelDefinition& WithInitialStateName(Aws::String&& value) { SetInitialStateName(std::move(value)); return *this;}
118 
122  inline DetectorModelDefinition& WithInitialStateName(const char* value) { SetInitialStateName(value); return *this;}
123 
124  private:
125 
126  Aws::Vector<State> m_states;
127  bool m_statesHasBeenSet;
128 
129  Aws::String m_initialStateName;
130  bool m_initialStateNameHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace IoTEvents
135 } // namespace Aws
Aws::IoTEvents::Model::DetectorModelDefinition::WithStates
DetectorModelDefinition & WithStates(const Aws::Vector< State > &value)
Definition: DetectorModelDefinition.h:66
Aws::IoTEvents::Model::DetectorModelDefinition::WithInitialStateName
DetectorModelDefinition & WithInitialStateName(const char *value)
Definition: DetectorModelDefinition.h:122
Aws::IoTEvents::Model::DetectorModelDefinition::DetectorModelDefinition
DetectorModelDefinition()
Aws::IoTEvents::Model::DetectorModelDefinition::operator=
DetectorModelDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTEvents::Model::DetectorModelDefinition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTEvents::Model::DetectorModelDefinition::DetectorModelDefinition
DetectorModelDefinition(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTEvents::Model::DetectorModelDefinition::SetStates
void SetStates(Aws::Vector< State > &&value)
Definition: DetectorModelDefinition.h:61
Aws::IoTEvents::Model::State
Definition: State.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::IoTEvents::Model::DetectorModelDefinition::SetInitialStateName
void SetInitialStateName(const char *value)
Definition: DetectorModelDefinition.h:107
Aws::IoTEvents::Model::DetectorModelDefinition::AddStates
DetectorModelDefinition & AddStates(const State &value)
Definition: DetectorModelDefinition.h:76
Aws::IoTEvents::Model::DetectorModelDefinition::InitialStateNameHasBeenSet
bool InitialStateNameHasBeenSet() const
Definition: DetectorModelDefinition.h:92
Aws::IoTEvents::Model::DetectorModelDefinition
Definition: DetectorModelDefinition.h:35
Aws::IoTEvents::Model::DetectorModelDefinition::WithInitialStateName
DetectorModelDefinition & WithInitialStateName(const Aws::String &value)
Definition: DetectorModelDefinition.h:112
Aws::IoTEvents::Model::DetectorModelDefinition::AddStates
DetectorModelDefinition & AddStates(State &&value)
Definition: DetectorModelDefinition.h:81
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoTEvents::Model::DetectorModelDefinition::WithInitialStateName
DetectorModelDefinition & WithInitialStateName(Aws::String &&value)
Definition: DetectorModelDefinition.h:117
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTEvents::Model::DetectorModelDefinition::WithStates
DetectorModelDefinition & WithStates(Aws::Vector< State > &&value)
Definition: DetectorModelDefinition.h:71
State.h
Aws::IoTEvents::Model::DetectorModelDefinition::StatesHasBeenSet
bool StatesHasBeenSet() const
Definition: DetectorModelDefinition.h:51
Aws::IoTEvents::Model::DetectorModelDefinition::GetStates
const Aws::Vector< State > & GetStates() const
Definition: DetectorModelDefinition.h:46
Aws::IoTEvents::Model::DetectorModelDefinition::GetInitialStateName
const Aws::String & GetInitialStateName() const
Definition: DetectorModelDefinition.h:87
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
IoTEvents_EXPORTS.h
AWS_IOTEVENTS_API
#define AWS_IOTEVENTS_API
Definition: IoTEvents_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTEvents::Model::DetectorModelDefinition::SetInitialStateName
void SetInitialStateName(Aws::String &&value)
Definition: DetectorModelDefinition.h:102
Aws::IoTEvents::Model::DetectorModelDefinition::SetInitialStateName
void SetInitialStateName(const Aws::String &value)
Definition: DetectorModelDefinition.h:97
Aws::IoTEvents::Model::DetectorModelDefinition::SetStates
void SetStates(const Aws::Vector< State > &value)
Definition: DetectorModelDefinition.h:56