AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateInstanceMetadataOptionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/HttpEndpoint.h>
11#include <aws/lightsail/model/HttpProtocolIpv6.h>
12#include <aws/lightsail/model/HttpTokens.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Lightsail {
18namespace Model {
19
23 public:
24 AWS_LIGHTSAIL_API UpdateInstanceMetadataOptionsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateInstanceMetadataOptions"; }
31
32 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetInstanceName() const { return m_instanceName; }
41 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
42 template <typename InstanceNameT = Aws::String>
43 void SetInstanceName(InstanceNameT&& value) {
44 m_instanceNameHasBeenSet = true;
45 m_instanceName = std::forward<InstanceNameT>(value);
46 }
47 template <typename InstanceNameT = Aws::String>
49 SetInstanceName(std::forward<InstanceNameT>(value));
50 return *this;
51 }
53
55
68 inline HttpTokens GetHttpTokens() const { return m_httpTokens; }
69 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
70 inline void SetHttpTokens(HttpTokens value) {
71 m_httpTokensHasBeenSet = true;
72 m_httpTokens = value;
73 }
75 SetHttpTokens(value);
76 return *this;
77 }
79
81
87 inline HttpEndpoint GetHttpEndpoint() const { return m_httpEndpoint; }
88 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
89 inline void SetHttpEndpoint(HttpEndpoint value) {
90 m_httpEndpointHasBeenSet = true;
91 m_httpEndpoint = value;
92 }
94 SetHttpEndpoint(value);
95 return *this;
96 }
98
100
105 inline int GetHttpPutResponseHopLimit() const { return m_httpPutResponseHopLimit; }
106 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
107 inline void SetHttpPutResponseHopLimit(int value) {
108 m_httpPutResponseHopLimitHasBeenSet = true;
109 m_httpPutResponseHopLimit = value;
110 }
113 return *this;
114 }
116
118
124 inline HttpProtocolIpv6 GetHttpProtocolIpv6() const { return m_httpProtocolIpv6; }
125 inline bool HttpProtocolIpv6HasBeenSet() const { return m_httpProtocolIpv6HasBeenSet; }
127 m_httpProtocolIpv6HasBeenSet = true;
128 m_httpProtocolIpv6 = value;
129 }
131 SetHttpProtocolIpv6(value);
132 return *this;
133 }
135 private:
136 Aws::String m_instanceName;
137
138 HttpTokens m_httpTokens{HttpTokens::NOT_SET};
139
140 HttpEndpoint m_httpEndpoint{HttpEndpoint::NOT_SET};
141
142 int m_httpPutResponseHopLimit{0};
143
145 bool m_instanceNameHasBeenSet = false;
146 bool m_httpTokensHasBeenSet = false;
147 bool m_httpEndpointHasBeenSet = false;
148 bool m_httpPutResponseHopLimitHasBeenSet = false;
149 bool m_httpProtocolIpv6HasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace Lightsail
154} // namespace Aws
UpdateInstanceMetadataOptionsRequest & WithHttpTokens(HttpTokens value)
UpdateInstanceMetadataOptionsRequest & WithHttpEndpoint(HttpEndpoint value)
UpdateInstanceMetadataOptionsRequest & WithHttpProtocolIpv6(HttpProtocolIpv6 value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
UpdateInstanceMetadataOptionsRequest & WithHttpPutResponseHopLimit(int value)
UpdateInstanceMetadataOptionsRequest & WithInstanceName(InstanceNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String