AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DeviceDefinitionVersion.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/Device.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 DeviceDefinitionVersion() = default;
38 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<Device>& GetDevices() const { return m_devices; }
46 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
47 template<typename DevicesT = Aws::Vector<Device>>
48 void SetDevices(DevicesT&& value) { m_devicesHasBeenSet = true; m_devices = std::forward<DevicesT>(value); }
49 template<typename DevicesT = Aws::Vector<Device>>
50 DeviceDefinitionVersion& WithDevices(DevicesT&& value) { SetDevices(std::forward<DevicesT>(value)); return *this;}
51 template<typename DevicesT = Device>
52 DeviceDefinitionVersion& AddDevices(DevicesT&& value) { m_devicesHasBeenSet = true; m_devices.emplace_back(std::forward<DevicesT>(value)); return *this; }
54 private:
55
56 Aws::Vector<Device> m_devices;
57 bool m_devicesHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace Greengrass
62} // namespace Aws
DeviceDefinitionVersion & WithDevices(DevicesT &&value)
DeviceDefinitionVersion & AddDevices(DevicesT &&value)
AWS_GREENGRASS_API DeviceDefinitionVersion()=default
AWS_GREENGRASS_API DeviceDefinitionVersion(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Device > & GetDevices() const
AWS_GREENGRASS_API DeviceDefinitionVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue