AWS SDK for C++  0.14.3
AWS SDK for C++
CreateAliasRequest.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 GameLift
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::String& GetName() const{ return m_name; }
44 
49  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 
55  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
56 
61  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 
67  inline CreateAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 
73  inline CreateAliasRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
74 
79  inline CreateAliasRequest& WithName(const char* value) { SetName(value); return *this;}
80 
84  inline const Aws::String& GetDescription() const{ return m_description; }
85 
89  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
90 
94  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
95 
99  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
100 
104  inline CreateAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
105 
109  inline CreateAliasRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
110 
114  inline CreateAliasRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
115 
119  inline const RoutingStrategy& GetRoutingStrategy() const{ return m_routingStrategy; }
120 
124  inline void SetRoutingStrategy(const RoutingStrategy& value) { m_routingStrategyHasBeenSet = true; m_routingStrategy = value; }
125 
129  inline void SetRoutingStrategy(RoutingStrategy&& value) { m_routingStrategyHasBeenSet = true; m_routingStrategy = value; }
130 
134  inline CreateAliasRequest& WithRoutingStrategy(const RoutingStrategy& value) { SetRoutingStrategy(value); return *this;}
135 
139  inline CreateAliasRequest& WithRoutingStrategy(RoutingStrategy&& value) { SetRoutingStrategy(value); return *this;}
140 
141  private:
142  Aws::String m_name;
143  bool m_nameHasBeenSet;
144  Aws::String m_description;
145  bool m_descriptionHasBeenSet;
146  RoutingStrategy m_routingStrategy;
147  bool m_routingStrategyHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace GameLift
152 } // namespace Aws
CreateAliasRequest & WithName(const Aws::String &value)
void SetRoutingStrategy(RoutingStrategy &&value)
CreateAliasRequest & WithName(Aws::String &&value)
#define AWS_GAMELIFT_API
void SetRoutingStrategy(const RoutingStrategy &value)
CreateAliasRequest & WithDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateAliasRequest & WithName(const char *value)
CreateAliasRequest & WithRoutingStrategy(const RoutingStrategy &value)
CreateAliasRequest & WithDescription(const Aws::String &value)
void SetName(const Aws::String &value)
CreateAliasRequest & WithDescription(const char *value)
CreateAliasRequest & WithRoutingStrategy(RoutingStrategy &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const RoutingStrategy & GetRoutingStrategy() const
const Aws::String & GetName() const
const Aws::String & GetDescription() const
JSON (JavaScript Object Notation).