AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateFleetAttributesRequest.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& GetFleetId() const{ return m_fleetId; }
44 
49  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
50 
55  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
56 
61  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
62 
67  inline UpdateFleetAttributesRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
68 
73  inline UpdateFleetAttributesRequest& WithFleetId(Aws::String&& value) { SetFleetId(value); return *this;}
74 
79  inline UpdateFleetAttributesRequest& WithFleetId(const char* value) { SetFleetId(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 UpdateFleetAttributesRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
110 
115  inline UpdateFleetAttributesRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
116 
121  inline UpdateFleetAttributesRequest& 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 UpdateFleetAttributesRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
147 
151  inline UpdateFleetAttributesRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
152 
156  inline UpdateFleetAttributesRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
157 
166  inline const ProtectionPolicy& GetNewGameSessionProtectionPolicy() const{ return m_newGameSessionProtectionPolicy; }
167 
176  inline void SetNewGameSessionProtectionPolicy(const ProtectionPolicy& value) { m_newGameSessionProtectionPolicyHasBeenSet = true; m_newGameSessionProtectionPolicy = value; }
177 
186  inline void SetNewGameSessionProtectionPolicy(ProtectionPolicy&& value) { m_newGameSessionProtectionPolicyHasBeenSet = true; m_newGameSessionProtectionPolicy = value; }
187 
196  inline UpdateFleetAttributesRequest& WithNewGameSessionProtectionPolicy(const ProtectionPolicy& value) { SetNewGameSessionProtectionPolicy(value); return *this;}
197 
206  inline UpdateFleetAttributesRequest& WithNewGameSessionProtectionPolicy(ProtectionPolicy&& value) { SetNewGameSessionProtectionPolicy(value); return *this;}
207 
208  private:
209  Aws::String m_fleetId;
210  bool m_fleetIdHasBeenSet;
211  Aws::String m_name;
212  bool m_nameHasBeenSet;
213  Aws::String m_description;
214  bool m_descriptionHasBeenSet;
215  ProtectionPolicy m_newGameSessionProtectionPolicy;
216  bool m_newGameSessionProtectionPolicyHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace GameLift
221 } // namespace Aws
#define AWS_GAMELIFT_API
UpdateFleetAttributesRequest & WithFleetId(Aws::String &&value)
UpdateFleetAttributesRequest & WithDescription(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UpdateFleetAttributesRequest & WithNewGameSessionProtectionPolicy(ProtectionPolicy &&value)
UpdateFleetAttributesRequest & WithName(const char *value)
UpdateFleetAttributesRequest & WithDescription(const char *value)
UpdateFleetAttributesRequest & WithNewGameSessionProtectionPolicy(const ProtectionPolicy &value)
UpdateFleetAttributesRequest & WithName(const Aws::String &value)
UpdateFleetAttributesRequest & WithFleetId(const char *value)
UpdateFleetAttributesRequest & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetNewGameSessionProtectionPolicy(const ProtectionPolicy &value)
UpdateFleetAttributesRequest & WithDescription(const Aws::String &value)
UpdateFleetAttributesRequest & WithFleetId(const Aws::String &value)
JSON (JavaScript Object Notation).