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

Describes prefixes for Amazon Web Services services.

See Also:

* AWS * API Reference

*/ class PrefixList { public: AWS_EC2_API PrefixList(); AWS_EC2_API PrefixList(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API PrefixList& 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 IP address range of the Amazon Web Service.

*/ inline const Aws::Vector& GetCidrs() const{ return m_cidrs; } /** *

The IP address range of the Amazon Web Service.

*/ inline bool CidrsHasBeenSet() const { return m_cidrsHasBeenSet; } /** *

The IP address range of the Amazon Web Service.

*/ inline void SetCidrs(const Aws::Vector& value) { m_cidrsHasBeenSet = true; m_cidrs = value; } /** *

The IP address range of the Amazon Web Service.

*/ inline void SetCidrs(Aws::Vector&& value) { m_cidrsHasBeenSet = true; m_cidrs = std::move(value); } /** *

The IP address range of the Amazon Web Service.

*/ inline PrefixList& WithCidrs(const Aws::Vector& value) { SetCidrs(value); return *this;} /** *

The IP address range of the Amazon Web Service.

*/ inline PrefixList& WithCidrs(Aws::Vector&& value) { SetCidrs(std::move(value)); return *this;} /** *

The IP address range of the Amazon Web Service.

*/ inline PrefixList& AddCidrs(const Aws::String& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; } /** *

The IP address range of the Amazon Web Service.

*/ inline PrefixList& AddCidrs(Aws::String&& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(std::move(value)); return *this; } /** *

The IP address range of the Amazon Web Service.

*/ inline PrefixList& AddCidrs(const char* value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(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 PrefixList& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;} /** *

The ID of the prefix.

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

The ID of the prefix.

*/ inline PrefixList& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;} /** *

The name of the prefix.

*/ inline const Aws::String& GetPrefixListName() const{ return m_prefixListName; } /** *

The name of the prefix.

*/ inline bool PrefixListNameHasBeenSet() const { return m_prefixListNameHasBeenSet; } /** *

The name of the prefix.

*/ inline void SetPrefixListName(const Aws::String& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = value; } /** *

The name of the prefix.

*/ inline void SetPrefixListName(Aws::String&& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = std::move(value); } /** *

The name of the prefix.

*/ inline void SetPrefixListName(const char* value) { m_prefixListNameHasBeenSet = true; m_prefixListName.assign(value); } /** *

The name of the prefix.

*/ inline PrefixList& WithPrefixListName(const Aws::String& value) { SetPrefixListName(value); return *this;} /** *

The name of the prefix.

*/ inline PrefixList& WithPrefixListName(Aws::String&& value) { SetPrefixListName(std::move(value)); return *this;} /** *

The name of the prefix.

*/ inline PrefixList& WithPrefixListName(const char* value) { SetPrefixListName(value); return *this;} private: Aws::Vector m_cidrs; bool m_cidrsHasBeenSet = false; Aws::String m_prefixListId; bool m_prefixListIdHasBeenSet = false; Aws::String m_prefixListName; bool m_prefixListNameHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws