AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SnapshotDiskContainer.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#include <aws/ec2/model/UserBucket.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API SnapshotDiskContainer() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetDescription() const { return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 template <typename DescriptionT = Aws::String>
45 void SetDescription(DescriptionT&& value) {
46 m_descriptionHasBeenSet = true;
47 m_description = std::forward<DescriptionT>(value);
48 }
49 template <typename DescriptionT = Aws::String>
50 SnapshotDiskContainer& WithDescription(DescriptionT&& value) {
51 SetDescription(std::forward<DescriptionT>(value));
52 return *this;
53 }
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) {
65 m_formatHasBeenSet = true;
66 m_format = std::forward<FormatT>(value);
67 }
68 template <typename FormatT = Aws::String>
70 SetFormat(std::forward<FormatT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetUrl() const { return m_url; }
81 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
82 template <typename UrlT = Aws::String>
83 void SetUrl(UrlT&& value) {
84 m_urlHasBeenSet = true;
85 m_url = std::forward<UrlT>(value);
86 }
87 template <typename UrlT = Aws::String>
89 SetUrl(std::forward<UrlT>(value));
90 return *this;
91 }
93
95
98 inline const UserBucket& GetUserBucket() const { return m_userBucket; }
99 inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
100 template <typename UserBucketT = UserBucket>
101 void SetUserBucket(UserBucketT&& value) {
102 m_userBucketHasBeenSet = true;
103 m_userBucket = std::forward<UserBucketT>(value);
104 }
105 template <typename UserBucketT = UserBucket>
106 SnapshotDiskContainer& WithUserBucket(UserBucketT&& value) {
107 SetUserBucket(std::forward<UserBucketT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_description;
113
114 Aws::String m_format;
115
116 Aws::String m_url;
117
118 UserBucket m_userBucket;
119 bool m_descriptionHasBeenSet = false;
120 bool m_formatHasBeenSet = false;
121 bool m_urlHasBeenSet = false;
122 bool m_userBucketHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace EC2
127} // 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