AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace APIGateway
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_APIGATEWAY_API UsagePlanKey();
36 AWS_APIGATEWAY_API UsagePlanKey(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APIGATEWAY_API UsagePlanKey& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetId() const{ return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
48 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
49 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
50 inline UsagePlanKey& WithId(const Aws::String& value) { SetId(value); return *this;}
51 inline UsagePlanKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
52 inline UsagePlanKey& WithId(const char* value) { SetId(value); return *this;}
54
56
60 inline const Aws::String& GetType() const{ return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
63 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
64 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
65 inline UsagePlanKey& WithType(const Aws::String& value) { SetType(value); return *this;}
66 inline UsagePlanKey& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
67 inline UsagePlanKey& WithType(const char* value) { SetType(value); return *this;}
69
71
74 inline const Aws::String& GetValue() const{ return m_value; }
75 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
76 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
77 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
78 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
79 inline UsagePlanKey& WithValue(const Aws::String& value) { SetValue(value); return *this;}
80 inline UsagePlanKey& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
81 inline UsagePlanKey& WithValue(const char* value) { SetValue(value); return *this;}
83
85
88 inline const Aws::String& GetName() const{ return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
92 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
93 inline UsagePlanKey& WithName(const Aws::String& value) { SetName(value); return *this;}
94 inline UsagePlanKey& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 inline UsagePlanKey& WithName(const char* value) { SetName(value); return *this;}
97
99
100 inline const Aws::String& GetRequestId() const{ return m_requestId; }
101 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
102 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
103 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
104 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
105 inline UsagePlanKey& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
106 inline UsagePlanKey& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
107 inline UsagePlanKey& WithRequestId(const char* value) { SetRequestId(value); return *this;}
109 private:
110
111 Aws::String m_id;
112 bool m_idHasBeenSet = false;
113
114 Aws::String m_type;
115 bool m_typeHasBeenSet = false;
116
117 Aws::String m_value;
118 bool m_valueHasBeenSet = false;
119
120 Aws::String m_name;
121 bool m_nameHasBeenSet = false;
122
123 Aws::String m_requestId;
124 bool m_requestIdHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace APIGateway
129} // namespace Aws
UsagePlanKey & WithType(Aws::String &&value)
AWS_APIGATEWAY_API UsagePlanKey(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
void SetId(const char *value)
UsagePlanKey & WithRequestId(const Aws::String &value)
void SetValue(const Aws::String &value)
void SetRequestId(const char *value)
UsagePlanKey & WithRequestId(const char *value)
void SetRequestId(const Aws::String &value)
UsagePlanKey & WithType(const char *value)
UsagePlanKey & WithName(const char *value)
UsagePlanKey & WithId(Aws::String &&value)
AWS_APIGATEWAY_API UsagePlanKey & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
UsagePlanKey & WithName(Aws::String &&value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRequestId() const
UsagePlanKey & WithValue(const char *value)
UsagePlanKey & WithName(const Aws::String &value)
UsagePlanKey & WithValue(const Aws::String &value)
void SetType(const char *value)
void SetRequestId(Aws::String &&value)
void SetType(const Aws::String &value)
void SetName(const char *value)
UsagePlanKey & WithId(const char *value)
void SetId(const Aws::String &value)
const Aws::String & GetType() const
UsagePlanKey & WithValue(Aws::String &&value)
void SetValue(Aws::String &&value)
UsagePlanKey & WithType(const Aws::String &value)
void SetId(Aws::String &&value)
const Aws::String & GetName() const
const Aws::String & GetValue() const
UsagePlanKey & WithRequestId(Aws::String &&value)
void SetValue(const char *value)
void SetName(const Aws::String &value)
void SetType(Aws::String &&value)
UsagePlanKey & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue