/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace PrivateNetworks { namespace Model { /** *

Information about a network resource definition.

See Also:

* AWS * API Reference

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

The count in the network resource definition.

*/ inline int GetCount() const{ return m_count; } /** *

The count in the network resource definition.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The count in the network resource definition.

*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *

The count in the network resource definition.

*/ inline NetworkResourceDefinition& WithCount(int value) { SetCount(value); return *this;} /** *

The options in the network resource definition.

*/ inline const Aws::Vector& GetOptions() const{ return m_options; } /** *

The options in the network resource definition.

*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *

The options in the network resource definition.

*/ inline void SetOptions(const Aws::Vector& value) { m_optionsHasBeenSet = true; m_options = value; } /** *

The options in the network resource definition.

*/ inline void SetOptions(Aws::Vector&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *

The options in the network resource definition.

*/ inline NetworkResourceDefinition& WithOptions(const Aws::Vector& value) { SetOptions(value); return *this;} /** *

The options in the network resource definition.

*/ inline NetworkResourceDefinition& WithOptions(Aws::Vector&& value) { SetOptions(std::move(value)); return *this;} /** *

The options in the network resource definition.

*/ inline NetworkResourceDefinition& AddOptions(const NameValuePair& value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; } /** *

The options in the network resource definition.

*/ inline NetworkResourceDefinition& AddOptions(NameValuePair&& value) { m_optionsHasBeenSet = true; m_options.push_back(std::move(value)); return *this; } /** *

The type in the network resource definition.

*/ inline const NetworkResourceDefinitionType& GetType() const{ return m_type; } /** *

The type in the network resource definition.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type in the network resource definition.

*/ inline void SetType(const NetworkResourceDefinitionType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type in the network resource definition.

*/ inline void SetType(NetworkResourceDefinitionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type in the network resource definition.

*/ inline NetworkResourceDefinition& WithType(const NetworkResourceDefinitionType& value) { SetType(value); return *this;} /** *

The type in the network resource definition.

*/ inline NetworkResourceDefinition& WithType(NetworkResourceDefinitionType&& value) { SetType(std::move(value)); return *this;} private: int m_count; bool m_countHasBeenSet = false; Aws::Vector m_options; bool m_optionsHasBeenSet = false; NetworkResourceDefinitionType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace PrivateNetworks } // namespace Aws