AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResources(const Aws::Vector<Resource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
48 inline void SetResources(Aws::Vector<Resource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
49 inline ResourceDefinitionVersion& WithResources(const Aws::Vector<Resource>& value) { SetResources(value); return *this;}
50 inline ResourceDefinitionVersion& WithResources(Aws::Vector<Resource>&& value) { SetResources(std::move(value)); return *this;}
51 inline ResourceDefinitionVersion& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
52 inline ResourceDefinitionVersion& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(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 & AddResources(Resource &&value)
AWS_GREENGRASS_API ResourceDefinitionVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceDefinitionVersion & AddResources(const Resource &value)
ResourceDefinitionVersion & WithResources(Aws::Vector< Resource > &&value)
const Aws::Vector< Resource > & GetResources() const
ResourceDefinitionVersion & WithResources(const Aws::Vector< Resource > &value)
void SetResources(const Aws::Vector< Resource > &value)
AWS_GREENGRASS_API ResourceDefinitionVersion(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue