AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Volume.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/model/HostVolumeProperties.h>
10#include <aws/ecs/model/DockerVolumeConfiguration.h>
11#include <aws/ecs/model/EFSVolumeConfiguration.h>
12#include <aws/ecs/model/FSxWindowsFileServerVolumeConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ECS
26{
27namespace Model
28{
29
45 class Volume
46 {
47 public:
48 AWS_ECS_API Volume();
49 AWS_ECS_API Volume(Aws::Utils::Json::JsonView jsonValue);
52
53
55
66 inline const Aws::String& GetName() const{ return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
69 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
70 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71 inline Volume& WithName(const Aws::String& value) { SetName(value); return *this;}
72 inline Volume& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 inline Volume& WithName(const char* value) { SetName(value); return *this;}
75
77
90 inline const HostVolumeProperties& GetHost() const{ return m_host; }
91 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
92 inline void SetHost(const HostVolumeProperties& value) { m_hostHasBeenSet = true; m_host = value; }
93 inline void SetHost(HostVolumeProperties&& value) { m_hostHasBeenSet = true; m_host = std::move(value); }
94 inline Volume& WithHost(const HostVolumeProperties& value) { SetHost(value); return *this;}
95 inline Volume& WithHost(HostVolumeProperties&& value) { SetHost(std::move(value)); return *this;}
97
99
105 inline const DockerVolumeConfiguration& GetDockerVolumeConfiguration() const{ return m_dockerVolumeConfiguration; }
106 inline bool DockerVolumeConfigurationHasBeenSet() const { return m_dockerVolumeConfigurationHasBeenSet; }
107 inline void SetDockerVolumeConfiguration(const DockerVolumeConfiguration& value) { m_dockerVolumeConfigurationHasBeenSet = true; m_dockerVolumeConfiguration = value; }
108 inline void SetDockerVolumeConfiguration(DockerVolumeConfiguration&& value) { m_dockerVolumeConfigurationHasBeenSet = true; m_dockerVolumeConfiguration = std::move(value); }
112
114
118 inline const EFSVolumeConfiguration& GetEfsVolumeConfiguration() const{ return m_efsVolumeConfiguration; }
119 inline bool EfsVolumeConfigurationHasBeenSet() const { return m_efsVolumeConfigurationHasBeenSet; }
120 inline void SetEfsVolumeConfiguration(const EFSVolumeConfiguration& value) { m_efsVolumeConfigurationHasBeenSet = true; m_efsVolumeConfiguration = value; }
121 inline void SetEfsVolumeConfiguration(EFSVolumeConfiguration&& value) { m_efsVolumeConfigurationHasBeenSet = true; m_efsVolumeConfiguration = std::move(value); }
123 inline Volume& WithEfsVolumeConfiguration(EFSVolumeConfiguration&& value) { SetEfsVolumeConfiguration(std::move(value)); return *this;}
125
127
131 inline const FSxWindowsFileServerVolumeConfiguration& GetFsxWindowsFileServerVolumeConfiguration() const{ return m_fsxWindowsFileServerVolumeConfiguration; }
132 inline bool FsxWindowsFileServerVolumeConfigurationHasBeenSet() const { return m_fsxWindowsFileServerVolumeConfigurationHasBeenSet; }
133 inline void SetFsxWindowsFileServerVolumeConfiguration(const FSxWindowsFileServerVolumeConfiguration& value) { m_fsxWindowsFileServerVolumeConfigurationHasBeenSet = true; m_fsxWindowsFileServerVolumeConfiguration = value; }
134 inline void SetFsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration&& value) { m_fsxWindowsFileServerVolumeConfigurationHasBeenSet = true; m_fsxWindowsFileServerVolumeConfiguration = std::move(value); }
138
140
150 inline bool GetConfiguredAtLaunch() const{ return m_configuredAtLaunch; }
151 inline bool ConfiguredAtLaunchHasBeenSet() const { return m_configuredAtLaunchHasBeenSet; }
152 inline void SetConfiguredAtLaunch(bool value) { m_configuredAtLaunchHasBeenSet = true; m_configuredAtLaunch = value; }
153 inline Volume& WithConfiguredAtLaunch(bool value) { SetConfiguredAtLaunch(value); return *this;}
155 private:
156
157 Aws::String m_name;
158 bool m_nameHasBeenSet = false;
159
161 bool m_hostHasBeenSet = false;
162
163 DockerVolumeConfiguration m_dockerVolumeConfiguration;
164 bool m_dockerVolumeConfigurationHasBeenSet = false;
165
166 EFSVolumeConfiguration m_efsVolumeConfiguration;
167 bool m_efsVolumeConfigurationHasBeenSet = false;
168
169 FSxWindowsFileServerVolumeConfiguration m_fsxWindowsFileServerVolumeConfiguration;
170 bool m_fsxWindowsFileServerVolumeConfigurationHasBeenSet = false;
171
172 bool m_configuredAtLaunch;
173 bool m_configuredAtLaunchHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace ECS
178} // namespace Aws
void SetConfiguredAtLaunch(bool value)
Definition Volume.h:152
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
bool EfsVolumeConfigurationHasBeenSet() const
Definition Volume.h:119
void SetDockerVolumeConfiguration(DockerVolumeConfiguration &&value)
Definition Volume.h:108
void SetDockerVolumeConfiguration(const DockerVolumeConfiguration &value)
Definition Volume.h:107
bool GetConfiguredAtLaunch() const
Definition Volume.h:150
const Aws::String & GetName() const
Definition Volume.h:66
void SetHost(HostVolumeProperties &&value)
Definition Volume.h:93
const FSxWindowsFileServerVolumeConfiguration & GetFsxWindowsFileServerVolumeConfiguration() const
Definition Volume.h:131
void SetHost(const HostVolumeProperties &value)
Definition Volume.h:92
void SetEfsVolumeConfiguration(const EFSVolumeConfiguration &value)
Definition Volume.h:120
bool DockerVolumeConfigurationHasBeenSet() const
Definition Volume.h:106
Volume & WithDockerVolumeConfiguration(DockerVolumeConfiguration &&value)
Definition Volume.h:110
Volume & WithFsxWindowsFileServerVolumeConfiguration(const FSxWindowsFileServerVolumeConfiguration &value)
Definition Volume.h:135
const DockerVolumeConfiguration & GetDockerVolumeConfiguration() const
Definition Volume.h:105
bool HostHasBeenSet() const
Definition Volume.h:91
void SetName(const char *value)
Definition Volume.h:70
Volume & WithEfsVolumeConfiguration(EFSVolumeConfiguration &&value)
Definition Volume.h:123
bool FsxWindowsFileServerVolumeConfigurationHasBeenSet() const
Definition Volume.h:132
Volume & WithName(Aws::String &&value)
Definition Volume.h:72
Volume & WithConfiguredAtLaunch(bool value)
Definition Volume.h:153
Volume & WithName(const char *value)
Definition Volume.h:73
void SetName(Aws::String &&value)
Definition Volume.h:69
Volume & WithEfsVolumeConfiguration(const EFSVolumeConfiguration &value)
Definition Volume.h:122
AWS_ECS_API Volume & operator=(Aws::Utils::Json::JsonView jsonValue)
Volume & WithHost(const HostVolumeProperties &value)
Definition Volume.h:94
void SetFsxWindowsFileServerVolumeConfiguration(const FSxWindowsFileServerVolumeConfiguration &value)
Definition Volume.h:133
Volume & WithHost(HostVolumeProperties &&value)
Definition Volume.h:95
Volume & WithName(const Aws::String &value)
Definition Volume.h:71
AWS_ECS_API Volume(Aws::Utils::Json::JsonView jsonValue)
const HostVolumeProperties & GetHost() const
Definition Volume.h:90
const EFSVolumeConfiguration & GetEfsVolumeConfiguration() const
Definition Volume.h:118
Volume & WithFsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration &&value)
Definition Volume.h:136
bool NameHasBeenSet() const
Definition Volume.h:67
Volume & WithDockerVolumeConfiguration(const DockerVolumeConfiguration &value)
Definition Volume.h:109
bool ConfiguredAtLaunchHasBeenSet() const
Definition Volume.h:151
void SetEfsVolumeConfiguration(EFSVolumeConfiguration &&value)
Definition Volume.h:121
void SetName(const Aws::String &value)
Definition Volume.h:68
void SetFsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration &&value)
Definition Volume.h:134
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue