AWS SDK for C++  1.8.7
AWS SDK for C++
CreateAliasRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <aws/gamelift/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace GameLift
18 {
19 namespace Model
20 {
21 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreateAlias"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
42 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
59  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 
65  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 
71  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
72 
77  inline CreateAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
78 
83  inline CreateAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 
89  inline CreateAliasRequest& WithName(const char* value) { SetName(value); return *this;}
90 
91 
95  inline const Aws::String& GetDescription() const{ return m_description; }
96 
100  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 
105  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
106 
110  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
111 
115  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
116 
120  inline CreateAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
121 
125  inline CreateAliasRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
126 
130  inline CreateAliasRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
131 
132 
137  inline const RoutingStrategy& GetRoutingStrategy() const{ return m_routingStrategy; }
138 
143  inline bool RoutingStrategyHasBeenSet() const { return m_routingStrategyHasBeenSet; }
144 
149  inline void SetRoutingStrategy(const RoutingStrategy& value) { m_routingStrategyHasBeenSet = true; m_routingStrategy = value; }
150 
155  inline void SetRoutingStrategy(RoutingStrategy&& value) { m_routingStrategyHasBeenSet = true; m_routingStrategy = std::move(value); }
156 
161  inline CreateAliasRequest& WithRoutingStrategy(const RoutingStrategy& value) { SetRoutingStrategy(value); return *this;}
162 
167  inline CreateAliasRequest& WithRoutingStrategy(RoutingStrategy&& value) { SetRoutingStrategy(std::move(value)); return *this;}
168 
169 
181  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
182 
194  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
195 
207  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
208 
220  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
221 
233  inline CreateAliasRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
234 
246  inline CreateAliasRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
247 
259  inline CreateAliasRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
260 
272  inline CreateAliasRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
273 
274  private:
275 
276  Aws::String m_name;
277  bool m_nameHasBeenSet;
278 
279  Aws::String m_description;
280  bool m_descriptionHasBeenSet;
281 
282  RoutingStrategy m_routingStrategy;
283  bool m_routingStrategyHasBeenSet;
284 
285  Aws::Vector<Tag> m_tags;
286  bool m_tagsHasBeenSet;
287  };
288 
289 } // namespace Model
290 } // namespace GameLift
291 } // namespace Aws
CreateAliasRequest & WithName(const Aws::String &value)
void SetRoutingStrategy(RoutingStrategy &&value)
CreateAliasRequest & WithName(Aws::String &&value)
const RoutingStrategy & GetRoutingStrategy() const
#define AWS_GAMELIFT_API
void SetRoutingStrategy(const RoutingStrategy &value)
CreateAliasRequest & WithDescription(Aws::String &&value)
const Aws::String & GetDescription() const
void SetDescription(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetTags(const Aws::Vector< Tag > &value)
CreateAliasRequest & WithName(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
CreateAliasRequest & WithRoutingStrategy(const RoutingStrategy &value)
virtual const char * GetServiceRequestName() const override
CreateAliasRequest & WithDescription(const Aws::String &value)
void SetName(const Aws::String &value)
CreateAliasRequest & AddTags(const Tag &value)
CreateAliasRequest & WithDescription(const char *value)
CreateAliasRequest & AddTags(Tag &&value)
CreateAliasRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Tag > & GetTags() const
CreateAliasRequest & WithRoutingStrategy(RoutingStrategy &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateAliasRequest & WithTags(const Aws::Vector< Tag > &value)