/** * 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 a prefix list ID.

See Also:

AWS * API Reference

*/ class PrefixListId { public: AWS_EC2_API PrefixListId(); AWS_EC2_API PrefixListId(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API PrefixListId& 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; /** *

A description for the security group rule that references this prefix list * ID.

Constraints: Up to 255 characters in length. Allowed characters are * a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the security group rule that references this prefix list * ID.

Constraints: Up to 255 characters in length. Allowed characters are * a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the security group rule that references this prefix list * ID.

Constraints: Up to 255 characters in length. Allowed characters are * a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the security group rule that references this prefix list * ID.

Constraints: Up to 255 characters in length. Allowed characters are * a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the security group rule that references this prefix list * ID.

Constraints: Up to 255 characters in length. Allowed characters are * a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the security group rule that references this prefix list * ID.

Constraints: Up to 255 characters in length. Allowed characters are * a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*

*/ inline PrefixListId& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the security group rule that references this prefix list * ID.

Constraints: Up to 255 characters in length. Allowed characters are * a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*

*/ inline PrefixListId& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the security group rule that references this prefix list * ID.

Constraints: Up to 255 characters in length. Allowed characters are * a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*

*/ inline PrefixListId& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ID of the prefix.

*/ inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; } /** *

The ID of the prefix.

*/ inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; } /** *

The ID of the prefix.

*/ inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; } /** *

The ID of the prefix.

*/ inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); } /** *

The ID of the prefix.

*/ inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); } /** *

The ID of the prefix.

*/ inline PrefixListId& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;} /** *

The ID of the prefix.

*/ inline PrefixListId& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;} /** *

The ID of the prefix.

*/ inline PrefixListId& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_prefixListId; bool m_prefixListIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws