AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SnapshotRecycleBinInfo.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
49 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
50 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
51 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
52 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
53 inline SnapshotRecycleBinInfo& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
54 inline SnapshotRecycleBinInfo& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
55 inline SnapshotRecycleBinInfo& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetRecycleBinEnterTime() const{ return m_recycleBinEnterTime; }
63 inline bool RecycleBinEnterTimeHasBeenSet() const { return m_recycleBinEnterTimeHasBeenSet; }
64 inline void SetRecycleBinEnterTime(const Aws::Utils::DateTime& value) { m_recycleBinEnterTimeHasBeenSet = true; m_recycleBinEnterTime = value; }
65 inline void SetRecycleBinEnterTime(Aws::Utils::DateTime&& value) { m_recycleBinEnterTimeHasBeenSet = true; m_recycleBinEnterTime = std::move(value); }
69
71
75 inline const Aws::Utils::DateTime& GetRecycleBinExitTime() const{ return m_recycleBinExitTime; }
76 inline bool RecycleBinExitTimeHasBeenSet() const { return m_recycleBinExitTimeHasBeenSet; }
77 inline void SetRecycleBinExitTime(const Aws::Utils::DateTime& value) { m_recycleBinExitTimeHasBeenSet = true; m_recycleBinExitTime = value; }
78 inline void SetRecycleBinExitTime(Aws::Utils::DateTime&& value) { m_recycleBinExitTimeHasBeenSet = true; m_recycleBinExitTime = std::move(value); }
82
84
87 inline const Aws::String& GetDescription() const{ return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
90 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
91 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
92 inline SnapshotRecycleBinInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
93 inline SnapshotRecycleBinInfo& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
94 inline SnapshotRecycleBinInfo& WithDescription(const char* value) { SetDescription(value); return *this;}
96
98
101 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
102 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
103 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
104 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
105 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
106 inline SnapshotRecycleBinInfo& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
107 inline SnapshotRecycleBinInfo& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
108 inline SnapshotRecycleBinInfo& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
110 private:
111
112 Aws::String m_snapshotId;
113 bool m_snapshotIdHasBeenSet = false;
114
115 Aws::Utils::DateTime m_recycleBinEnterTime;
116 bool m_recycleBinEnterTimeHasBeenSet = false;
117
118 Aws::Utils::DateTime m_recycleBinExitTime;
119 bool m_recycleBinExitTimeHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 Aws::String m_volumeId;
125 bool m_volumeIdHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace EC2
130} // namespace Aws
const Aws::Utils::DateTime & GetRecycleBinEnterTime() const
SnapshotRecycleBinInfo & WithSnapshotId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SnapshotRecycleBinInfo & WithDescription(const Aws::String &value)
SnapshotRecycleBinInfo & WithDescription(const char *value)
SnapshotRecycleBinInfo & WithRecycleBinEnterTime(Aws::Utils::DateTime &&value)
SnapshotRecycleBinInfo & WithSnapshotId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SnapshotRecycleBinInfo & WithRecycleBinExitTime(const Aws::Utils::DateTime &value)
void SetSnapshotId(const Aws::String &value)
AWS_EC2_API SnapshotRecycleBinInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(const Aws::String &value)
SnapshotRecycleBinInfo & WithVolumeId(Aws::String &&value)
SnapshotRecycleBinInfo & WithVolumeId(const Aws::String &value)
void SetRecycleBinEnterTime(Aws::Utils::DateTime &&value)
SnapshotRecycleBinInfo & WithDescription(Aws::String &&value)
AWS_EC2_API SnapshotRecycleBinInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRecycleBinEnterTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetRecycleBinExitTime() const
SnapshotRecycleBinInfo & WithRecycleBinExitTime(Aws::Utils::DateTime &&value)
SnapshotRecycleBinInfo & WithVolumeId(const char *value)
void SetRecycleBinExitTime(const Aws::Utils::DateTime &value)
SnapshotRecycleBinInfo & WithRecycleBinEnterTime(const Aws::Utils::DateTime &value)
void SetRecycleBinExitTime(Aws::Utils::DateTime &&value)
SnapshotRecycleBinInfo & WithSnapshotId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream