AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ResourceDefinitionVersion.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/Resource.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 ResourceDefinitionVersion() = default;
33 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Resource>& GetResources() const { return m_resources; }
40 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
41 template <typename ResourcesT = Aws::Vector<Resource>>
42 void SetResources(ResourcesT&& value) {
43 m_resourcesHasBeenSet = true;
44 m_resources = std::forward<ResourcesT>(value);
45 }
46 template <typename ResourcesT = Aws::Vector<Resource>>
48 SetResources(std::forward<ResourcesT>(value));
49 return *this;
50 }
51 template <typename ResourcesT = Resource>
53 m_resourcesHasBeenSet = true;
54 m_resources.emplace_back(std::forward<ResourcesT>(value));
55 return *this;
56 }
58 private:
59 Aws::Vector<Resource> m_resources;
60 bool m_resourcesHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace Greengrass
65} // namespace Aws
ResourceDefinitionVersion & WithResources(ResourcesT &&value)
AWS_GREENGRASS_API ResourceDefinitionVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASS_API ResourceDefinitionVersion()=default
const Aws::Vector< Resource > & GetResources() const
ResourceDefinitionVersion & AddResources(ResourcesT &&value)
AWS_GREENGRASS_API ResourceDefinitionVersion(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue