AWS SDK for C++  0.12.9
AWS SDK for C++
BundleInstanceRequest.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>
19 #include <aws/ec2/model/Storage.h>
20 
21 namespace Aws
22 {
23 namespace EC2
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
43  inline bool GetDryRun() const{ return m_dryRun; }
44 
51  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 
59  inline BundleInstanceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
60 
65  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
66 
71  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
72 
77  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
78 
83  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
84 
89  inline BundleInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
90 
95  inline BundleInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
96 
101  inline BundleInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
102 
108  inline const Storage& GetStorage() const{ return m_storage; }
109 
115  inline void SetStorage(const Storage& value) { m_storageHasBeenSet = true; m_storage = value; }
116 
122  inline void SetStorage(Storage&& value) { m_storageHasBeenSet = true; m_storage = value; }
123 
129  inline BundleInstanceRequest& WithStorage(const Storage& value) { SetStorage(value); return *this;}
130 
136  inline BundleInstanceRequest& WithStorage(Storage&& value) { SetStorage(value); return *this;}
137 
138  private:
139  bool m_dryRun;
140  bool m_dryRunHasBeenSet;
141  Aws::String m_instanceId;
142  bool m_instanceIdHasBeenSet;
143  Storage m_storage;
144  bool m_storageHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace EC2
149 } // namespace Aws
BundleInstanceRequest & WithInstanceId(const Aws::String &value)
BundleInstanceRequest & WithStorage(Storage &&value)
const Aws::String & GetInstanceId() const
BundleInstanceRequest & WithStorage(const Storage &value)
BundleInstanceRequest & WithDryRun(bool value)
BundleInstanceRequest & WithInstanceId(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
BundleInstanceRequest & WithInstanceId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).