AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ResourceDefinitionVersion.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/Resource.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 ResourceDefinitionVersion() = default;
38 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<Resource>& GetResources() const { return m_resources; }
46 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
47 template<typename ResourcesT = Aws::Vector<Resource>>
48 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
49 template<typename ResourcesT = Aws::Vector<Resource>>
50 ResourceDefinitionVersion& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
51 template<typename ResourcesT = Resource>
52 ResourceDefinitionVersion& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
54 private:
55
56 Aws::Vector<Resource> m_resources;
57 bool m_resourcesHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace Greengrass
62} // 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