/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace PrivateNetworks { namespace Model { class GetNetworkResourceResult { public: AWS_PRIVATENETWORKS_API GetNetworkResourceResult(); AWS_PRIVATENETWORKS_API GetNetworkResourceResult(const Aws::AmazonWebServiceResult& result); AWS_PRIVATENETWORKS_API GetNetworkResourceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the network resource.

*/ inline const NetworkResource& GetNetworkResource() const{ return m_networkResource; } /** *

Information about the network resource.

*/ inline void SetNetworkResource(const NetworkResource& value) { m_networkResource = value; } /** *

Information about the network resource.

*/ inline void SetNetworkResource(NetworkResource&& value) { m_networkResource = std::move(value); } /** *

Information about the network resource.

*/ inline GetNetworkResourceResult& WithNetworkResource(const NetworkResource& value) { SetNetworkResource(value); return *this;} /** *

Information about the network resource.

*/ inline GetNetworkResourceResult& WithNetworkResource(NetworkResource&& value) { SetNetworkResource(std::move(value)); return *this;} /** *

The network resource tags.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The network resource tags.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

The network resource tags.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

The network resource tags.

*/ inline GetNetworkResourceResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The network resource tags.

*/ inline GetNetworkResourceResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The network resource tags.

*/ inline GetNetworkResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

The network resource tags.

*/ inline GetNetworkResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The network resource tags.

*/ inline GetNetworkResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The network resource tags.

*/ inline GetNetworkResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The network resource tags.

*/ inline GetNetworkResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The network resource tags.

*/ inline GetNetworkResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The network resource tags.

*/ inline GetNetworkResourceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetNetworkResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetNetworkResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetNetworkResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: NetworkResource m_networkResource; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace PrivateNetworks } // namespace Aws