AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SnapshotDiskContainer.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/ec2/model/UserBucket.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:
36 AWS_EC2_API SnapshotDiskContainer();
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& GetDescription() const{ return m_description; }
49 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
50 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
51 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
52 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
53 inline SnapshotDiskContainer& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
54 inline SnapshotDiskContainer& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
55 inline SnapshotDiskContainer& WithDescription(const char* value) { SetDescription(value); return *this;}
57
59
63 inline const Aws::String& GetFormat() const{ return m_format; }
64 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
65 inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
66 inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
67 inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
68 inline SnapshotDiskContainer& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
69 inline SnapshotDiskContainer& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;}
70 inline SnapshotDiskContainer& WithFormat(const char* value) { SetFormat(value); return *this;}
72
74
78 inline const Aws::String& GetUrl() const{ return m_url; }
79 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
80 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
81 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
82 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
83 inline SnapshotDiskContainer& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
84 inline SnapshotDiskContainer& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
85 inline SnapshotDiskContainer& WithUrl(const char* value) { SetUrl(value); return *this;}
87
89
92 inline const UserBucket& GetUserBucket() const{ return m_userBucket; }
93 inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
94 inline void SetUserBucket(const UserBucket& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
95 inline void SetUserBucket(UserBucket&& value) { m_userBucketHasBeenSet = true; m_userBucket = std::move(value); }
96 inline SnapshotDiskContainer& WithUserBucket(const UserBucket& value) { SetUserBucket(value); return *this;}
97 inline SnapshotDiskContainer& WithUserBucket(UserBucket&& value) { SetUserBucket(std::move(value)); return *this;}
99 private:
100
101 Aws::String m_description;
102 bool m_descriptionHasBeenSet = false;
103
104 Aws::String m_format;
105 bool m_formatHasBeenSet = false;
106
107 Aws::String m_url;
108 bool m_urlHasBeenSet = false;
109
110 UserBucket m_userBucket;
111 bool m_userBucketHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace EC2
116} // namespace Aws
SnapshotDiskContainer & WithDescription(const char *value)
AWS_EC2_API SnapshotDiskContainer(const Aws::Utils::Xml::XmlNode &xmlNode)
SnapshotDiskContainer & WithUrl(const Aws::String &value)
SnapshotDiskContainer & WithFormat(const Aws::String &value)
SnapshotDiskContainer & WithFormat(Aws::String &&value)
void SetUserBucket(const UserBucket &value)
AWS_EC2_API SnapshotDiskContainer & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(const Aws::String &value)
SnapshotDiskContainer & WithFormat(const char *value)
SnapshotDiskContainer & WithUrl(const char *value)
SnapshotDiskContainer & WithUserBucket(UserBucket &&value)
SnapshotDiskContainer & WithDescription(const Aws::String &value)
void SetFormat(const Aws::String &value)
SnapshotDiskContainer & WithDescription(Aws::String &&value)
SnapshotDiskContainer & WithUserBucket(const UserBucket &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUrl(const Aws::String &value)
SnapshotDiskContainer & WithUrl(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream