AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
OutputResources.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9#include <aws/imagebuilder/model/Ami.h>
10#include <aws/imagebuilder/model/Container.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace imagebuilder {
22namespace Model {
23
30 public:
31 AWS_IMAGEBUILDER_API OutputResources() = default;
32 AWS_IMAGEBUILDER_API OutputResources(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IMAGEBUILDER_API OutputResources& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Vector<Ami>& GetAmis() const { return m_amis; }
43 inline bool AmisHasBeenSet() const { return m_amisHasBeenSet; }
44 template <typename AmisT = Aws::Vector<Ami>>
45 void SetAmis(AmisT&& value) {
46 m_amisHasBeenSet = true;
47 m_amis = std::forward<AmisT>(value);
48 }
49 template <typename AmisT = Aws::Vector<Ami>>
50 OutputResources& WithAmis(AmisT&& value) {
51 SetAmis(std::forward<AmisT>(value));
52 return *this;
53 }
54 template <typename AmisT = Ami>
55 OutputResources& AddAmis(AmisT&& value) {
56 m_amisHasBeenSet = true;
57 m_amis.emplace_back(std::forward<AmisT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<Container>& GetContainers() const { return m_containers; }
68 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
69 template <typename ContainersT = Aws::Vector<Container>>
70 void SetContainers(ContainersT&& value) {
71 m_containersHasBeenSet = true;
72 m_containers = std::forward<ContainersT>(value);
73 }
74 template <typename ContainersT = Aws::Vector<Container>>
75 OutputResources& WithContainers(ContainersT&& value) {
76 SetContainers(std::forward<ContainersT>(value));
77 return *this;
78 }
79 template <typename ContainersT = Container>
80 OutputResources& AddContainers(ContainersT&& value) {
81 m_containersHasBeenSet = true;
82 m_containers.emplace_back(std::forward<ContainersT>(value));
83 return *this;
84 }
86 private:
87 Aws::Vector<Ami> m_amis;
88
89 Aws::Vector<Container> m_containers;
90 bool m_amisHasBeenSet = false;
91 bool m_containersHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace imagebuilder
96} // namespace Aws
AWS_IMAGEBUILDER_API OutputResources(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API OutputResources & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Container > & GetContainers() const
AWS_IMAGEBUILDER_API OutputResources()=default
OutputResources & AddAmis(AmisT &&value)
const Aws::Vector< Ami > & GetAmis() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
OutputResources & WithContainers(ContainersT &&value)
OutputResources & WithAmis(AmisT &&value)
OutputResources & AddContainers(ContainersT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue