AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectorModelDefinition.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotevents/model/State.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTEvents
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IOTEVENTS_API DetectorModelDefinition();
40 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<State>& GetStates() const{ return m_states; }
48 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
49 inline void SetStates(const Aws::Vector<State>& value) { m_statesHasBeenSet = true; m_states = value; }
50 inline void SetStates(Aws::Vector<State>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
51 inline DetectorModelDefinition& WithStates(const Aws::Vector<State>& value) { SetStates(value); return *this;}
52 inline DetectorModelDefinition& WithStates(Aws::Vector<State>&& value) { SetStates(std::move(value)); return *this;}
53 inline DetectorModelDefinition& AddStates(const State& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
54 inline DetectorModelDefinition& AddStates(State&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
56
58
61 inline const Aws::String& GetInitialStateName() const{ return m_initialStateName; }
62 inline bool InitialStateNameHasBeenSet() const { return m_initialStateNameHasBeenSet; }
63 inline void SetInitialStateName(const Aws::String& value) { m_initialStateNameHasBeenSet = true; m_initialStateName = value; }
64 inline void SetInitialStateName(Aws::String&& value) { m_initialStateNameHasBeenSet = true; m_initialStateName = std::move(value); }
65 inline void SetInitialStateName(const char* value) { m_initialStateNameHasBeenSet = true; m_initialStateName.assign(value); }
66 inline DetectorModelDefinition& WithInitialStateName(const Aws::String& value) { SetInitialStateName(value); return *this;}
67 inline DetectorModelDefinition& WithInitialStateName(Aws::String&& value) { SetInitialStateName(std::move(value)); return *this;}
68 inline DetectorModelDefinition& WithInitialStateName(const char* value) { SetInitialStateName(value); return *this;}
70 private:
71
72 Aws::Vector<State> m_states;
73 bool m_statesHasBeenSet = false;
74
75 Aws::String m_initialStateName;
76 bool m_initialStateNameHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace IoTEvents
81} // namespace Aws
AWS_IOTEVENTS_API DetectorModelDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API DetectorModelDefinition(Aws::Utils::Json::JsonView jsonValue)
DetectorModelDefinition & AddStates(const State &value)
DetectorModelDefinition & WithStates(Aws::Vector< State > &&value)
DetectorModelDefinition & WithInitialStateName(Aws::String &&value)
const Aws::Vector< State > & GetStates() const
DetectorModelDefinition & WithInitialStateName(const Aws::String &value)
DetectorModelDefinition & WithInitialStateName(const char *value)
void SetStates(const Aws::Vector< State > &value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
DetectorModelDefinition & AddStates(State &&value)
DetectorModelDefinition & WithStates(const Aws::Vector< State > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue