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

Describes the meta data tags associated with a transit gateway policy * rule.

See Also:

AWS * API Reference

*/ class TransitGatewayPolicyRuleMetaData { public: AWS_EC2_API TransitGatewayPolicyRuleMetaData(); AWS_EC2_API TransitGatewayPolicyRuleMetaData(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API TransitGatewayPolicyRuleMetaData& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The key name for the transit gateway policy rule meta data tag.

*/ inline const Aws::String& GetMetaDataKey() const{ return m_metaDataKey; } /** *

The key name for the transit gateway policy rule meta data tag.

*/ inline bool MetaDataKeyHasBeenSet() const { return m_metaDataKeyHasBeenSet; } /** *

The key name for the transit gateway policy rule meta data tag.

*/ inline void SetMetaDataKey(const Aws::String& value) { m_metaDataKeyHasBeenSet = true; m_metaDataKey = value; } /** *

The key name for the transit gateway policy rule meta data tag.

*/ inline void SetMetaDataKey(Aws::String&& value) { m_metaDataKeyHasBeenSet = true; m_metaDataKey = std::move(value); } /** *

The key name for the transit gateway policy rule meta data tag.

*/ inline void SetMetaDataKey(const char* value) { m_metaDataKeyHasBeenSet = true; m_metaDataKey.assign(value); } /** *

The key name for the transit gateway policy rule meta data tag.

*/ inline TransitGatewayPolicyRuleMetaData& WithMetaDataKey(const Aws::String& value) { SetMetaDataKey(value); return *this;} /** *

The key name for the transit gateway policy rule meta data tag.

*/ inline TransitGatewayPolicyRuleMetaData& WithMetaDataKey(Aws::String&& value) { SetMetaDataKey(std::move(value)); return *this;} /** *

The key name for the transit gateway policy rule meta data tag.

*/ inline TransitGatewayPolicyRuleMetaData& WithMetaDataKey(const char* value) { SetMetaDataKey(value); return *this;} /** *

The value of the key for the transit gateway policy rule meta data tag.

*/ inline const Aws::String& GetMetaDataValue() const{ return m_metaDataValue; } /** *

The value of the key for the transit gateway policy rule meta data tag.

*/ inline bool MetaDataValueHasBeenSet() const { return m_metaDataValueHasBeenSet; } /** *

The value of the key for the transit gateway policy rule meta data tag.

*/ inline void SetMetaDataValue(const Aws::String& value) { m_metaDataValueHasBeenSet = true; m_metaDataValue = value; } /** *

The value of the key for the transit gateway policy rule meta data tag.

*/ inline void SetMetaDataValue(Aws::String&& value) { m_metaDataValueHasBeenSet = true; m_metaDataValue = std::move(value); } /** *

The value of the key for the transit gateway policy rule meta data tag.

*/ inline void SetMetaDataValue(const char* value) { m_metaDataValueHasBeenSet = true; m_metaDataValue.assign(value); } /** *

The value of the key for the transit gateway policy rule meta data tag.

*/ inline TransitGatewayPolicyRuleMetaData& WithMetaDataValue(const Aws::String& value) { SetMetaDataValue(value); return *this;} /** *

The value of the key for the transit gateway policy rule meta data tag.

*/ inline TransitGatewayPolicyRuleMetaData& WithMetaDataValue(Aws::String&& value) { SetMetaDataValue(std::move(value)); return *this;} /** *

The value of the key for the transit gateway policy rule meta data tag.

*/ inline TransitGatewayPolicyRuleMetaData& WithMetaDataValue(const char* value) { SetMetaDataValue(value); return *this;} private: Aws::String m_metaDataKey; bool m_metaDataKeyHasBeenSet = false; Aws::String m_metaDataValue; bool m_metaDataValueHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws