/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Specifies the metadata options for an Amazon EC2 instance.

See * Also:

AWS * API Reference

*/ class AwsEc2LaunchTemplateDataMetadataOptionsDetails { public: AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataMetadataOptionsDetails(); AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataMetadataOptionsDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataMetadataOptionsDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Enables or disables the HTTP metadata endpoint on your instances. If the * parameter is not specified, the default state is enabled, and you won't be able * to access your instance metadata.

*/ inline const Aws::String& GetHttpEndpoint() const{ return m_httpEndpoint; } /** *

Enables or disables the HTTP metadata endpoint on your instances. If the * parameter is not specified, the default state is enabled, and you won't be able * to access your instance metadata.

*/ inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; } /** *

Enables or disables the HTTP metadata endpoint on your instances. If the * parameter is not specified, the default state is enabled, and you won't be able * to access your instance metadata.

*/ inline void SetHttpEndpoint(const Aws::String& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; } /** *

Enables or disables the HTTP metadata endpoint on your instances. If the * parameter is not specified, the default state is enabled, and you won't be able * to access your instance metadata.

*/ inline void SetHttpEndpoint(Aws::String&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); } /** *

Enables or disables the HTTP metadata endpoint on your instances. If the * parameter is not specified, the default state is enabled, and you won't be able * to access your instance metadata.

*/ inline void SetHttpEndpoint(const char* value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint.assign(value); } /** *

Enables or disables the HTTP metadata endpoint on your instances. If the * parameter is not specified, the default state is enabled, and you won't be able * to access your instance metadata.

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithHttpEndpoint(const Aws::String& value) { SetHttpEndpoint(value); return *this;} /** *

Enables or disables the HTTP metadata endpoint on your instances. If the * parameter is not specified, the default state is enabled, and you won't be able * to access your instance metadata.

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithHttpEndpoint(Aws::String&& value) { SetHttpEndpoint(std::move(value)); return *this;} /** *

Enables or disables the HTTP metadata endpoint on your instances. If the * parameter is not specified, the default state is enabled, and you won't be able * to access your instance metadata.

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithHttpEndpoint(const char* value) { SetHttpEndpoint(value); return *this;} /** *

Enables or disables the IPv6 endpoint for the instance metadata service. *

*/ inline const Aws::String& GetHttpProtocolIpv6() const{ return m_httpProtocolIpv6; } /** *

Enables or disables the IPv6 endpoint for the instance metadata service. *

*/ inline bool HttpProtocolIpv6HasBeenSet() const { return m_httpProtocolIpv6HasBeenSet; } /** *

Enables or disables the IPv6 endpoint for the instance metadata service. *

*/ inline void SetHttpProtocolIpv6(const Aws::String& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = value; } /** *

Enables or disables the IPv6 endpoint for the instance metadata service. *

*/ inline void SetHttpProtocolIpv6(Aws::String&& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = std::move(value); } /** *

Enables or disables the IPv6 endpoint for the instance metadata service. *

*/ inline void SetHttpProtocolIpv6(const char* value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6.assign(value); } /** *

Enables or disables the IPv6 endpoint for the instance metadata service. *

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithHttpProtocolIpv6(const Aws::String& value) { SetHttpProtocolIpv6(value); return *this;} /** *

Enables or disables the IPv6 endpoint for the instance metadata service. *

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithHttpProtocolIpv6(Aws::String&& value) { SetHttpProtocolIpv6(std::move(value)); return *this;} /** *

Enables or disables the IPv6 endpoint for the instance metadata service. *

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithHttpProtocolIpv6(const char* value) { SetHttpProtocolIpv6(value); return *this;} /** *

The state of token usage for your instance metadata requests.

*/ inline const Aws::String& GetHttpTokens() const{ return m_httpTokens; } /** *

The state of token usage for your instance metadata requests.

*/ inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; } /** *

The state of token usage for your instance metadata requests.

*/ inline void SetHttpTokens(const Aws::String& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; } /** *

The state of token usage for your instance metadata requests.

*/ inline void SetHttpTokens(Aws::String&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); } /** *

The state of token usage for your instance metadata requests.

*/ inline void SetHttpTokens(const char* value) { m_httpTokensHasBeenSet = true; m_httpTokens.assign(value); } /** *

The state of token usage for your instance metadata requests.

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithHttpTokens(const Aws::String& value) { SetHttpTokens(value); return *this;} /** *

The state of token usage for your instance metadata requests.

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithHttpTokens(Aws::String&& value) { SetHttpTokens(std::move(value)); return *this;} /** *

The state of token usage for your instance metadata requests.

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithHttpTokens(const char* value) { SetHttpTokens(value); return *this;} /** *

The desired HTTP PUT response hop limit for instance metadata requests. The * larger the number, the further instance metadata requests can travel.

*/ inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; } /** *

The desired HTTP PUT response hop limit for instance metadata requests. The * larger the number, the further instance metadata requests can travel.

*/ inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; } /** *

The desired HTTP PUT response hop limit for instance metadata requests. The * larger the number, the further instance metadata requests can travel.

*/ inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; } /** *

The desired HTTP PUT response hop limit for instance metadata requests. The * larger the number, the further instance metadata requests can travel.

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithHttpPutResponseHopLimit(int value) { SetHttpPutResponseHopLimit(value); return *this;} /** *

When set to enabled, this parameter allows access to instance * tags from the instance metadata. When set to disabled, it turns off * access to instance tags from the instance metadata. For more information, see Work * with instance tags in instance metadata in the Amazon EC2 User Guide. *

*/ inline const Aws::String& GetInstanceMetadataTags() const{ return m_instanceMetadataTags; } /** *

When set to enabled, this parameter allows access to instance * tags from the instance metadata. When set to disabled, it turns off * access to instance tags from the instance metadata. For more information, see Work * with instance tags in instance metadata in the Amazon EC2 User Guide. *

*/ inline bool InstanceMetadataTagsHasBeenSet() const { return m_instanceMetadataTagsHasBeenSet; } /** *

When set to enabled, this parameter allows access to instance * tags from the instance metadata. When set to disabled, it turns off * access to instance tags from the instance metadata. For more information, see Work * with instance tags in instance metadata in the Amazon EC2 User Guide. *

*/ inline void SetInstanceMetadataTags(const Aws::String& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = value; } /** *

When set to enabled, this parameter allows access to instance * tags from the instance metadata. When set to disabled, it turns off * access to instance tags from the instance metadata. For more information, see Work * with instance tags in instance metadata in the Amazon EC2 User Guide. *

*/ inline void SetInstanceMetadataTags(Aws::String&& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = std::move(value); } /** *

When set to enabled, this parameter allows access to instance * tags from the instance metadata. When set to disabled, it turns off * access to instance tags from the instance metadata. For more information, see Work * with instance tags in instance metadata in the Amazon EC2 User Guide. *

*/ inline void SetInstanceMetadataTags(const char* value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags.assign(value); } /** *

When set to enabled, this parameter allows access to instance * tags from the instance metadata. When set to disabled, it turns off * access to instance tags from the instance metadata. For more information, see Work * with instance tags in instance metadata in the Amazon EC2 User Guide. *

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithInstanceMetadataTags(const Aws::String& value) { SetInstanceMetadataTags(value); return *this;} /** *

When set to enabled, this parameter allows access to instance * tags from the instance metadata. When set to disabled, it turns off * access to instance tags from the instance metadata. For more information, see Work * with instance tags in instance metadata in the Amazon EC2 User Guide. *

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithInstanceMetadataTags(Aws::String&& value) { SetInstanceMetadataTags(std::move(value)); return *this;} /** *

When set to enabled, this parameter allows access to instance * tags from the instance metadata. When set to disabled, it turns off * access to instance tags from the instance metadata. For more information, see Work * with instance tags in instance metadata in the Amazon EC2 User Guide. *

*/ inline AwsEc2LaunchTemplateDataMetadataOptionsDetails& WithInstanceMetadataTags(const char* value) { SetInstanceMetadataTags(value); return *this;} private: Aws::String m_httpEndpoint; bool m_httpEndpointHasBeenSet = false; Aws::String m_httpProtocolIpv6; bool m_httpProtocolIpv6HasBeenSet = false; Aws::String m_httpTokens; bool m_httpTokensHasBeenSet = false; int m_httpPutResponseHopLimit; bool m_httpPutResponseHopLimitHasBeenSet = false; Aws::String m_instanceMetadataTags; bool m_instanceMetadataTagsHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws