AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEc2InstanceMetadataOptions.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SECURITYHUB_API AwsEc2InstanceMetadataOptions() = default;
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetHttpEndpoint() const { return m_httpEndpoint; }
46 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
47 template<typename HttpEndpointT = Aws::String>
48 void SetHttpEndpoint(HttpEndpointT&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::forward<HttpEndpointT>(value); }
49 template<typename HttpEndpointT = Aws::String>
50 AwsEc2InstanceMetadataOptions& WithHttpEndpoint(HttpEndpointT&& value) { SetHttpEndpoint(std::forward<HttpEndpointT>(value)); return *this;}
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) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = std::forward<HttpProtocolIpv6T>(value); }
61 template<typename HttpProtocolIpv6T = Aws::String>
62 AwsEc2InstanceMetadataOptions& WithHttpProtocolIpv6(HttpProtocolIpv6T&& value) { SetHttpProtocolIpv6(std::forward<HttpProtocolIpv6T>(value)); return *this;}
64
66
70 inline int GetHttpPutResponseHopLimit() const { return m_httpPutResponseHopLimit; }
71 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
72 inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
75
77
80 inline const Aws::String& GetHttpTokens() const { return m_httpTokens; }
81 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
82 template<typename HttpTokensT = Aws::String>
83 void SetHttpTokens(HttpTokensT&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::forward<HttpTokensT>(value); }
84 template<typename HttpTokensT = Aws::String>
85 AwsEc2InstanceMetadataOptions& WithHttpTokens(HttpTokensT&& value) { SetHttpTokens(std::forward<HttpTokensT>(value)); return *this;}
87
89
93 inline const Aws::String& GetInstanceMetadataTags() const { return m_instanceMetadataTags; }
94 inline bool InstanceMetadataTagsHasBeenSet() const { return m_instanceMetadataTagsHasBeenSet; }
95 template<typename InstanceMetadataTagsT = Aws::String>
96 void SetInstanceMetadataTags(InstanceMetadataTagsT&& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = std::forward<InstanceMetadataTagsT>(value); }
97 template<typename InstanceMetadataTagsT = Aws::String>
98 AwsEc2InstanceMetadataOptions& WithInstanceMetadataTags(InstanceMetadataTagsT&& value) { SetInstanceMetadataTags(std::forward<InstanceMetadataTagsT>(value)); return *this;}
100 private:
101
102 Aws::String m_httpEndpoint;
103 bool m_httpEndpointHasBeenSet = false;
104
105 Aws::String m_httpProtocolIpv6;
106 bool m_httpProtocolIpv6HasBeenSet = false;
107
108 int m_httpPutResponseHopLimit{0};
109 bool m_httpPutResponseHopLimitHasBeenSet = false;
110
111 Aws::String m_httpTokens;
112 bool m_httpTokensHasBeenSet = false;
113
114 Aws::String m_instanceMetadataTags;
115 bool m_instanceMetadataTagsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace SecurityHub
120} // 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