AWS SDK for C++  0.14.3
AWS SDK for C++
ImportSnapshotTask.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  ImportSnapshotTask& 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& GetImportTaskId() const{ return m_importTaskId; }
52 
56  inline void SetImportTaskId(const Aws::String& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = value; }
57 
61  inline void SetImportTaskId(Aws::String&& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = value; }
62 
66  inline void SetImportTaskId(const char* value) { m_importTaskIdHasBeenSet = true; m_importTaskId.assign(value); }
67 
71  inline ImportSnapshotTask& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;}
72 
76  inline ImportSnapshotTask& WithImportTaskId(Aws::String&& value) { SetImportTaskId(value); return *this;}
77 
81  inline ImportSnapshotTask& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;}
82 
86  inline const SnapshotTaskDetail& GetSnapshotTaskDetail() const{ return m_snapshotTaskDetail; }
87 
91  inline void SetSnapshotTaskDetail(const SnapshotTaskDetail& value) { m_snapshotTaskDetailHasBeenSet = true; m_snapshotTaskDetail = value; }
92 
96  inline void SetSnapshotTaskDetail(SnapshotTaskDetail&& value) { m_snapshotTaskDetailHasBeenSet = true; m_snapshotTaskDetail = value; }
97 
101  inline ImportSnapshotTask& WithSnapshotTaskDetail(const SnapshotTaskDetail& value) { SetSnapshotTaskDetail(value); return *this;}
102 
106  inline ImportSnapshotTask& WithSnapshotTaskDetail(SnapshotTaskDetail&& value) { SetSnapshotTaskDetail(value); return *this;}
107 
111  inline const Aws::String& GetDescription() const{ return m_description; }
112 
116  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
117 
121  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
122 
126  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
127 
131  inline ImportSnapshotTask& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
132 
136  inline ImportSnapshotTask& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
137 
141  inline ImportSnapshotTask& WithDescription(const char* value) { SetDescription(value); return *this;}
142 
143  private:
144  Aws::String m_importTaskId;
145  bool m_importTaskIdHasBeenSet;
146  SnapshotTaskDetail m_snapshotTaskDetail;
147  bool m_snapshotTaskDetailHasBeenSet;
148  Aws::String m_description;
149  bool m_descriptionHasBeenSet;
150  };
151 
152 } // namespace Model
153 } // namespace EC2
154 } // namespace Aws
ImportSnapshotTask & WithImportTaskId(const char *value)
void SetDescription(const Aws::String &value)
ImportSnapshotTask & WithSnapshotTaskDetail(SnapshotTaskDetail &&value)
const Aws::String & GetDescription() const
ImportSnapshotTask & WithImportTaskId(Aws::String &&value)
const Aws::String & GetImportTaskId() const
const SnapshotTaskDetail & GetSnapshotTaskDetail() const
void SetImportTaskId(const char *value)
ImportSnapshotTask & WithImportTaskId(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetDescription(Aws::String &&value)
void SetSnapshotTaskDetail(const SnapshotTaskDetail &value)
void SetImportTaskId(const Aws::String &value)
void SetSnapshotTaskDetail(SnapshotTaskDetail &&value)
ImportSnapshotTask & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDescription(const char *value)
ImportSnapshotTask & WithSnapshotTaskDetail(const SnapshotTaskDetail &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
ImportSnapshotTask & WithDescription(Aws::String &&value)
ImportSnapshotTask & WithDescription(const char *value)
void SetImportTaskId(Aws::String &&value)
JSON (JavaScript Object Notation).