AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EbsInstanceBlockDeviceSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API EbsInstanceBlockDeviceSpecification() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
42 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
43 template <typename VolumeIdT = Aws::String>
44 void SetVolumeId(VolumeIdT&& value) {
45 m_volumeIdHasBeenSet = true;
46 m_volumeId = std::forward<VolumeIdT>(value);
47 }
48 template <typename VolumeIdT = Aws::String>
50 SetVolumeId(std::forward<VolumeIdT>(value));
51 return *this;
52 }
54
56
59 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
60 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
61 inline void SetDeleteOnTermination(bool value) {
62 m_deleteOnTerminationHasBeenSet = true;
63 m_deleteOnTermination = value;
64 }
67 return *this;
68 }
70 private:
71 Aws::String m_volumeId;
72
73 bool m_deleteOnTermination{false};
74 bool m_volumeIdHasBeenSet = false;
75 bool m_deleteOnTerminationHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
EbsInstanceBlockDeviceSpecification & WithDeleteOnTermination(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EbsInstanceBlockDeviceSpecification & WithVolumeId(VolumeIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API EbsInstanceBlockDeviceSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API EbsInstanceBlockDeviceSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream