AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
DeviceDefinitionVersion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/greengrass/Greengrass_EXPORTS.h>
9#include <aws/greengrass/model/Device.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Greengrass {
21namespace Model {
22
29 public:
30 AWS_GREENGRASS_API DeviceDefinitionVersion() = default;
33 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Device>& GetDevices() const { return m_devices; }
40 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
41 template <typename DevicesT = Aws::Vector<Device>>
42 void SetDevices(DevicesT&& value) {
43 m_devicesHasBeenSet = true;
44 m_devices = std::forward<DevicesT>(value);
45 }
46 template <typename DevicesT = Aws::Vector<Device>>
48 SetDevices(std::forward<DevicesT>(value));
49 return *this;
50 }
51 template <typename DevicesT = Device>
53 m_devicesHasBeenSet = true;
54 m_devices.emplace_back(std::forward<DevicesT>(value));
55 return *this;
56 }
58 private:
59 Aws::Vector<Device> m_devices;
60 bool m_devicesHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace Greengrass
65} // 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