AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetHttpEndpoint(const Aws::String& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
48 inline void SetHttpEndpoint(Aws::String&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
49 inline void SetHttpEndpoint(const char* value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint.assign(value); }
50 inline AwsEc2InstanceMetadataOptions& WithHttpEndpoint(const Aws::String& value) { SetHttpEndpoint(value); return *this;}
51 inline AwsEc2InstanceMetadataOptions& WithHttpEndpoint(Aws::String&& value) { SetHttpEndpoint(std::move(value)); return *this;}
52 inline AwsEc2InstanceMetadataOptions& WithHttpEndpoint(const char* value) { SetHttpEndpoint(value); return *this;}
54
56
59 inline const Aws::String& GetHttpProtocolIpv6() const{ return m_httpProtocolIpv6; }
60 inline bool HttpProtocolIpv6HasBeenSet() const { return m_httpProtocolIpv6HasBeenSet; }
61 inline void SetHttpProtocolIpv6(const Aws::String& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = value; }
62 inline void SetHttpProtocolIpv6(Aws::String&& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = std::move(value); }
63 inline void SetHttpProtocolIpv6(const char* value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6.assign(value); }
65 inline AwsEc2InstanceMetadataOptions& WithHttpProtocolIpv6(Aws::String&& value) { SetHttpProtocolIpv6(std::move(value)); return *this;}
66 inline AwsEc2InstanceMetadataOptions& WithHttpProtocolIpv6(const char* value) { SetHttpProtocolIpv6(value); return *this;}
68
70
74 inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
75 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
76 inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
79
81
84 inline const Aws::String& GetHttpTokens() const{ return m_httpTokens; }
85 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
86 inline void SetHttpTokens(const Aws::String& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
87 inline void SetHttpTokens(Aws::String&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
88 inline void SetHttpTokens(const char* value) { m_httpTokensHasBeenSet = true; m_httpTokens.assign(value); }
89 inline AwsEc2InstanceMetadataOptions& WithHttpTokens(const Aws::String& value) { SetHttpTokens(value); return *this;}
90 inline AwsEc2InstanceMetadataOptions& WithHttpTokens(Aws::String&& value) { SetHttpTokens(std::move(value)); return *this;}
91 inline AwsEc2InstanceMetadataOptions& WithHttpTokens(const char* value) { SetHttpTokens(value); return *this;}
93
95
99 inline const Aws::String& GetInstanceMetadataTags() const{ return m_instanceMetadataTags; }
100 inline bool InstanceMetadataTagsHasBeenSet() const { return m_instanceMetadataTagsHasBeenSet; }
101 inline void SetInstanceMetadataTags(const Aws::String& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = value; }
102 inline void SetInstanceMetadataTags(Aws::String&& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = std::move(value); }
103 inline void SetInstanceMetadataTags(const char* value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags.assign(value); }
106 inline AwsEc2InstanceMetadataOptions& WithInstanceMetadataTags(const char* value) { SetInstanceMetadataTags(value); return *this;}
108 private:
109
110 Aws::String m_httpEndpoint;
111 bool m_httpEndpointHasBeenSet = false;
112
113 Aws::String m_httpProtocolIpv6;
114 bool m_httpProtocolIpv6HasBeenSet = false;
115
116 int m_httpPutResponseHopLimit;
117 bool m_httpPutResponseHopLimitHasBeenSet = false;
118
119 Aws::String m_httpTokens;
120 bool m_httpTokensHasBeenSet = false;
121
122 Aws::String m_instanceMetadataTags;
123 bool m_instanceMetadataTagsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace SecurityHub
128} // namespace Aws
AwsEc2InstanceMetadataOptions & WithInstanceMetadataTags(const char *value)
AWS_SECURITYHUB_API AwsEc2InstanceMetadataOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2InstanceMetadataOptions & WithHttpPutResponseHopLimit(int value)
AwsEc2InstanceMetadataOptions & WithHttpEndpoint(const Aws::String &value)
AwsEc2InstanceMetadataOptions & WithHttpProtocolIpv6(const char *value)
AwsEc2InstanceMetadataOptions & WithInstanceMetadataTags(Aws::String &&value)
AwsEc2InstanceMetadataOptions & WithHttpProtocolIpv6(const Aws::String &value)
AWS_SECURITYHUB_API AwsEc2InstanceMetadataOptions(Aws::Utils::Json::JsonView jsonValue)
AwsEc2InstanceMetadataOptions & WithHttpTokens(const Aws::String &value)
AwsEc2InstanceMetadataOptions & WithInstanceMetadataTags(const Aws::String &value)
AwsEc2InstanceMetadataOptions & WithHttpEndpoint(Aws::String &&value)
AwsEc2InstanceMetadataOptions & WithHttpTokens(const char *value)
AwsEc2InstanceMetadataOptions & WithHttpProtocolIpv6(Aws::String &&value)
AwsEc2InstanceMetadataOptions & WithHttpEndpoint(const char *value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2InstanceMetadataOptions & WithHttpTokens(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue