AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Alias.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/model/RoutingStrategy.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GameLift
24{
25namespace Model
26{
27
36 class Alias
37 {
38 public:
39 AWS_GAMELIFT_API Alias();
40 AWS_GAMELIFT_API Alias(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GAMELIFT_API Alias& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAliasId() const{ return m_aliasId; }
50 inline bool AliasIdHasBeenSet() const { return m_aliasIdHasBeenSet; }
51 inline void SetAliasId(const Aws::String& value) { m_aliasIdHasBeenSet = true; m_aliasId = value; }
52 inline void SetAliasId(Aws::String&& value) { m_aliasIdHasBeenSet = true; m_aliasId = std::move(value); }
53 inline void SetAliasId(const char* value) { m_aliasIdHasBeenSet = true; m_aliasId.assign(value); }
54 inline Alias& WithAliasId(const Aws::String& value) { SetAliasId(value); return *this;}
55 inline Alias& WithAliasId(Aws::String&& value) { SetAliasId(std::move(value)); return *this;}
56 inline Alias& WithAliasId(const char* value) { SetAliasId(value); return *this;}
58
60
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline Alias& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline Alias& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline Alias& WithName(const char* value) { SetName(value); return *this;}
73
75
83 inline const Aws::String& GetAliasArn() const{ return m_aliasArn; }
84 inline bool AliasArnHasBeenSet() const { return m_aliasArnHasBeenSet; }
85 inline void SetAliasArn(const Aws::String& value) { m_aliasArnHasBeenSet = true; m_aliasArn = value; }
86 inline void SetAliasArn(Aws::String&& value) { m_aliasArnHasBeenSet = true; m_aliasArn = std::move(value); }
87 inline void SetAliasArn(const char* value) { m_aliasArnHasBeenSet = true; m_aliasArn.assign(value); }
88 inline Alias& WithAliasArn(const Aws::String& value) { SetAliasArn(value); return *this;}
89 inline Alias& WithAliasArn(Aws::String&& value) { SetAliasArn(std::move(value)); return *this;}
90 inline Alias& WithAliasArn(const char* value) { SetAliasArn(value); return *this;}
92
94
97 inline const Aws::String& GetDescription() const{ return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
100 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
101 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
102 inline Alias& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
103 inline Alias& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
104 inline Alias& WithDescription(const char* value) { SetDescription(value); return *this;}
106
108
112 inline const RoutingStrategy& GetRoutingStrategy() const{ return m_routingStrategy; }
113 inline bool RoutingStrategyHasBeenSet() const { return m_routingStrategyHasBeenSet; }
114 inline void SetRoutingStrategy(const RoutingStrategy& value) { m_routingStrategyHasBeenSet = true; m_routingStrategy = value; }
115 inline void SetRoutingStrategy(RoutingStrategy&& value) { m_routingStrategyHasBeenSet = true; m_routingStrategy = std::move(value); }
116 inline Alias& WithRoutingStrategy(const RoutingStrategy& value) { SetRoutingStrategy(value); return *this;}
117 inline Alias& WithRoutingStrategy(RoutingStrategy&& value) { SetRoutingStrategy(std::move(value)); return *this;}
119
121
126 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
127 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
128 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
129 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
130 inline Alias& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
131 inline Alias& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
133
135
140 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
141 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
142 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
143 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
144 inline Alias& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
145 inline Alias& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
147 private:
148
149 Aws::String m_aliasId;
150 bool m_aliasIdHasBeenSet = false;
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
155 Aws::String m_aliasArn;
156 bool m_aliasArnHasBeenSet = false;
157
158 Aws::String m_description;
159 bool m_descriptionHasBeenSet = false;
160
161 RoutingStrategy m_routingStrategy;
162 bool m_routingStrategyHasBeenSet = false;
163
164 Aws::Utils::DateTime m_creationTime;
165 bool m_creationTimeHasBeenSet = false;
166
167 Aws::Utils::DateTime m_lastUpdatedTime;
168 bool m_lastUpdatedTimeHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace GameLift
173} // namespace Aws
Alias & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Alias.h:145
bool LastUpdatedTimeHasBeenSet() const
Definition Alias.h:141
const Aws::Utils::DateTime & GetCreationTime() const
Definition Alias.h:126
bool NameHasBeenSet() const
Definition Alias.h:65
Alias & WithAliasArn(const char *value)
Definition Alias.h:90
const Aws::String & GetAliasId() const
Definition Alias.h:49
bool DescriptionHasBeenSet() const
Definition Alias.h:98
void SetName(const Aws::String &value)
Definition Alias.h:66
Alias & WithAliasArn(Aws::String &&value)
Definition Alias.h:89
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Alias.h:129
void SetDescription(Aws::String &&value)
Definition Alias.h:100
Alias & WithAliasId(const Aws::String &value)
Definition Alias.h:54
void SetName(const char *value)
Definition Alias.h:68
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Alias.h:140
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Alias.h:128
AWS_GAMELIFT_API Alias(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(const Aws::String &value)
Definition Alias.h:99
const Aws::String & GetAliasArn() const
Definition Alias.h:83
Alias & WithAliasId(Aws::String &&value)
Definition Alias.h:55
AWS_GAMELIFT_API Alias & operator=(Aws::Utils::Json::JsonView jsonValue)
Alias & WithAliasId(const char *value)
Definition Alias.h:56
AWS_GAMELIFT_API Alias()
const RoutingStrategy & GetRoutingStrategy() const
Definition Alias.h:112
void SetAliasArn(const char *value)
Definition Alias.h:87
Alias & WithName(const Aws::String &value)
Definition Alias.h:69
void SetName(Aws::String &&value)
Definition Alias.h:67
Alias & WithName(const char *value)
Definition Alias.h:71
Alias & WithRoutingStrategy(RoutingStrategy &&value)
Definition Alias.h:117
Alias & WithAliasArn(const Aws::String &value)
Definition Alias.h:88
Alias & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Alias.h:131
const Aws::String & GetDescription() const
Definition Alias.h:97
Alias & WithDescription(Aws::String &&value)
Definition Alias.h:103
Alias & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Alias.h:144
bool RoutingStrategyHasBeenSet() const
Definition Alias.h:113
void SetAliasId(const Aws::String &value)
Definition Alias.h:51
void SetAliasArn(const Aws::String &value)
Definition Alias.h:85
void SetRoutingStrategy(const RoutingStrategy &value)
Definition Alias.h:114
Alias & WithName(Aws::String &&value)
Definition Alias.h:70
const Aws::String & GetName() const
Definition Alias.h:64
void SetAliasArn(Aws::String &&value)
Definition Alias.h:86
Alias & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Alias.h:130
void SetAliasId(Aws::String &&value)
Definition Alias.h:52
Alias & WithDescription(const Aws::String &value)
Definition Alias.h:102
bool AliasIdHasBeenSet() const
Definition Alias.h:50
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
Alias & WithRoutingStrategy(const RoutingStrategy &value)
Definition Alias.h:116
void SetDescription(const char *value)
Definition Alias.h:101
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Alias.h:142
Alias & WithDescription(const char *value)
Definition Alias.h:104
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Alias.h:143
bool AliasArnHasBeenSet() const
Definition Alias.h:84
void SetAliasId(const char *value)
Definition Alias.h:53
bool CreationTimeHasBeenSet() const
Definition Alias.h:127
void SetRoutingStrategy(RoutingStrategy &&value)
Definition Alias.h:115
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue