AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateInstanceMetadataOptionsRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/model/HttpTokens.h>
11#include <aws/lightsail/model/HttpEndpoint.h>
12#include <aws/lightsail/model/HttpProtocolIpv6.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Lightsail
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateInstanceMetadataOptions"; }
34
35 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
45 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
46 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
47 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
48 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
50 inline UpdateInstanceMetadataOptionsRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
51 inline UpdateInstanceMetadataOptionsRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
53
55
68 inline const HttpTokens& GetHttpTokens() const{ return m_httpTokens; }
69 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
70 inline void SetHttpTokens(const HttpTokens& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
71 inline void SetHttpTokens(HttpTokens&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
72 inline UpdateInstanceMetadataOptionsRequest& WithHttpTokens(const HttpTokens& value) { SetHttpTokens(value); return *this;}
73 inline UpdateInstanceMetadataOptionsRequest& WithHttpTokens(HttpTokens&& value) { SetHttpTokens(std::move(value)); return *this;}
75
77
83 inline const HttpEndpoint& GetHttpEndpoint() const{ return m_httpEndpoint; }
84 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
85 inline void SetHttpEndpoint(const HttpEndpoint& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
86 inline void SetHttpEndpoint(HttpEndpoint&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
88 inline UpdateInstanceMetadataOptionsRequest& WithHttpEndpoint(HttpEndpoint&& value) { SetHttpEndpoint(std::move(value)); return *this;}
90
92
97 inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
98 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
99 inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
102
104
110 inline const HttpProtocolIpv6& GetHttpProtocolIpv6() const{ return m_httpProtocolIpv6; }
111 inline bool HttpProtocolIpv6HasBeenSet() const { return m_httpProtocolIpv6HasBeenSet; }
112 inline void SetHttpProtocolIpv6(const HttpProtocolIpv6& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = value; }
113 inline void SetHttpProtocolIpv6(HttpProtocolIpv6&& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = std::move(value); }
117 private:
118
119 Aws::String m_instanceName;
120 bool m_instanceNameHasBeenSet = false;
121
122 HttpTokens m_httpTokens;
123 bool m_httpTokensHasBeenSet = false;
124
125 HttpEndpoint m_httpEndpoint;
126 bool m_httpEndpointHasBeenSet = false;
127
128 int m_httpPutResponseHopLimit;
129 bool m_httpPutResponseHopLimitHasBeenSet = false;
130
131 HttpProtocolIpv6 m_httpProtocolIpv6;
132 bool m_httpProtocolIpv6HasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Lightsail
137} // namespace Aws
UpdateInstanceMetadataOptionsRequest & WithHttpTokens(const HttpTokens &value)
UpdateInstanceMetadataOptionsRequest & WithHttpProtocolIpv6(const HttpProtocolIpv6 &value)
UpdateInstanceMetadataOptionsRequest & WithHttpEndpoint(const HttpEndpoint &value)
UpdateInstanceMetadataOptionsRequest & WithHttpProtocolIpv6(HttpProtocolIpv6 &&value)
UpdateInstanceMetadataOptionsRequest & WithInstanceName(Aws::String &&value)
UpdateInstanceMetadataOptionsRequest & WithInstanceName(const Aws::String &value)
UpdateInstanceMetadataOptionsRequest & WithHttpTokens(HttpTokens &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateInstanceMetadataOptionsRequest & WithInstanceName(const char *value)
UpdateInstanceMetadataOptionsRequest & WithHttpEndpoint(HttpEndpoint &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
UpdateInstanceMetadataOptionsRequest & WithHttpPutResponseHopLimit(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String