AWS SDK for C++  1.9.16
AWS SDK for C++
DescribeInstanceAttributeRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeInstanceAttribute"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
44  inline const InstanceAttributeName& GetAttribute() const{ return m_attribute; }
45 
50  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
51 
56  inline void SetAttribute(const InstanceAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
57 
62  inline void SetAttribute(InstanceAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
63 
68  inline DescribeInstanceAttributeRequest& WithAttribute(const InstanceAttributeName& value) { SetAttribute(value); return *this;}
69 
74  inline DescribeInstanceAttributeRequest& WithAttribute(InstanceAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
75 
76 
83  inline bool GetDryRun() const{ return m_dryRun; }
84 
91  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
92 
99  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
100 
107  inline DescribeInstanceAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
108 
109 
113  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
114 
118  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
119 
123  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
124 
128  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
129 
133  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
134 
138  inline DescribeInstanceAttributeRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
139 
143  inline DescribeInstanceAttributeRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
144 
148  inline DescribeInstanceAttributeRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
149 
150  private:
151 
152  InstanceAttributeName m_attribute;
153  bool m_attributeHasBeenSet;
154 
155  bool m_dryRun;
156  bool m_dryRunHasBeenSet;
157 
158  Aws::String m_instanceId;
159  bool m_instanceIdHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace EC2
164 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeInstanceAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeInstanceAttributeRequest.h:31
Aws::EC2::Model::DescribeInstanceAttributeRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: DescribeInstanceAttributeRequest.h:133
Aws::EC2::Model::DescribeInstanceAttributeRequest::WithDryRun
DescribeInstanceAttributeRequest & WithDryRun(bool value)
Definition: DescribeInstanceAttributeRequest.h:107
Aws::EC2::Model::DescribeInstanceAttributeRequest::DescribeInstanceAttributeRequest
DescribeInstanceAttributeRequest()
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeInstanceAttributeRequest::WithAttribute
DescribeInstanceAttributeRequest & WithAttribute(const InstanceAttributeName &value)
Definition: DescribeInstanceAttributeRequest.h:68
InstanceAttributeName.h
Aws::EC2::Model::InstanceAttributeName
InstanceAttributeName
Definition: InstanceAttributeName.h:17
Aws::EC2::Model::DescribeInstanceAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeInstanceAttributeRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: DescribeInstanceAttributeRequest.h:118
Aws::EC2::Model::DescribeInstanceAttributeRequest::SetAttribute
void SetAttribute(const InstanceAttributeName &value)
Definition: DescribeInstanceAttributeRequest.h:56
Aws::EC2::Model::DescribeInstanceAttributeRequest::SetAttribute
void SetAttribute(InstanceAttributeName &&value)
Definition: DescribeInstanceAttributeRequest.h:62
Aws::EC2::Model::DescribeInstanceAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeInstanceAttributeRequest.h:91
Aws::EC2::Model::DescribeInstanceAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeInstanceAttributeRequest::WithInstanceId
DescribeInstanceAttributeRequest & WithInstanceId(Aws::String &&value)
Definition: DescribeInstanceAttributeRequest.h:143
Aws::EC2::Model::DescribeInstanceAttributeRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: DescribeInstanceAttributeRequest.h:128
EC2Request.h
Aws::EC2::Model::DescribeInstanceAttributeRequest::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: DescribeInstanceAttributeRequest.h:50
Aws::EC2::Model::DescribeInstanceAttributeRequest::WithAttribute
DescribeInstanceAttributeRequest & WithAttribute(InstanceAttributeName &&value)
Definition: DescribeInstanceAttributeRequest.h:74
AWSString.h
Aws::EC2::Model::DescribeInstanceAttributeRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: DescribeInstanceAttributeRequest.h:123
Aws::EC2::Model::DescribeInstanceAttributeRequest::GetAttribute
const InstanceAttributeName & GetAttribute() const
Definition: DescribeInstanceAttributeRequest.h:44
Aws::EC2::Model::DescribeInstanceAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeInstanceAttributeRequest.h:99
Aws::EC2::Model::DescribeInstanceAttributeRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: DescribeInstanceAttributeRequest.h:113
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeInstanceAttributeRequest::WithInstanceId
DescribeInstanceAttributeRequest & WithInstanceId(const Aws::String &value)
Definition: DescribeInstanceAttributeRequest.h:138
Aws::EC2::Model::DescribeInstanceAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeInstanceAttributeRequest.h:83
Aws::EC2::Model::DescribeInstanceAttributeRequest::WithInstanceId
DescribeInstanceAttributeRequest & WithInstanceId(const char *value)
Definition: DescribeInstanceAttributeRequest.h:148
EC2_EXPORTS.h
Aws::EC2::Model::DescribeInstanceAttributeRequest
Definition: DescribeInstanceAttributeRequest.h:23