AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
LiveSimulationState.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/simspaceweaver/SimSpaceWeaver_EXPORTS.h>
9#include <aws/simspaceweaver/model/Domain.h>
10#include <aws/simspaceweaver/model/SimulationClock.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SimSpaceWeaver {
22namespace Model {
23
31 public:
32 AWS_SIMSPACEWEAVER_API LiveSimulationState() = default;
33 AWS_SIMSPACEWEAVER_API LiveSimulationState(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SIMSPACEWEAVER_API LiveSimulationState& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SIMSPACEWEAVER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<SimulationClock>& GetClocks() const { return m_clocks; }
43 inline bool ClocksHasBeenSet() const { return m_clocksHasBeenSet; }
44 template <typename ClocksT = Aws::Vector<SimulationClock>>
45 void SetClocks(ClocksT&& value) {
46 m_clocksHasBeenSet = true;
47 m_clocks = std::forward<ClocksT>(value);
48 }
49 template <typename ClocksT = Aws::Vector<SimulationClock>>
50 LiveSimulationState& WithClocks(ClocksT&& value) {
51 SetClocks(std::forward<ClocksT>(value));
52 return *this;
53 }
54 template <typename ClocksT = SimulationClock>
55 LiveSimulationState& AddClocks(ClocksT&& value) {
56 m_clocksHasBeenSet = true;
57 m_clocks.emplace_back(std::forward<ClocksT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::Vector<Domain>& GetDomains() const { return m_domains; }
70 inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; }
71 template <typename DomainsT = Aws::Vector<Domain>>
72 void SetDomains(DomainsT&& value) {
73 m_domainsHasBeenSet = true;
74 m_domains = std::forward<DomainsT>(value);
75 }
76 template <typename DomainsT = Aws::Vector<Domain>>
77 LiveSimulationState& WithDomains(DomainsT&& value) {
78 SetDomains(std::forward<DomainsT>(value));
79 return *this;
80 }
81 template <typename DomainsT = Domain>
82 LiveSimulationState& AddDomains(DomainsT&& value) {
83 m_domainsHasBeenSet = true;
84 m_domains.emplace_back(std::forward<DomainsT>(value));
85 return *this;
86 }
88 private:
90
91 Aws::Vector<Domain> m_domains;
92 bool m_clocksHasBeenSet = false;
93 bool m_domainsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace SimSpaceWeaver
98} // namespace Aws
const Aws::Vector< Domain > & GetDomains() const
AWS_SIMSPACEWEAVER_API Aws::Utils::Json::JsonValue Jsonize() const
LiveSimulationState & WithDomains(DomainsT &&value)
LiveSimulationState & AddClocks(ClocksT &&value)
LiveSimulationState & WithClocks(ClocksT &&value)
AWS_SIMSPACEWEAVER_API LiveSimulationState & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SimulationClock > & GetClocks() const
AWS_SIMSPACEWEAVER_API LiveSimulationState()=default
LiveSimulationState & AddDomains(DomainsT &&value)
AWS_SIMSPACEWEAVER_API LiveSimulationState(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue