AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OutputResources.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/imagebuilder/model/Ami.h>
10#include <aws/imagebuilder/model/Container.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace imagebuilder
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IMAGEBUILDER_API OutputResources() = default;
37 AWS_IMAGEBUILDER_API OutputResources(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IMAGEBUILDER_API OutputResources& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Ami>& GetAmis() const { return m_amis; }
47 inline bool AmisHasBeenSet() const { return m_amisHasBeenSet; }
48 template<typename AmisT = Aws::Vector<Ami>>
49 void SetAmis(AmisT&& value) { m_amisHasBeenSet = true; m_amis = std::forward<AmisT>(value); }
50 template<typename AmisT = Aws::Vector<Ami>>
51 OutputResources& WithAmis(AmisT&& value) { SetAmis(std::forward<AmisT>(value)); return *this;}
52 template<typename AmisT = Ami>
53 OutputResources& AddAmis(AmisT&& value) { m_amisHasBeenSet = true; m_amis.emplace_back(std::forward<AmisT>(value)); return *this; }
55
57
61 inline const Aws::Vector<Container>& GetContainers() const { return m_containers; }
62 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
63 template<typename ContainersT = Aws::Vector<Container>>
64 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
65 template<typename ContainersT = Aws::Vector<Container>>
66 OutputResources& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
67 template<typename ContainersT = Container>
68 OutputResources& AddContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers.emplace_back(std::forward<ContainersT>(value)); return *this; }
70 private:
71
72 Aws::Vector<Ami> m_amis;
73 bool m_amisHasBeenSet = false;
74
75 Aws::Vector<Container> m_containers;
76 bool m_containersHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace imagebuilder
81} // 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