AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAmis(const Aws::Vector<Ami>& value) { m_amisHasBeenSet = true; m_amis = value; }
49 inline void SetAmis(Aws::Vector<Ami>&& value) { m_amisHasBeenSet = true; m_amis = std::move(value); }
50 inline OutputResources& WithAmis(const Aws::Vector<Ami>& value) { SetAmis(value); return *this;}
51 inline OutputResources& WithAmis(Aws::Vector<Ami>&& value) { SetAmis(std::move(value)); return *this;}
52 inline OutputResources& AddAmis(const Ami& value) { m_amisHasBeenSet = true; m_amis.push_back(value); return *this; }
53 inline OutputResources& AddAmis(Ami&& value) { m_amisHasBeenSet = true; m_amis.push_back(std::move(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 inline void SetContainers(const Aws::Vector<Container>& value) { m_containersHasBeenSet = true; m_containers = value; }
64 inline void SetContainers(Aws::Vector<Container>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
65 inline OutputResources& WithContainers(const Aws::Vector<Container>& value) { SetContainers(value); return *this;}
66 inline OutputResources& WithContainers(Aws::Vector<Container>&& value) { SetContainers(std::move(value)); return *this;}
67 inline OutputResources& AddContainers(const Container& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
68 inline OutputResources& AddContainers(Container&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(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
void SetAmis(Aws::Vector< Ami > &&value)
void SetAmis(const Aws::Vector< Ami > &value)
AWS_IMAGEBUILDER_API OutputResources(Aws::Utils::Json::JsonView jsonValue)
OutputResources & AddContainers(const Container &value)
OutputResources & WithContainers(const Aws::Vector< Container > &value)
AWS_IMAGEBUILDER_API OutputResources & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Container > & GetContainers() const
OutputResources & AddAmis(const Ami &value)
void SetContainers(Aws::Vector< Container > &&value)
OutputResources & WithAmis(Aws::Vector< Ami > &&value)
OutputResources & AddContainers(Container &&value)
void SetContainers(const Aws::Vector< Container > &value)
const Aws::Vector< Ami > & GetAmis() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
OutputResources & AddAmis(Ami &&value)
OutputResources & WithContainers(Aws::Vector< Container > &&value)
OutputResources & WithAmis(const Aws::Vector< Ami > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue