AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyInstanceCreditSpecificationRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/InstanceCreditSpecificationRequest.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace 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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline bool GetDryRun() const{ return m_dryRun; }
49 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
50 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 inline ModifyInstanceCreditSpecificationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
53
55
61 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
62 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
63 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
64 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
65 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
67 inline ModifyInstanceCreditSpecificationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
68 inline ModifyInstanceCreditSpecificationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
70
72
75 inline const Aws::Vector<InstanceCreditSpecificationRequest>& GetInstanceCreditSpecifications() const{ return m_instanceCreditSpecifications; }
76 inline bool InstanceCreditSpecificationsHasBeenSet() const { return m_instanceCreditSpecificationsHasBeenSet; }
77 inline void SetInstanceCreditSpecifications(const Aws::Vector<InstanceCreditSpecificationRequest>& value) { m_instanceCreditSpecificationsHasBeenSet = true; m_instanceCreditSpecifications = value; }
78 inline void SetInstanceCreditSpecifications(Aws::Vector<InstanceCreditSpecificationRequest>&& value) { m_instanceCreditSpecificationsHasBeenSet = true; m_instanceCreditSpecifications = std::move(value); }
81 inline ModifyInstanceCreditSpecificationRequest& AddInstanceCreditSpecifications(const InstanceCreditSpecificationRequest& value) { m_instanceCreditSpecificationsHasBeenSet = true; m_instanceCreditSpecifications.push_back(value); return *this; }
82 inline ModifyInstanceCreditSpecificationRequest& AddInstanceCreditSpecifications(InstanceCreditSpecificationRequest&& value) { m_instanceCreditSpecificationsHasBeenSet = true; m_instanceCreditSpecifications.push_back(std::move(value)); return *this; }
84 private:
85
86 bool m_dryRun;
87 bool m_dryRunHasBeenSet = false;
88
89 Aws::String m_clientToken;
90 bool m_clientTokenHasBeenSet = false;
91
92 Aws::Vector<InstanceCreditSpecificationRequest> m_instanceCreditSpecifications;
93 bool m_instanceCreditSpecificationsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace EC2
98} // namespace Aws
ModifyInstanceCreditSpecificationRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyInstanceCreditSpecificationRequest & WithInstanceCreditSpecifications(const Aws::Vector< InstanceCreditSpecificationRequest > &value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetInstanceCreditSpecifications(Aws::Vector< InstanceCreditSpecificationRequest > &&value)
const Aws::Vector< InstanceCreditSpecificationRequest > & GetInstanceCreditSpecifications() const
ModifyInstanceCreditSpecificationRequest & WithClientToken(const Aws::String &value)
void SetInstanceCreditSpecifications(const Aws::Vector< InstanceCreditSpecificationRequest > &value)
ModifyInstanceCreditSpecificationRequest & WithClientToken(Aws::String &&value)
ModifyInstanceCreditSpecificationRequest & WithInstanceCreditSpecifications(Aws::Vector< InstanceCreditSpecificationRequest > &&value)
ModifyInstanceCreditSpecificationRequest & AddInstanceCreditSpecifications(InstanceCreditSpecificationRequest &&value)
ModifyInstanceCreditSpecificationRequest & AddInstanceCreditSpecifications(const InstanceCreditSpecificationRequest &value)
ModifyInstanceCreditSpecificationRequest & WithClientToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector