AWS SDK for C++  0.12.9
AWS SDK for C++
ImportSnapshotRequest.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>
17 #include <aws/ec2/EC2Request.h>
21 
22 namespace Aws
23 {
24 namespace EC2
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
44  inline bool GetDryRun() const{ return m_dryRun; }
45 
52  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 
60  inline ImportSnapshotRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
61 
65  inline const Aws::String& GetDescription() const{ return m_description; }
66 
70  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
71 
75  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 
80  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
81 
85  inline ImportSnapshotRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
86 
90  inline ImportSnapshotRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
91 
95  inline ImportSnapshotRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
96 
100  inline const SnapshotDiskContainer& GetDiskContainer() const{ return m_diskContainer; }
101 
105  inline void SetDiskContainer(const SnapshotDiskContainer& value) { m_diskContainerHasBeenSet = true; m_diskContainer = value; }
106 
110  inline void SetDiskContainer(SnapshotDiskContainer&& value) { m_diskContainerHasBeenSet = true; m_diskContainer = value; }
111 
115  inline ImportSnapshotRequest& WithDiskContainer(const SnapshotDiskContainer& value) { SetDiskContainer(value); return *this;}
116 
120  inline ImportSnapshotRequest& WithDiskContainer(SnapshotDiskContainer&& value) { SetDiskContainer(value); return *this;}
121 
125  inline const ClientData& GetClientData() const{ return m_clientData; }
126 
130  inline void SetClientData(const ClientData& value) { m_clientDataHasBeenSet = true; m_clientData = value; }
131 
135  inline void SetClientData(ClientData&& value) { m_clientDataHasBeenSet = true; m_clientData = value; }
136 
140  inline ImportSnapshotRequest& WithClientData(const ClientData& value) { SetClientData(value); return *this;}
141 
145  inline ImportSnapshotRequest& WithClientData(ClientData&& value) { SetClientData(value); return *this;}
146 
150  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
151 
155  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
156 
160  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
161 
165  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
166 
170  inline ImportSnapshotRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
171 
175  inline ImportSnapshotRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
176 
180  inline ImportSnapshotRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
181 
185  inline const Aws::String& GetRoleName() const{ return m_roleName; }
186 
190  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
191 
195  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
196 
200  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
201 
205  inline ImportSnapshotRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
206 
210  inline ImportSnapshotRequest& WithRoleName(Aws::String&& value) { SetRoleName(value); return *this;}
211 
215  inline ImportSnapshotRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
216 
217  private:
218  bool m_dryRun;
219  bool m_dryRunHasBeenSet;
220  Aws::String m_description;
221  bool m_descriptionHasBeenSet;
222  SnapshotDiskContainer m_diskContainer;
223  bool m_diskContainerHasBeenSet;
224  ClientData m_clientData;
225  bool m_clientDataHasBeenSet;
226  Aws::String m_clientToken;
227  bool m_clientTokenHasBeenSet;
228  Aws::String m_roleName;
229  bool m_roleNameHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace EC2
234 } // namespace Aws
ImportSnapshotRequest & WithRoleName(const Aws::String &value)
ImportSnapshotRequest & WithClientData(const ClientData &value)
ImportSnapshotRequest & WithDescription(const char *value)
ImportSnapshotRequest & WithDescription(Aws::String &&value)
const Aws::String & GetDescription() const
ImportSnapshotRequest & WithDiskContainer(const SnapshotDiskContainer &value)
ImportSnapshotRequest & WithDescription(const Aws::String &value)
ImportSnapshotRequest & WithDiskContainer(SnapshotDiskContainer &&value)
ImportSnapshotRequest & WithDryRun(bool value)
ImportSnapshotRequest & WithClientToken(const char *value)
ImportSnapshotRequest & WithClientData(ClientData &&value)
void SetClientToken(const Aws::String &value)
ImportSnapshotRequest & WithClientToken(Aws::String &&value)
ImportSnapshotRequest & WithRoleName(const char *value)
const Aws::String & GetClientToken() const
ImportSnapshotRequest & WithClientToken(const Aws::String &value)
void SetDiskContainer(const SnapshotDiskContainer &value)
void SetClientData(const ClientData &value)
ImportSnapshotRequest & WithRoleName(Aws::String &&value)
const SnapshotDiskContainer & GetDiskContainer() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDiskContainer(SnapshotDiskContainer &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
const Aws::String & GetRoleName() const
void SetRoleName(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetDescription(const Aws::String &value)