AWS SDK for C++  1.8.7
AWS SDK for C++
ModifyInstanceCreditSpecificationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceCreditSpecification"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline bool GetDryRun() const{ return m_dryRun; }
48 
55  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 
63  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 
71  inline ModifyInstanceCreditSpecificationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
80  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
81 
88  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
89 
96  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
97 
104  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
105 
112  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
113 
120  inline ModifyInstanceCreditSpecificationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
121 
128  inline ModifyInstanceCreditSpecificationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
129 
136  inline ModifyInstanceCreditSpecificationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
137 
138 
142  inline const Aws::Vector<InstanceCreditSpecificationRequest>& GetInstanceCreditSpecifications() const{ return m_instanceCreditSpecifications; }
143 
147  inline bool InstanceCreditSpecificationsHasBeenSet() const { return m_instanceCreditSpecificationsHasBeenSet; }
148 
152  inline void SetInstanceCreditSpecifications(const Aws::Vector<InstanceCreditSpecificationRequest>& value) { m_instanceCreditSpecificationsHasBeenSet = true; m_instanceCreditSpecifications = value; }
153 
157  inline void SetInstanceCreditSpecifications(Aws::Vector<InstanceCreditSpecificationRequest>&& value) { m_instanceCreditSpecificationsHasBeenSet = true; m_instanceCreditSpecifications = std::move(value); }
158 
162  inline ModifyInstanceCreditSpecificationRequest& WithInstanceCreditSpecifications(const Aws::Vector<InstanceCreditSpecificationRequest>& value) { SetInstanceCreditSpecifications(value); return *this;}
163 
167  inline ModifyInstanceCreditSpecificationRequest& WithInstanceCreditSpecifications(Aws::Vector<InstanceCreditSpecificationRequest>&& value) { SetInstanceCreditSpecifications(std::move(value)); return *this;}
168 
172  inline ModifyInstanceCreditSpecificationRequest& AddInstanceCreditSpecifications(const InstanceCreditSpecificationRequest& value) { m_instanceCreditSpecificationsHasBeenSet = true; m_instanceCreditSpecifications.push_back(value); return *this; }
173 
177  inline ModifyInstanceCreditSpecificationRequest& AddInstanceCreditSpecifications(InstanceCreditSpecificationRequest&& value) { m_instanceCreditSpecificationsHasBeenSet = true; m_instanceCreditSpecifications.push_back(std::move(value)); return *this; }
178 
179  private:
180 
181  bool m_dryRun;
182  bool m_dryRunHasBeenSet;
183 
184  Aws::String m_clientToken;
185  bool m_clientTokenHasBeenSet;
186 
187  Aws::Vector<InstanceCreditSpecificationRequest> m_instanceCreditSpecifications;
188  bool m_instanceCreditSpecificationsHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace EC2
193 } // namespace Aws
void SetInstanceCreditSpecifications(const Aws::Vector< InstanceCreditSpecificationRequest > &value)
ModifyInstanceCreditSpecificationRequest & WithDryRun(bool value)
ModifyInstanceCreditSpecificationRequest & WithClientToken(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ModifyInstanceCreditSpecificationRequest & WithClientToken(const char *value)
ModifyInstanceCreditSpecificationRequest & AddInstanceCreditSpecifications(InstanceCreditSpecificationRequest &&value)
ModifyInstanceCreditSpecificationRequest & WithClientToken(const Aws::String &value)
void SetInstanceCreditSpecifications(Aws::Vector< InstanceCreditSpecificationRequest > &&value)
ModifyInstanceCreditSpecificationRequest & AddInstanceCreditSpecifications(const InstanceCreditSpecificationRequest &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyInstanceCreditSpecificationRequest & WithInstanceCreditSpecifications(const Aws::Vector< InstanceCreditSpecificationRequest > &value)
ModifyInstanceCreditSpecificationRequest & WithInstanceCreditSpecifications(Aws::Vector< InstanceCreditSpecificationRequest > &&value)
const Aws::Vector< InstanceCreditSpecificationRequest > & GetInstanceCreditSpecifications() const
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28