AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceConfiguration.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/imagebuilder/model/InstanceBlockDeviceMapping.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
36 {
37 public:
38 AWS_IMAGEBUILDER_API InstanceConfiguration();
39 AWS_IMAGEBUILDER_API InstanceConfiguration(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetImage() const{ return m_image; }
51 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
52 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
53 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
54 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
55 inline InstanceConfiguration& WithImage(const Aws::String& value) { SetImage(value); return *this;}
56 inline InstanceConfiguration& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
57 inline InstanceConfiguration& WithImage(const char* value) { SetImage(value); return *this;}
59
61
65 inline const Aws::Vector<InstanceBlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
66 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
67 inline void SetBlockDeviceMappings(const Aws::Vector<InstanceBlockDeviceMapping>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
68 inline void SetBlockDeviceMappings(Aws::Vector<InstanceBlockDeviceMapping>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); }
71 inline InstanceConfiguration& AddBlockDeviceMappings(const InstanceBlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
72 inline InstanceConfiguration& AddBlockDeviceMappings(InstanceBlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; }
74 private:
75
76 Aws::String m_image;
77 bool m_imageHasBeenSet = false;
78
79 Aws::Vector<InstanceBlockDeviceMapping> m_blockDeviceMappings;
80 bool m_blockDeviceMappingsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace imagebuilder
85} // namespace Aws
AWS_IMAGEBUILDER_API InstanceConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API InstanceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
InstanceConfiguration & WithBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceConfiguration & WithBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
InstanceConfiguration & WithImage(const char *value)
InstanceConfiguration & AddBlockDeviceMappings(const InstanceBlockDeviceMapping &value)
InstanceConfiguration & WithImage(Aws::String &&value)
InstanceConfiguration & AddBlockDeviceMappings(InstanceBlockDeviceMapping &&value)
InstanceConfiguration & WithImage(const Aws::String &value)
const Aws::Vector< InstanceBlockDeviceMapping > & GetBlockDeviceMappings() const
void SetBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue