/** * 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 PrivateNetworks { namespace Model { /** */ class GetNetworkResourceRequest : public PrivateNetworksRequest { public: AWS_PRIVATENETWORKS_API GetNetworkResourceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetNetworkResource"; } AWS_PRIVATENETWORKS_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) of the network resource.

*/ inline const Aws::String& GetNetworkResourceArn() const{ return m_networkResourceArn; } /** *

The Amazon Resource Name (ARN) of the network resource.

*/ inline bool NetworkResourceArnHasBeenSet() const { return m_networkResourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the network resource.

*/ inline void SetNetworkResourceArn(const Aws::String& value) { m_networkResourceArnHasBeenSet = true; m_networkResourceArn = value; } /** *

The Amazon Resource Name (ARN) of the network resource.

*/ inline void SetNetworkResourceArn(Aws::String&& value) { m_networkResourceArnHasBeenSet = true; m_networkResourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the network resource.

*/ inline void SetNetworkResourceArn(const char* value) { m_networkResourceArnHasBeenSet = true; m_networkResourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the network resource.

*/ inline GetNetworkResourceRequest& WithNetworkResourceArn(const Aws::String& value) { SetNetworkResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the network resource.

*/ inline GetNetworkResourceRequest& WithNetworkResourceArn(Aws::String&& value) { SetNetworkResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the network resource.

*/ inline GetNetworkResourceRequest& WithNetworkResourceArn(const char* value) { SetNetworkResourceArn(value); return *this;} private: Aws::String m_networkResourceArn; bool m_networkResourceArnHasBeenSet = false; }; } // namespace Model } // namespace PrivateNetworks } // namespace Aws