AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyInstanceMetadataOptionsRequest.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/ec2/model/HttpTokensState.h>
11#include <aws/ec2/model/InstanceMetadataEndpointState.h>
12#include <aws/ec2/model/InstanceMetadataProtocolState.h>
13#include <aws/ec2/model/InstanceMetadataTagsState.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceMetadataOptions"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
48 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
49 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
50 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
51 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
53 inline ModifyInstanceMetadataOptionsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
54 inline ModifyInstanceMetadataOptionsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
56
58
81 inline const HttpTokensState& GetHttpTokens() const{ return m_httpTokens; }
82 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
83 inline void SetHttpTokens(const HttpTokensState& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
84 inline void SetHttpTokens(HttpTokensState&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
86 inline ModifyInstanceMetadataOptionsRequest& WithHttpTokens(HttpTokensState&& value) { SetHttpTokens(std::move(value)); return *this;}
88
90
96 inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
97 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
98 inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
101
103
109 inline const InstanceMetadataEndpointState& GetHttpEndpoint() const{ return m_httpEndpoint; }
110 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
111 inline void SetHttpEndpoint(const InstanceMetadataEndpointState& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
112 inline void SetHttpEndpoint(InstanceMetadataEndpointState&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
116
118
124 inline bool GetDryRun() const{ return m_dryRun; }
125 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
126 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
127 inline ModifyInstanceMetadataOptionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
129
131
135 inline const InstanceMetadataProtocolState& GetHttpProtocolIpv6() const{ return m_httpProtocolIpv6; }
136 inline bool HttpProtocolIpv6HasBeenSet() const { return m_httpProtocolIpv6HasBeenSet; }
137 inline void SetHttpProtocolIpv6(const InstanceMetadataProtocolState& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = value; }
138 inline void SetHttpProtocolIpv6(InstanceMetadataProtocolState&& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = std::move(value); }
142
144
151 inline const InstanceMetadataTagsState& GetInstanceMetadataTags() const{ return m_instanceMetadataTags; }
152 inline bool InstanceMetadataTagsHasBeenSet() const { return m_instanceMetadataTagsHasBeenSet; }
153 inline void SetInstanceMetadataTags(const InstanceMetadataTagsState& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = value; }
154 inline void SetInstanceMetadataTags(InstanceMetadataTagsState&& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = std::move(value); }
158 private:
159
160 Aws::String m_instanceId;
161 bool m_instanceIdHasBeenSet = false;
162
163 HttpTokensState m_httpTokens;
164 bool m_httpTokensHasBeenSet = false;
165
166 int m_httpPutResponseHopLimit;
167 bool m_httpPutResponseHopLimitHasBeenSet = false;
168
169 InstanceMetadataEndpointState m_httpEndpoint;
170 bool m_httpEndpointHasBeenSet = false;
171
172 bool m_dryRun;
173 bool m_dryRunHasBeenSet = false;
174
175 InstanceMetadataProtocolState m_httpProtocolIpv6;
176 bool m_httpProtocolIpv6HasBeenSet = false;
177
178 InstanceMetadataTagsState m_instanceMetadataTags;
179 bool m_instanceMetadataTagsHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace EC2
184} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
ModifyInstanceMetadataOptionsRequest & WithInstanceId(Aws::String &&value)
ModifyInstanceMetadataOptionsRequest & WithDryRun(bool value)
ModifyInstanceMetadataOptionsRequest & WithHttpTokens(const HttpTokensState &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyInstanceMetadataOptionsRequest & WithHttpProtocolIpv6(InstanceMetadataProtocolState &&value)
ModifyInstanceMetadataOptionsRequest & WithHttpEndpoint(const InstanceMetadataEndpointState &value)
ModifyInstanceMetadataOptionsRequest & WithHttpEndpoint(InstanceMetadataEndpointState &&value)
ModifyInstanceMetadataOptionsRequest & WithHttpTokens(HttpTokensState &&value)
ModifyInstanceMetadataOptionsRequest & WithInstanceMetadataTags(InstanceMetadataTagsState &&value)
void SetHttpEndpoint(const InstanceMetadataEndpointState &value)
ModifyInstanceMetadataOptionsRequest & WithInstanceId(const char *value)
ModifyInstanceMetadataOptionsRequest & WithHttpPutResponseHopLimit(int value)
ModifyInstanceMetadataOptionsRequest & WithHttpProtocolIpv6(const InstanceMetadataProtocolState &value)
void SetHttpProtocolIpv6(const InstanceMetadataProtocolState &value)
ModifyInstanceMetadataOptionsRequest & WithInstanceMetadataTags(const InstanceMetadataTagsState &value)
ModifyInstanceMetadataOptionsRequest & WithInstanceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String