AWS SDK for C++  0.14.3
AWS SDK for C++
ImportRestApiResult.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 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace APIGateway
34 {
35 namespace Model
36 {
41  {
42  public:
46 
51  inline const Aws::String& GetId() const{ return m_id; }
52 
57  inline void SetId(const Aws::String& value) { m_id = value; }
58 
63  inline void SetId(Aws::String&& value) { m_id = value; }
64 
69  inline void SetId(const char* value) { m_id.assign(value); }
70 
75  inline ImportRestApiResult& WithId(const Aws::String& value) { SetId(value); return *this;}
76 
81  inline ImportRestApiResult& WithId(Aws::String&& value) { SetId(value); return *this;}
82 
87  inline ImportRestApiResult& WithId(const char* value) { SetId(value); return *this;}
88 
92  inline const Aws::String& GetName() const{ return m_name; }
93 
97  inline void SetName(const Aws::String& value) { m_name = value; }
98 
102  inline void SetName(Aws::String&& value) { m_name = value; }
103 
107  inline void SetName(const char* value) { m_name.assign(value); }
108 
112  inline ImportRestApiResult& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
117  inline ImportRestApiResult& WithName(Aws::String&& value) { SetName(value); return *this;}
118 
122  inline ImportRestApiResult& WithName(const char* value) { SetName(value); return *this;}
123 
127  inline const Aws::String& GetDescription() const{ return m_description; }
128 
132  inline void SetDescription(const Aws::String& value) { m_description = value; }
133 
137  inline void SetDescription(Aws::String&& value) { m_description = value; }
138 
142  inline void SetDescription(const char* value) { m_description.assign(value); }
143 
147  inline ImportRestApiResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
148 
152  inline ImportRestApiResult& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
153 
157  inline ImportRestApiResult& WithDescription(const char* value) { SetDescription(value); return *this;}
158 
164  inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
165 
171  inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
172 
178  inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = value; }
179 
185  inline ImportRestApiResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
186 
192  inline ImportRestApiResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(value); return *this;}
193 
194 
195  inline const Aws::Vector<Aws::String>& GetWarnings() const{ return m_warnings; }
196 
197 
198  inline void SetWarnings(const Aws::Vector<Aws::String>& value) { m_warnings = value; }
199 
200 
201  inline void SetWarnings(Aws::Vector<Aws::String>&& value) { m_warnings = value; }
202 
203 
204  inline ImportRestApiResult& WithWarnings(const Aws::Vector<Aws::String>& value) { SetWarnings(value); return *this;}
205 
206 
207  inline ImportRestApiResult& WithWarnings(Aws::Vector<Aws::String>&& value) { SetWarnings(value); return *this;}
208 
209 
210  inline ImportRestApiResult& AddWarnings(const Aws::String& value) { m_warnings.push_back(value); return *this; }
211 
212 
213  inline ImportRestApiResult& AddWarnings(Aws::String&& value) { m_warnings.push_back(value); return *this; }
214 
215 
216  inline ImportRestApiResult& AddWarnings(const char* value) { m_warnings.push_back(value); return *this; }
217 
218  private:
219  Aws::String m_id;
220  Aws::String m_name;
221  Aws::String m_description;
222  Aws::Utils::DateTime m_createdDate;
223  Aws::Vector<Aws::String> m_warnings;
224  };
225 
226 } // namespace Model
227 } // namespace APIGateway
228 } // namespace Aws
void SetCreatedDate(const Aws::Utils::DateTime &value)
ImportRestApiResult & WithCreatedDate(Aws::Utils::DateTime &&value)
void SetWarnings(Aws::Vector< Aws::String > &&value)
ImportRestApiResult & WithName(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetDescription(const Aws::String &value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
ImportRestApiResult & WithCreatedDate(const Aws::Utils::DateTime &value)
ImportRestApiResult & WithName(const Aws::String &value)
ImportRestApiResult & WithId(Aws::String &&value)
ImportRestApiResult & WithDescription(const Aws::String &value)
ImportRestApiResult & WithId(const char *value)
ImportRestApiResult & AddWarnings(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
ImportRestApiResult & AddWarnings(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< Aws::String > & GetWarnings() const
ImportRestApiResult & AddWarnings(const Aws::String &value)
ImportRestApiResult & WithDescription(Aws::String &&value)
#define AWS_APIGATEWAY_API
ImportRestApiResult & WithId(const Aws::String &value)
void SetWarnings(const Aws::Vector< Aws::String > &value)
ImportRestApiResult & WithDescription(const char *value)
ImportRestApiResult & WithWarnings(Aws::Vector< Aws::String > &&value)
ImportRestApiResult & WithWarnings(const Aws::Vector< Aws::String > &value)
ImportRestApiResult & WithName(const char *value)
JSON (JavaScript Object Notation).