/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a usage plan key to identify a plan customer. To associate an API stage with a selected API key in a usage
* plan, you must create a UsagePlanKey resource to represent the selected
* ApiKey.See Also:
AWS
* API Reference
The Id of a usage plan key.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The Id of a usage plan key.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The Id of a usage plan key.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The Id of a usage plan key.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The Id of a usage plan key.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The Id of a usage plan key.
*/ inline UsagePlanKey& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The Id of a usage plan key.
*/ inline UsagePlanKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The Id of a usage plan key.
*/ inline UsagePlanKey& WithId(const char* value) { SetId(value); return *this;} /** *The type of a usage plan key. Currently, the valid key type is
* API_KEY.
The type of a usage plan key. Currently, the valid key type is
* API_KEY.
The type of a usage plan key. Currently, the valid key type is
* API_KEY.
The type of a usage plan key. Currently, the valid key type is
* API_KEY.
The type of a usage plan key. Currently, the valid key type is
* API_KEY.
The type of a usage plan key. Currently, the valid key type is
* API_KEY.
The type of a usage plan key. Currently, the valid key type is
* API_KEY.
The type of a usage plan key. Currently, the valid key type is
* API_KEY.
The value of a usage plan key.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *The value of a usage plan key.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The value of a usage plan key.
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *The value of a usage plan key.
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The value of a usage plan key.
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *The value of a usage plan key.
*/ inline UsagePlanKey& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *The value of a usage plan key.
*/ inline UsagePlanKey& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *The value of a usage plan key.
*/ inline UsagePlanKey& WithValue(const char* value) { SetValue(value); return *this;} /** *The name of a usage plan key.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of a usage plan key.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of a usage plan key.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of a usage plan key.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of a usage plan key.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of a usage plan key.
*/ inline UsagePlanKey& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of a usage plan key.
*/ inline UsagePlanKey& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of a usage plan key.
*/ inline UsagePlanKey& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet; Aws::String m_type; bool m_typeHasBeenSet; Aws::String m_value; bool m_valueHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; }; } // namespace Model } // namespace APIGateway } // namespace Aws