/** * 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 LocationService { namespace Model { /** */ class DescribeKeyRequest : public LocationServiceRequest { public: AWS_LOCATIONSERVICE_API DescribeKeyRequest(); // 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 "DescribeKey"; } AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override; /** *

The name of the API key resource.

*/ inline const Aws::String& GetKeyName() const{ return m_keyName; } /** *

The name of the API key resource.

*/ inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; } /** *

The name of the API key resource.

*/ inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; } /** *

The name of the API key resource.

*/ inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); } /** *

The name of the API key resource.

*/ inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); } /** *

The name of the API key resource.

*/ inline DescribeKeyRequest& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *

The name of the API key resource.

*/ inline DescribeKeyRequest& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} /** *

The name of the API key resource.

*/ inline DescribeKeyRequest& WithKeyName(const char* value) { SetKeyName(value); return *this;} private: Aws::String m_keyName; bool m_keyNameHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws