AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
40 inline const Aws::Vector<Ami>& GetAmis() const { return m_amis; }
41 inline bool AmisHasBeenSet() const { return m_amisHasBeenSet; }
42 template <typename AmisT = Aws::Vector<Ami>>
43 void SetAmis(AmisT&& value) {
44 m_amisHasBeenSet = true;
45 m_amis = std::forward<AmisT>(value);
46 }
47 template <typename AmisT = Aws::Vector<Ami>>
48 OutputResources& WithAmis(AmisT&& value) {
49 SetAmis(std::forward<AmisT>(value));
50 return *this;
51 }
52 template <typename AmisT = Ami>
53 OutputResources& AddAmis(AmisT&& value) {
54 m_amisHasBeenSet = true;
55 m_amis.emplace_back(std::forward<AmisT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Vector<Container>& GetContainers() const { return m_containers; }
66 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
67 template <typename ContainersT = Aws::Vector<Container>>
68 void SetContainers(ContainersT&& value) {
69 m_containersHasBeenSet = true;
70 m_containers = std::forward<ContainersT>(value);
71 }
72 template <typename ContainersT = Aws::Vector<Container>>
73 OutputResources& WithContainers(ContainersT&& value) {
74 SetContainers(std::forward<ContainersT>(value));
75 return *this;
76 }
77 template <typename ContainersT = Container>
78 OutputResources& AddContainers(ContainersT&& value) {
79 m_containersHasBeenSet = true;
80 m_containers.emplace_back(std::forward<ContainersT>(value));
81 return *this;
82 }
84 private:
85 Aws::Vector<Ami> m_amis;
86
87 Aws::Vector<Container> m_containers;
88 bool m_amisHasBeenSet = false;
89 bool m_containersHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace imagebuilder
94} // 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