/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies the metadata options for an Amazon EC2 instance. See
* Also:
AWS
* API Reference
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.
*
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.
*
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.
*
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.
*
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.
*
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.
*
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.
*
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.
*