AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
UsagePlanKey.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace APIGateway {
20namespace Model {
21
29 public:
30 AWS_APIGATEWAY_API UsagePlanKey() = default;
31 AWS_APIGATEWAY_API UsagePlanKey(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIGATEWAY_API UsagePlanKey& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 UsagePlanKey& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 template <typename TypeT = Aws::String>
61 void SetType(TypeT&& value) {
62 m_typeHasBeenSet = true;
63 m_type = std::forward<TypeT>(value);
64 }
65 template <typename TypeT = Aws::String>
66 UsagePlanKey& WithType(TypeT&& value) {
67 SetType(std::forward<TypeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetValue() const { return m_value; }
77 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
78 template <typename ValueT = Aws::String>
79 void SetValue(ValueT&& value) {
80 m_valueHasBeenSet = true;
81 m_value = std::forward<ValueT>(value);
82 }
83 template <typename ValueT = Aws::String>
84 UsagePlanKey& WithValue(ValueT&& value) {
85 SetValue(std::forward<ValueT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetName() const { return m_name; }
95 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 template <typename NameT = Aws::String>
97 void SetName(NameT&& value) {
98 m_nameHasBeenSet = true;
99 m_name = std::forward<NameT>(value);
100 }
101 template <typename NameT = Aws::String>
102 UsagePlanKey& WithName(NameT&& value) {
103 SetName(std::forward<NameT>(value));
104 return *this;
105 }
107
109
110 inline const Aws::String& GetRequestId() const { return m_requestId; }
111 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
112 template <typename RequestIdT = Aws::String>
113 void SetRequestId(RequestIdT&& value) {
114 m_requestIdHasBeenSet = true;
115 m_requestId = std::forward<RequestIdT>(value);
116 }
117 template <typename RequestIdT = Aws::String>
118 UsagePlanKey& WithRequestId(RequestIdT&& value) {
119 SetRequestId(std::forward<RequestIdT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_id;
125
126 Aws::String m_type;
127
128 Aws::String m_value;
129
130 Aws::String m_name;
131
132 Aws::String m_requestId;
133 bool m_idHasBeenSet = false;
134 bool m_typeHasBeenSet = false;
135 bool m_valueHasBeenSet = false;
136 bool m_nameHasBeenSet = false;
137 bool m_requestIdHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace APIGateway
142} // namespace Aws
AWS_APIGATEWAY_API UsagePlanKey(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
UsagePlanKey & WithRequestId(RequestIdT &&value)
UsagePlanKey & WithId(IdT &&value)
UsagePlanKey & WithValue(ValueT &&value)
AWS_APIGATEWAY_API UsagePlanKey & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRequestId() const
UsagePlanKey & WithName(NameT &&value)
AWS_APIGATEWAY_API UsagePlanKey()=default
UsagePlanKey & WithType(TypeT &&value)
const Aws::String & GetType() const
const Aws::String & GetName() const
const Aws::String & GetValue() const
void SetRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue