AWS SDK for C++  0.12.9
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 
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 CreateBuildRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 
73  inline CreateBuildRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
74 
79  inline CreateBuildRequest& WithName(const char* value) { SetName(value); return *this;}
80 
85  inline const Aws::String& GetVersion() const{ return m_version; }
86 
91  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
92 
97  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = value; }
98 
103  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
104 
109  inline CreateBuildRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
110 
115  inline CreateBuildRequest& WithVersion(Aws::String&& value) { SetVersion(value); return *this;}
116 
121  inline CreateBuildRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
122 
123 
124  inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
125 
126 
127  inline void SetStorageLocation(const S3Location& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
128 
129 
130  inline void SetStorageLocation(S3Location&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
131 
132 
133  inline CreateBuildRequest& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
134 
135 
136  inline CreateBuildRequest& WithStorageLocation(S3Location&& value) { SetStorageLocation(value); return *this;}
137 
138  private:
139  Aws::String m_name;
140  bool m_nameHasBeenSet;
141  Aws::String m_version;
142  bool m_versionHasBeenSet;
143  S3Location m_storageLocation;
144  bool m_storageLocationHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace GameLift
149 } // 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).