AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCores(const Aws::Vector<Core>& value) { m_coresHasBeenSet = true; m_cores = value; }
48 inline void SetCores(Aws::Vector<Core>&& value) { m_coresHasBeenSet = true; m_cores = std::move(value); }
49 inline CoreDefinitionVersion& WithCores(const Aws::Vector<Core>& value) { SetCores(value); return *this;}
50 inline CoreDefinitionVersion& WithCores(Aws::Vector<Core>&& value) { SetCores(std::move(value)); return *this;}
51 inline CoreDefinitionVersion& AddCores(const Core& value) { m_coresHasBeenSet = true; m_cores.push_back(value); return *this; }
52 inline CoreDefinitionVersion& AddCores(Core&& value) { m_coresHasBeenSet = true; m_cores.push_back(std::move(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
void SetCores(const Aws::Vector< Core > &value)
AWS_GREENGRASS_API CoreDefinitionVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Core > & GetCores() const
AWS_GREENGRASS_API CoreDefinitionVersion(Aws::Utils::Json::JsonView jsonValue)
CoreDefinitionVersion & WithCores(const Aws::Vector< Core > &value)
CoreDefinitionVersion & AddCores(const Core &value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
CoreDefinitionVersion & AddCores(Core &&value)
CoreDefinitionVersion & WithCores(Aws::Vector< Core > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue