AWS SDK for C++  0.14.3
AWS SDK for C++
Deployment.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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace APIGateway
32 {
33 namespace Model
34 {
35 
42  {
43  public:
44  Deployment();
45  Deployment(const Aws::Utils::Json::JsonValue& jsonValue);
46  Deployment& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
52  inline const Aws::String& GetId() const{ return m_id; }
53 
57  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
58 
62  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
63 
67  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 
72  inline Deployment& WithId(const Aws::String& value) { SetId(value); return *this;}
73 
77  inline Deployment& WithId(Aws::String&& value) { SetId(value); return *this;}
78 
82  inline Deployment& WithId(const char* value) { SetId(value); return *this;}
83 
87  inline const Aws::String& GetDescription() const{ return m_description; }
88 
92  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 
97  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
98 
102  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 
107  inline Deployment& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 
112  inline Deployment& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
113 
117  inline Deployment& WithDescription(const char* value) { SetDescription(value); return *this;}
118 
122  inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
123 
127  inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
128 
132  inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
133 
137  inline Deployment& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
138 
142  inline Deployment& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(value); return *this;}
143 
148  inline const Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>& GetApiSummary() const{ return m_apiSummary; }
149 
154  inline void SetApiSummary(const Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>& value) { m_apiSummaryHasBeenSet = true; m_apiSummary = value; }
155 
160  inline void SetApiSummary(Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>&& value) { m_apiSummaryHasBeenSet = true; m_apiSummary = value; }
161 
166  inline Deployment& WithApiSummary(const Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>& value) { SetApiSummary(value); return *this;}
167 
172  inline Deployment& WithApiSummary(Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>&& value) { SetApiSummary(value); return *this;}
173 
178  inline Deployment& AddApiSummary(const Aws::String& key, const Aws::Map<Aws::String, MethodSnapshot>& value) { m_apiSummaryHasBeenSet = true; m_apiSummary[key] = value; return *this; }
179 
184  inline Deployment& AddApiSummary(Aws::String&& key, const Aws::Map<Aws::String, MethodSnapshot>& value) { m_apiSummaryHasBeenSet = true; m_apiSummary[key] = value; return *this; }
185 
190  inline Deployment& AddApiSummary(const Aws::String& key, Aws::Map<Aws::String, MethodSnapshot>&& value) { m_apiSummaryHasBeenSet = true; m_apiSummary[key] = value; return *this; }
191 
196  inline Deployment& AddApiSummary(Aws::String&& key, Aws::Map<Aws::String, MethodSnapshot>&& value) { m_apiSummaryHasBeenSet = true; m_apiSummary[key] = value; return *this; }
197 
202  inline Deployment& AddApiSummary(const char* key, Aws::Map<Aws::String, MethodSnapshot>&& value) { m_apiSummaryHasBeenSet = true; m_apiSummary[key] = value; return *this; }
203 
208  inline Deployment& AddApiSummary(const char* key, const Aws::Map<Aws::String, MethodSnapshot>& value) { m_apiSummaryHasBeenSet = true; m_apiSummary[key] = value; return *this; }
209 
210  private:
211  Aws::String m_id;
212  bool m_idHasBeenSet;
213  Aws::String m_description;
214  bool m_descriptionHasBeenSet;
215  Aws::Utils::DateTime m_createdDate;
216  bool m_createdDateHasBeenSet;
218  bool m_apiSummaryHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace APIGateway
223 } // namespace Aws
const Aws::String & GetDescription() const
Definition: Deployment.h:87
Deployment & WithCreatedDate(const Aws::Utils::DateTime &value)
Definition: Deployment.h:137
Deployment & WithApiSummary(Aws::Map< Aws::String, Aws::Map< Aws::String, MethodSnapshot >> &&value)
Definition: Deployment.h:172
Deployment & WithId(Aws::String &&value)
Definition: Deployment.h:77
Deployment & WithDescription(Aws::String &&value)
Definition: Deployment.h:112
void SetDescription(Aws::String &&value)
Definition: Deployment.h:97
Deployment & AddApiSummary(Aws::String &&key, const Aws::Map< Aws::String, MethodSnapshot > &value)
Definition: Deployment.h:184
void SetId(const char *value)
Definition: Deployment.h:67
Deployment & AddApiSummary(const char *key, Aws::Map< Aws::String, MethodSnapshot > &&value)
Definition: Deployment.h:202
Deployment & WithId(const char *value)
Definition: Deployment.h:82
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
Deployment & WithDescription(const Aws::String &value)
Definition: Deployment.h:107
Deployment & AddApiSummary(Aws::String &&key, Aws::Map< Aws::String, MethodSnapshot > &&value)
Definition: Deployment.h:196
Deployment & AddApiSummary(const Aws::String &key, const Aws::Map< Aws::String, MethodSnapshot > &value)
Definition: Deployment.h:178
Deployment & AddApiSummary(const Aws::String &key, Aws::Map< Aws::String, MethodSnapshot > &&value)
Definition: Deployment.h:190
void SetApiSummary(Aws::Map< Aws::String, Aws::Map< Aws::String, MethodSnapshot >> &&value)
Definition: Deployment.h:160
void SetId(const Aws::String &value)
Definition: Deployment.h:57
void SetApiSummary(const Aws::Map< Aws::String, Aws::Map< Aws::String, MethodSnapshot >> &value)
Definition: Deployment.h:154
Deployment & WithId(const Aws::String &value)
Definition: Deployment.h:72
Deployment & WithCreatedDate(Aws::Utils::DateTime &&value)
Definition: Deployment.h:142
Deployment & WithDescription(const char *value)
Definition: Deployment.h:117
const Aws::Utils::DateTime & GetCreatedDate() const
Definition: Deployment.h:122
Deployment & WithApiSummary(const Aws::Map< Aws::String, Aws::Map< Aws::String, MethodSnapshot >> &value)
Definition: Deployment.h:166
const Aws::String & GetId() const
Definition: Deployment.h:52
void SetDescription(const Aws::String &value)
Definition: Deployment.h:92
void SetDescription(const char *value)
Definition: Deployment.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
const Aws::Map< Aws::String, Aws::Map< Aws::String, MethodSnapshot > > & GetApiSummary() const
Definition: Deployment.h:148
void SetCreatedDate(Aws::Utils::DateTime &&value)
Definition: Deployment.h:132
void SetId(Aws::String &&value)
Definition: Deployment.h:62
void SetCreatedDate(const Aws::Utils::DateTime &value)
Definition: Deployment.h:127
Deployment & AddApiSummary(const char *key, const Aws::Map< Aws::String, MethodSnapshot > &value)
Definition: Deployment.h:208
JSON (JavaScript Object Notation).