AWS SDK for C++  1.9.65
AWS SDK for C++
SnapshotDiskContainer.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetDescription() const{ return m_description; }
48 
52  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
53 
57  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
58 
62  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 
67  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 
72  inline SnapshotDiskContainer& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
73 
77  inline SnapshotDiskContainer& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 
82  inline SnapshotDiskContainer& WithDescription(const char* value) { SetDescription(value); return *this;}
83 
84 
89  inline const Aws::String& GetFormat() const{ return m_format; }
90 
95  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
96 
101  inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
102 
107  inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
108 
113  inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
114 
119  inline SnapshotDiskContainer& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
120 
125  inline SnapshotDiskContainer& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;}
126 
131  inline SnapshotDiskContainer& WithFormat(const char* value) { SetFormat(value); return *this;}
132 
133 
138  inline const Aws::String& GetUrl() const{ return m_url; }
139 
144  inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
145 
150  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
151 
156  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
157 
162  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
163 
168  inline SnapshotDiskContainer& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
169 
174  inline SnapshotDiskContainer& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
175 
180  inline SnapshotDiskContainer& WithUrl(const char* value) { SetUrl(value); return *this;}
181 
182 
186  inline const UserBucket& GetUserBucket() const{ return m_userBucket; }
187 
191  inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
192 
196  inline void SetUserBucket(const UserBucket& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
197 
201  inline void SetUserBucket(UserBucket&& value) { m_userBucketHasBeenSet = true; m_userBucket = std::move(value); }
202 
206  inline SnapshotDiskContainer& WithUserBucket(const UserBucket& value) { SetUserBucket(value); return *this;}
207 
211  inline SnapshotDiskContainer& WithUserBucket(UserBucket&& value) { SetUserBucket(std::move(value)); return *this;}
212 
213  private:
214 
215  Aws::String m_description;
216  bool m_descriptionHasBeenSet;
217 
218  Aws::String m_format;
219  bool m_formatHasBeenSet;
220 
221  Aws::String m_url;
222  bool m_urlHasBeenSet;
223 
224  UserBucket m_userBucket;
225  bool m_userBucketHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace EC2
230 } // namespace Aws
Aws::EC2::Model::SnapshotDiskContainer::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: SnapshotDiskContainer.h:95
Aws::EC2::Model::SnapshotDiskContainer::WithUrl
SnapshotDiskContainer & WithUrl(Aws::String &&value)
Definition: SnapshotDiskContainer.h:174
Aws::EC2::Model::SnapshotDiskContainer::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: SnapshotDiskContainer.h:52
Aws::EC2::Model::SnapshotDiskContainer::GetUrl
const Aws::String & GetUrl() const
Definition: SnapshotDiskContainer.h:138
UserBucket.h
Aws::EC2::Model::SnapshotDiskContainer::GetUserBucket
const UserBucket & GetUserBucket() const
Definition: SnapshotDiskContainer.h:186
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SnapshotDiskContainer::WithDescription
SnapshotDiskContainer & WithDescription(Aws::String &&value)
Definition: SnapshotDiskContainer.h:77
Aws::EC2::Model::SnapshotDiskContainer::WithUserBucket
SnapshotDiskContainer & WithUserBucket(UserBucket &&value)
Definition: SnapshotDiskContainer.h:211
AWSStreamFwd.h
Aws::EC2::Model::SnapshotDiskContainer::SetFormat
void SetFormat(const Aws::String &value)
Definition: SnapshotDiskContainer.h:101
Aws::EC2::Model::SnapshotDiskContainer::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SnapshotDiskContainer::WithFormat
SnapshotDiskContainer & WithFormat(const char *value)
Definition: SnapshotDiskContainer.h:131
Aws::EC2::Model::SnapshotDiskContainer::UrlHasBeenSet
bool UrlHasBeenSet() const
Definition: SnapshotDiskContainer.h:144
Aws::EC2::Model::SnapshotDiskContainer::SetUserBucket
void SetUserBucket(UserBucket &&value)
Definition: SnapshotDiskContainer.h:201
Aws::EC2::Model::SnapshotDiskContainer::SetDescription
void SetDescription(const Aws::String &value)
Definition: SnapshotDiskContainer.h:57
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::UserBucket
Definition: UserBucket.h:32
Aws::EC2::Model::SnapshotDiskContainer::GetDescription
const Aws::String & GetDescription() const
Definition: SnapshotDiskContainer.h:47
Aws::EC2::Model::SnapshotDiskContainer::WithUrl
SnapshotDiskContainer & WithUrl(const Aws::String &value)
Definition: SnapshotDiskContainer.h:168
Aws::EC2::Model::SnapshotDiskContainer::SetUrl
void SetUrl(Aws::String &&value)
Definition: SnapshotDiskContainer.h:156
Aws::EC2::Model::SnapshotDiskContainer::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSString.h
Aws::EC2::Model::SnapshotDiskContainer::SetUrl
void SetUrl(const char *value)
Definition: SnapshotDiskContainer.h:162
Aws::EC2::Model::SnapshotDiskContainer::SetUrl
void SetUrl(const Aws::String &value)
Definition: SnapshotDiskContainer.h:150
Aws::EC2::Model::SnapshotDiskContainer::operator=
SnapshotDiskContainer & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SnapshotDiskContainer::SetUserBucket
void SetUserBucket(const UserBucket &value)
Definition: SnapshotDiskContainer.h:196
Aws::EC2::Model::SnapshotDiskContainer::SetDescription
void SetDescription(Aws::String &&value)
Definition: SnapshotDiskContainer.h:62
Aws::EC2::Model::SnapshotDiskContainer::SnapshotDiskContainer
SnapshotDiskContainer(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SnapshotDiskContainer::SetFormat
void SetFormat(const char *value)
Definition: SnapshotDiskContainer.h:113
Aws::EC2::Model::SnapshotDiskContainer::GetFormat
const Aws::String & GetFormat() const
Definition: SnapshotDiskContainer.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SnapshotDiskContainer::UserBucketHasBeenSet
bool UserBucketHasBeenSet() const
Definition: SnapshotDiskContainer.h:191
Aws::EC2::Model::SnapshotDiskContainer::SetFormat
void SetFormat(Aws::String &&value)
Definition: SnapshotDiskContainer.h:107
Aws::EC2::Model::SnapshotDiskContainer::WithFormat
SnapshotDiskContainer & WithFormat(Aws::String &&value)
Definition: SnapshotDiskContainer.h:125
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SnapshotDiskContainer::SnapshotDiskContainer
SnapshotDiskContainer()
Aws::EC2::Model::SnapshotDiskContainer::WithUserBucket
SnapshotDiskContainer & WithUserBucket(const UserBucket &value)
Definition: SnapshotDiskContainer.h:206
EC2_EXPORTS.h
Aws::EC2::Model::SnapshotDiskContainer::WithFormat
SnapshotDiskContainer & WithFormat(const Aws::String &value)
Definition: SnapshotDiskContainer.h:119
Aws::EC2::Model::SnapshotDiskContainer::WithDescription
SnapshotDiskContainer & WithDescription(const Aws::String &value)
Definition: SnapshotDiskContainer.h:72
Aws::EC2::Model::SnapshotDiskContainer::SetDescription
void SetDescription(const char *value)
Definition: SnapshotDiskContainer.h:67
Aws::EC2::Model::SnapshotDiskContainer
Definition: SnapshotDiskContainer.h:34
Aws::EC2::Model::SnapshotDiskContainer::WithUrl
SnapshotDiskContainer & WithUrl(const char *value)
Definition: SnapshotDiskContainer.h:180
Aws::EC2::Model::SnapshotDiskContainer::WithDescription
SnapshotDiskContainer & WithDescription(const char *value)
Definition: SnapshotDiskContainer.h:82