AWS SDK for C++  0.12.9
AWS SDK for C++
Alias.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 GameLift
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  Alias();
42  Alias(const Aws::Utils::Json::JsonValue& jsonValue);
43  Alias& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetAliasId() const{ return m_aliasId; }
50 
54  inline void SetAliasId(const Aws::String& value) { m_aliasIdHasBeenSet = true; m_aliasId = value; }
55 
59  inline void SetAliasId(Aws::String&& value) { m_aliasIdHasBeenSet = true; m_aliasId = value; }
60 
64  inline void SetAliasId(const char* value) { m_aliasIdHasBeenSet = true; m_aliasId.assign(value); }
65 
69  inline Alias& WithAliasId(const Aws::String& value) { SetAliasId(value); return *this;}
70 
74  inline Alias& WithAliasId(Aws::String&& value) { SetAliasId(value); return *this;}
75 
79  inline Alias& WithAliasId(const char* value) { SetAliasId(value); return *this;}
80 
85  inline const Aws::String& GetName() const{ return m_name; }
86 
91  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 
97  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
98 
103  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
104 
109  inline Alias& WithName(const Aws::String& value) { SetName(value); return *this;}
110 
115  inline Alias& WithName(Aws::String&& value) { SetName(value); return *this;}
116 
121  inline Alias& 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 Alias& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
147 
151  inline Alias& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
152 
156  inline Alias& WithDescription(const char* value) { SetDescription(value); return *this;}
157 
158 
159  inline const RoutingStrategy& GetRoutingStrategy() const{ return m_routingStrategy; }
160 
161 
162  inline void SetRoutingStrategy(const RoutingStrategy& value) { m_routingStrategyHasBeenSet = true; m_routingStrategy = value; }
163 
164 
165  inline void SetRoutingStrategy(RoutingStrategy&& value) { m_routingStrategyHasBeenSet = true; m_routingStrategy = value; }
166 
167 
168  inline Alias& WithRoutingStrategy(const RoutingStrategy& value) { SetRoutingStrategy(value); return *this;}
169 
170 
171  inline Alias& WithRoutingStrategy(RoutingStrategy&& value) { SetRoutingStrategy(value); return *this;}
172 
177  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
178 
183  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
184 
189  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
190 
195  inline Alias& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
196 
201  inline Alias& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(value); return *this;}
202 
207  inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
208 
213  inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
214 
219  inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
220 
225  inline Alias& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
226 
231  inline Alias& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(value); return *this;}
232 
233  private:
234  Aws::String m_aliasId;
235  bool m_aliasIdHasBeenSet;
236  Aws::String m_name;
237  bool m_nameHasBeenSet;
238  Aws::String m_description;
239  bool m_descriptionHasBeenSet;
240  RoutingStrategy m_routingStrategy;
241  bool m_routingStrategyHasBeenSet;
242  Aws::Utils::DateTime m_creationTime;
243  bool m_creationTimeHasBeenSet;
244  Aws::Utils::DateTime m_lastUpdatedTime;
245  bool m_lastUpdatedTimeHasBeenSet;
246  };
247 
248 } // namespace Model
249 } // namespace GameLift
250 } // namespace Aws
Alias & WithDescription(const Aws::String &value)
Definition: Alias.h:146
Alias & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: Alias.h:195
void SetDescription(Aws::String &&value)
Definition: Alias.h:136
#define AWS_GAMELIFT_API
void SetName(Aws::String &&value)
Definition: Alias.h:97
Alias & WithName(Aws::String &&value)
Definition: Alias.h:115
Alias & WithDescription(Aws::String &&value)
Definition: Alias.h:151
void SetRoutingStrategy(const RoutingStrategy &value)
Definition: Alias.h:162
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition: Alias.h:219
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition: Alias.h:207
void SetAliasId(const char *value)
Definition: Alias.h:64
Alias & WithRoutingStrategy(RoutingStrategy &&value)
Definition: Alias.h:171
Alias & WithAliasId(const Aws::String &value)
Definition: Alias.h:69
const Aws::Utils::DateTime & GetCreationTime() const
Definition: Alias.h:177
void SetAliasId(const Aws::String &value)
Definition: Alias.h:54
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition: Alias.h:213
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: Alias.h:189
void SetDescription(const char *value)
Definition: Alias.h:141
Alias & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition: Alias.h:231
void SetAliasId(Aws::String &&value)
Definition: Alias.h:59
void SetName(const char *value)
Definition: Alias.h:103
Alias & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: Alias.h:201
const Aws::String & GetDescription() const
Definition: Alias.h:126
Alias & WithAliasId(const char *value)
Definition: Alias.h:79
const RoutingStrategy & GetRoutingStrategy() const
Definition: Alias.h:159
Alias & WithDescription(const char *value)
Definition: Alias.h:156
Alias & WithAliasId(Aws::String &&value)
Definition: Alias.h:74
void SetDescription(const Aws::String &value)
Definition: Alias.h:131
Alias & WithName(const char *value)
Definition: Alias.h:121
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: Alias.h:183
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetAliasId() const
Definition: Alias.h:49
Alias & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition: Alias.h:225
void SetName(const Aws::String &value)
Definition: Alias.h:91
const Aws::String & GetName() const
Definition: Alias.h:85
Alias & WithName(const Aws::String &value)
Definition: Alias.h:109
Alias & WithRoutingStrategy(const RoutingStrategy &value)
Definition: Alias.h:168
JSON (JavaScript Object Notation).
void SetRoutingStrategy(RoutingStrategy &&value)
Definition: Alias.h:165