AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DescriptionT = Aws::String>
51 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
52 template<typename DescriptionT = Aws::String>
53 SnapshotDiskContainer& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
55
57
61 inline const Aws::String& GetFormat() const { return m_format; }
62 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
63 template<typename FormatT = Aws::String>
64 void SetFormat(FormatT&& value) { m_formatHasBeenSet = true; m_format = std::forward<FormatT>(value); }
65 template<typename FormatT = Aws::String>
66 SnapshotDiskContainer& WithFormat(FormatT&& value) { SetFormat(std::forward<FormatT>(value)); return *this;}
68
70
74 inline const Aws::String& GetUrl() const { return m_url; }
75 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
76 template<typename UrlT = Aws::String>
77 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
78 template<typename UrlT = Aws::String>
79 SnapshotDiskContainer& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
81
83
86 inline const UserBucket& GetUserBucket() const { return m_userBucket; }
87 inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
88 template<typename UserBucketT = UserBucket>
89 void SetUserBucket(UserBucketT&& value) { m_userBucketHasBeenSet = true; m_userBucket = std::forward<UserBucketT>(value); }
90 template<typename UserBucketT = UserBucket>
91 SnapshotDiskContainer& WithUserBucket(UserBucketT&& value) { SetUserBucket(std::forward<UserBucketT>(value)); return *this;}
93 private:
94
95 Aws::String m_description;
96 bool m_descriptionHasBeenSet = false;
97
98 Aws::String m_format;
99 bool m_formatHasBeenSet = false;
100
101 Aws::String m_url;
102 bool m_urlHasBeenSet = false;
103
104 UserBucket m_userBucket;
105 bool m_userBucketHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace EC2
110} // namespace Aws
AWS_EC2_API SnapshotDiskContainer(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API SnapshotDiskContainer & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SnapshotDiskContainer & WithFormat(FormatT &&value)
AWS_EC2_API SnapshotDiskContainer()=default
SnapshotDiskContainer & WithUrl(UrlT &&value)
SnapshotDiskContainer & WithUserBucket(UserBucketT &&value)
SnapshotDiskContainer & WithDescription(DescriptionT &&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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream