AWS SDK for C++  0.14.3
AWS SDK for C++
CreateBuildRequest.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 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
51  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
59 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
72  inline CreateBuildRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
79  inline CreateBuildRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
80 
86  inline CreateBuildRequest& WithName(const char* value) { SetName(value); return *this;}
87 
93  inline const Aws::String& GetVersion() const{ return m_version; }
94 
100  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
101 
107  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = value; }
108 
114  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
115 
121  inline CreateBuildRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
122 
128  inline CreateBuildRequest& WithVersion(Aws::String&& value) { SetVersion(value); return *this;}
129 
135  inline CreateBuildRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
136 
137 
138  inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
139 
140 
141  inline void SetStorageLocation(const S3Location& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
142 
143 
144  inline void SetStorageLocation(S3Location&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
145 
146 
147  inline CreateBuildRequest& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
148 
149 
150  inline CreateBuildRequest& WithStorageLocation(S3Location&& value) { SetStorageLocation(value); return *this;}
151 
152  private:
153  Aws::String m_name;
154  bool m_nameHasBeenSet;
155  Aws::String m_version;
156  bool m_versionHasBeenSet;
157  S3Location m_storageLocation;
158  bool m_storageLocationHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace GameLift
163 } // namespace Aws
CreateBuildRequest & WithName(const Aws::String &value)
CreateBuildRequest & WithVersion(const Aws::String &value)
CreateBuildRequest & WithStorageLocation(const S3Location &value)
#define AWS_GAMELIFT_API
const S3Location & GetStorageLocation() const
CreateBuildRequest & WithVersion(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetName(const Aws::String &value)
CreateBuildRequest & WithVersion(Aws::String &&value)
const Aws::String & GetName() const
CreateBuildRequest & WithName(Aws::String &&value)
void SetStorageLocation(const S3Location &value)
const Aws::String & GetVersion() const
CreateBuildRequest & WithStorageLocation(S3Location &&value)
void SetVersion(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateBuildRequest & WithName(const char *value)
JSON (JavaScript Object Notation).