AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CoreDefinitionVersion.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/greengrass/model/Core.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Greengrass
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GREENGRASS_API CoreDefinitionVersion() = default;
38 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<Core>& GetCores() const { return m_cores; }
46 inline bool CoresHasBeenSet() const { return m_coresHasBeenSet; }
47 template<typename CoresT = Aws::Vector<Core>>
48 void SetCores(CoresT&& value) { m_coresHasBeenSet = true; m_cores = std::forward<CoresT>(value); }
49 template<typename CoresT = Aws::Vector<Core>>
50 CoreDefinitionVersion& WithCores(CoresT&& value) { SetCores(std::forward<CoresT>(value)); return *this;}
51 template<typename CoresT = Core>
52 CoreDefinitionVersion& AddCores(CoresT&& value) { m_coresHasBeenSet = true; m_cores.emplace_back(std::forward<CoresT>(value)); return *this; }
54 private:
55
56 Aws::Vector<Core> m_cores;
57 bool m_coresHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace Greengrass
62} // namespace Aws
AWS_GREENGRASS_API CoreDefinitionVersion()=default
AWS_GREENGRASS_API CoreDefinitionVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
CoreDefinitionVersion & AddCores(CoresT &&value)
const Aws::Vector< Core > & GetCores() const
AWS_GREENGRASS_API CoreDefinitionVersion(Aws::Utils::Json::JsonView jsonValue)
CoreDefinitionVersion & WithCores(CoresT &&value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue