AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AwsEc2InstanceMetadataOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
29 public:
30 AWS_SECURITYHUB_API AwsEc2InstanceMetadataOptions() = default;
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetHttpEndpoint() const { return m_httpEndpoint; }
40 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
41 template <typename HttpEndpointT = Aws::String>
42 void SetHttpEndpoint(HttpEndpointT&& value) {
43 m_httpEndpointHasBeenSet = true;
44 m_httpEndpoint = std::forward<HttpEndpointT>(value);
45 }
46 template <typename HttpEndpointT = Aws::String>
48 SetHttpEndpoint(std::forward<HttpEndpointT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetHttpProtocolIpv6() const { return m_httpProtocolIpv6; }
58 inline bool HttpProtocolIpv6HasBeenSet() const { return m_httpProtocolIpv6HasBeenSet; }
59 template <typename HttpProtocolIpv6T = Aws::String>
60 void SetHttpProtocolIpv6(HttpProtocolIpv6T&& value) {
61 m_httpProtocolIpv6HasBeenSet = true;
62 m_httpProtocolIpv6 = std::forward<HttpProtocolIpv6T>(value);
63 }
64 template <typename HttpProtocolIpv6T = Aws::String>
66 SetHttpProtocolIpv6(std::forward<HttpProtocolIpv6T>(value));
67 return *this;
68 }
70
72
76 inline int GetHttpPutResponseHopLimit() const { return m_httpPutResponseHopLimit; }
77 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
78 inline void SetHttpPutResponseHopLimit(int value) {
79 m_httpPutResponseHopLimitHasBeenSet = true;
80 m_httpPutResponseHopLimit = value;
81 }
84 return *this;
85 }
87
89
92 inline const Aws::String& GetHttpTokens() const { return m_httpTokens; }
93 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
94 template <typename HttpTokensT = Aws::String>
95 void SetHttpTokens(HttpTokensT&& value) {
96 m_httpTokensHasBeenSet = true;
97 m_httpTokens = std::forward<HttpTokensT>(value);
98 }
99 template <typename HttpTokensT = Aws::String>
101 SetHttpTokens(std::forward<HttpTokensT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetInstanceMetadataTags() const { return m_instanceMetadataTags; }
112 inline bool InstanceMetadataTagsHasBeenSet() const { return m_instanceMetadataTagsHasBeenSet; }
113 template <typename InstanceMetadataTagsT = Aws::String>
114 void SetInstanceMetadataTags(InstanceMetadataTagsT&& value) {
115 m_instanceMetadataTagsHasBeenSet = true;
116 m_instanceMetadataTags = std::forward<InstanceMetadataTagsT>(value);
117 }
118 template <typename InstanceMetadataTagsT = Aws::String>
120 SetInstanceMetadataTags(std::forward<InstanceMetadataTagsT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_httpEndpoint;
126
127 Aws::String m_httpProtocolIpv6;
128
129 int m_httpPutResponseHopLimit{0};
130
131 Aws::String m_httpTokens;
132
133 Aws::String m_instanceMetadataTags;
134 bool m_httpEndpointHasBeenSet = false;
135 bool m_httpProtocolIpv6HasBeenSet = false;
136 bool m_httpPutResponseHopLimitHasBeenSet = false;
137 bool m_httpTokensHasBeenSet = false;
138 bool m_instanceMetadataTagsHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace SecurityHub
143} // namespace Aws
AwsEc2InstanceMetadataOptions & WithHttpEndpoint(HttpEndpointT &&value)
AWS_SECURITYHUB_API AwsEc2InstanceMetadataOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2InstanceMetadataOptions & WithHttpPutResponseHopLimit(int value)
AWS_SECURITYHUB_API AwsEc2InstanceMetadataOptions()=default
AwsEc2InstanceMetadataOptions & WithHttpProtocolIpv6(HttpProtocolIpv6T &&value)
AWS_SECURITYHUB_API AwsEc2InstanceMetadataOptions(Aws::Utils::Json::JsonView jsonValue)
AwsEc2InstanceMetadataOptions & WithHttpTokens(HttpTokensT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2InstanceMetadataOptions & WithInstanceMetadataTags(InstanceMetadataTagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue