130 lines
5.2 KiB
C++
130 lines
5.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/apigateway/APIGateway_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace APIGateway
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Represents a usage plan key to identify a plan customer.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/UsagePlanKey">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class UsagePlanKey
|
|
{
|
|
public:
|
|
AWS_APIGATEWAY_API UsagePlanKey();
|
|
AWS_APIGATEWAY_API UsagePlanKey(Aws::Utils::Json::JsonView jsonValue);
|
|
AWS_APIGATEWAY_API UsagePlanKey& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
///@{
|
|
/**
|
|
* <p>The Id of a usage plan key.</p>
|
|
*/
|
|
inline const Aws::String& GetId() const{ return m_id; }
|
|
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
|
|
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
|
|
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
|
|
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
|
|
inline UsagePlanKey& WithId(const Aws::String& value) { SetId(value); return *this;}
|
|
inline UsagePlanKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
|
|
inline UsagePlanKey& WithId(const char* value) { SetId(value); return *this;}
|
|
///@}
|
|
|
|
///@{
|
|
/**
|
|
* <p>The type of a usage plan key. Currently, the valid key type is
|
|
* <code>API_KEY</code>.</p>
|
|
*/
|
|
inline const Aws::String& GetType() const{ return m_type; }
|
|
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
|
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
|
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
|
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
|
inline UsagePlanKey& WithType(const Aws::String& value) { SetType(value); return *this;}
|
|
inline UsagePlanKey& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
|
inline UsagePlanKey& WithType(const char* value) { SetType(value); return *this;}
|
|
///@}
|
|
|
|
///@{
|
|
/**
|
|
* <p>The value of a usage plan key.</p>
|
|
*/
|
|
inline const Aws::String& GetValue() const{ return m_value; }
|
|
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
|
|
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
|
|
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
|
|
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
|
|
inline UsagePlanKey& WithValue(const Aws::String& value) { SetValue(value); return *this;}
|
|
inline UsagePlanKey& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
|
|
inline UsagePlanKey& WithValue(const char* value) { SetValue(value); return *this;}
|
|
///@}
|
|
|
|
///@{
|
|
/**
|
|
* <p>The name of a usage plan key.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
inline UsagePlanKey& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
inline UsagePlanKey& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
inline UsagePlanKey& WithName(const char* value) { SetName(value); return *this;}
|
|
///@}
|
|
|
|
///@{
|
|
|
|
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
|
inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
|
|
inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
|
|
inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
|
|
inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
|
|
inline UsagePlanKey& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
|
inline UsagePlanKey& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
|
inline UsagePlanKey& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
|
///@}
|
|
private:
|
|
|
|
Aws::String m_id;
|
|
bool m_idHasBeenSet = false;
|
|
|
|
Aws::String m_type;
|
|
bool m_typeHasBeenSet = false;
|
|
|
|
Aws::String m_value;
|
|
bool m_valueHasBeenSet = false;
|
|
|
|
Aws::String m_name;
|
|
bool m_nameHasBeenSet = false;
|
|
|
|
Aws::String m_requestId;
|
|
bool m_requestIdHasBeenSet = false;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace APIGateway
|
|
} // namespace Aws
|