AWS SDK for C++  0.14.3
AWS SDK for C++
RestApi.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace APIGateway
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  RestApi();
42  RestApi(const Aws::Utils::Json::JsonValue& jsonValue);
43  RestApi& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
56  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 
62  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
63 
68  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
69 
74  inline RestApi& WithId(const Aws::String& value) { SetId(value); return *this;}
75 
80  inline RestApi& WithId(Aws::String&& value) { SetId(value); return *this;}
81 
86  inline RestApi& WithId(const char* value) { SetId(value); return *this;}
87 
91  inline const Aws::String& GetName() const{ return m_name; }
92 
96  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
97 
101  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
102 
106  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
107 
111  inline RestApi& WithName(const Aws::String& value) { SetName(value); return *this;}
112 
116  inline RestApi& WithName(Aws::String&& value) { SetName(value); return *this;}
117 
121  inline RestApi& WithName(const char* value) { SetName(value); return *this;}
122 
126  inline const Aws::String& GetDescription() const{ return m_description; }
127 
131  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
132 
136  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
137 
141  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
142 
146  inline RestApi& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
147 
151  inline RestApi& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
152 
156  inline RestApi& WithDescription(const char* value) { SetDescription(value); return *this;}
157 
163  inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
164 
170  inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
171 
177  inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
178 
184  inline RestApi& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
185 
191  inline RestApi& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(value); return *this;}
192 
193 
194  inline const Aws::Vector<Aws::String>& GetWarnings() const{ return m_warnings; }
195 
196 
197  inline void SetWarnings(const Aws::Vector<Aws::String>& value) { m_warningsHasBeenSet = true; m_warnings = value; }
198 
199 
200  inline void SetWarnings(Aws::Vector<Aws::String>&& value) { m_warningsHasBeenSet = true; m_warnings = value; }
201 
202 
203  inline RestApi& WithWarnings(const Aws::Vector<Aws::String>& value) { SetWarnings(value); return *this;}
204 
205 
206  inline RestApi& WithWarnings(Aws::Vector<Aws::String>&& value) { SetWarnings(value); return *this;}
207 
208 
209  inline RestApi& AddWarnings(const Aws::String& value) { m_warningsHasBeenSet = true; m_warnings.push_back(value); return *this; }
210 
211 
212  inline RestApi& AddWarnings(Aws::String&& value) { m_warningsHasBeenSet = true; m_warnings.push_back(value); return *this; }
213 
214 
215  inline RestApi& AddWarnings(const char* value) { m_warningsHasBeenSet = true; m_warnings.push_back(value); return *this; }
216 
217  private:
218  Aws::String m_id;
219  bool m_idHasBeenSet;
220  Aws::String m_name;
221  bool m_nameHasBeenSet;
222  Aws::String m_description;
223  bool m_descriptionHasBeenSet;
224  Aws::Utils::DateTime m_createdDate;
225  bool m_createdDateHasBeenSet;
226  Aws::Vector<Aws::String> m_warnings;
227  bool m_warningsHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace APIGateway
232 } // namespace Aws
void SetCreatedDate(const Aws::Utils::DateTime &value)
Definition: RestApi.h:170
void SetDescription(const Aws::String &value)
Definition: RestApi.h:131
void SetId(const Aws::String &value)
Definition: RestApi.h:56
void SetCreatedDate(Aws::Utils::DateTime &&value)
Definition: RestApi.h:177
RestApi & WithName(Aws::String &&value)
Definition: RestApi.h:116
void SetName(const Aws::String &value)
Definition: RestApi.h:96
void SetName(const char *value)
Definition: RestApi.h:106
void SetId(Aws::String &&value)
Definition: RestApi.h:62
RestApi & AddWarnings(const char *value)
Definition: RestApi.h:215
const Aws::String & GetDescription() const
Definition: RestApi.h:126
RestApi & WithDescription(const Aws::String &value)
Definition: RestApi.h:146
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
RestApi & WithCreatedDate(Aws::Utils::DateTime &&value)
Definition: RestApi.h:191
void SetId(const char *value)
Definition: RestApi.h:68
RestApi & WithName(const char *value)
Definition: RestApi.h:121
RestApi & WithId(Aws::String &&value)
Definition: RestApi.h:80
const Aws::String & GetName() const
Definition: RestApi.h:91
RestApi & WithDescription(const char *value)
Definition: RestApi.h:156
RestApi & WithCreatedDate(const Aws::Utils::DateTime &value)
Definition: RestApi.h:184
const Aws::String & GetId() const
Definition: RestApi.h:50
const Aws::Vector< Aws::String > & GetWarnings() const
Definition: RestApi.h:194
RestApi & WithWarnings(Aws::Vector< Aws::String > &&value)
Definition: RestApi.h:206
void SetDescription(const char *value)
Definition: RestApi.h:141
RestApi & WithId(const char *value)
Definition: RestApi.h:86
RestApi & WithId(const Aws::String &value)
Definition: RestApi.h:74
void SetWarnings(const Aws::Vector< Aws::String > &value)
Definition: RestApi.h:197
RestApi & AddWarnings(const Aws::String &value)
Definition: RestApi.h:209
void SetWarnings(Aws::Vector< Aws::String > &&value)
Definition: RestApi.h:200
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetName(Aws::String &&value)
Definition: RestApi.h:101
RestApi & AddWarnings(Aws::String &&value)
Definition: RestApi.h:212
#define AWS_APIGATEWAY_API
RestApi & WithDescription(Aws::String &&value)
Definition: RestApi.h:151
RestApi & WithName(const Aws::String &value)
Definition: RestApi.h:111
const Aws::Utils::DateTime & GetCreatedDate() const
Definition: RestApi.h:163
void SetDescription(Aws::String &&value)
Definition: RestApi.h:136
RestApi & WithWarnings(const Aws::Vector< Aws::String > &value)
Definition: RestApi.h:203
JSON (JavaScript Object Notation).