AWS SDK for C++  0.12.9
AWS SDK for C++
SnapshotDiskContainer.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace EC2
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  SnapshotDiskContainer& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetDescription() const{ return m_description; }
52 
56  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
57 
61  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 
66  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 
71  inline SnapshotDiskContainer& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 
76  inline SnapshotDiskContainer& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
77 
81  inline SnapshotDiskContainer& WithDescription(const char* value) { SetDescription(value); return *this;}
82 
87  inline const Aws::String& GetFormat() const{ return m_format; }
88 
93  inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
94 
99  inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = value; }
100 
105  inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
106 
111  inline SnapshotDiskContainer& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
112 
117  inline SnapshotDiskContainer& WithFormat(Aws::String&& value) { SetFormat(value); return *this;}
118 
123  inline SnapshotDiskContainer& WithFormat(const char* value) { SetFormat(value); return *this;}
124 
129  inline const Aws::String& GetUrl() const{ return m_url; }
130 
135  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
136 
141  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = value; }
142 
147  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
148 
153  inline SnapshotDiskContainer& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
154 
159  inline SnapshotDiskContainer& WithUrl(Aws::String&& value) { SetUrl(value); return *this;}
160 
165  inline SnapshotDiskContainer& WithUrl(const char* value) { SetUrl(value); return *this;}
166 
170  inline const UserBucket& GetUserBucket() const{ return m_userBucket; }
171 
175  inline void SetUserBucket(const UserBucket& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
176 
180  inline void SetUserBucket(UserBucket&& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
181 
185  inline SnapshotDiskContainer& WithUserBucket(const UserBucket& value) { SetUserBucket(value); return *this;}
186 
190  inline SnapshotDiskContainer& WithUserBucket(UserBucket&& value) { SetUserBucket(value); return *this;}
191 
192  private:
193  Aws::String m_description;
194  bool m_descriptionHasBeenSet;
195  Aws::String m_format;
196  bool m_formatHasBeenSet;
197  Aws::String m_url;
198  bool m_urlHasBeenSet;
199  UserBucket m_userBucket;
200  bool m_userBucketHasBeenSet;
201  };
202 
203 } // namespace Model
204 } // namespace EC2
205 } // namespace Aws
SnapshotDiskContainer & WithUserBucket(UserBucket &&value)
SnapshotDiskContainer & WithFormat(const Aws::String &value)
SnapshotDiskContainer & WithDescription(const Aws::String &value)
SnapshotDiskContainer & WithUrl(Aws::String &&value)
SnapshotDiskContainer & WithUserBucket(const UserBucket &value)
void SetUrl(const Aws::String &value)
void SetUserBucket(const UserBucket &value)
void SetFormat(const Aws::String &value)
SnapshotDiskContainer & WithUrl(const Aws::String &value)
SnapshotDiskContainer & WithDescription(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
SnapshotDiskContainer & WithFormat(const char *value)
SnapshotDiskContainer & WithUrl(const char *value)
const Aws::String & GetFormat() const
SnapshotDiskContainer & WithFormat(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetDescription() const
void SetDescription(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).
SnapshotDiskContainer & WithDescription(const char *value)