AWS SDK for C++  0.14.3
AWS SDK for C++
CreateRestApiRequest.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
19 
20 namespace Aws
21 {
22 namespace APIGateway
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetName() const{ return m_name; }
40 
44  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 
49  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
50 
54  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 
59  inline CreateRestApiRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
60 
64  inline CreateRestApiRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
65 
69  inline CreateRestApiRequest& WithName(const char* value) { SetName(value); return *this;}
70 
74  inline const Aws::String& GetDescription() const{ return m_description; }
75 
79  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 
84  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
85 
89  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
90 
94  inline CreateRestApiRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
95 
99  inline CreateRestApiRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
100 
104  inline CreateRestApiRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
105 
109  inline const Aws::String& GetCloneFrom() const{ return m_cloneFrom; }
110 
114  inline void SetCloneFrom(const Aws::String& value) { m_cloneFromHasBeenSet = true; m_cloneFrom = value; }
115 
119  inline void SetCloneFrom(Aws::String&& value) { m_cloneFromHasBeenSet = true; m_cloneFrom = value; }
120 
124  inline void SetCloneFrom(const char* value) { m_cloneFromHasBeenSet = true; m_cloneFrom.assign(value); }
125 
129  inline CreateRestApiRequest& WithCloneFrom(const Aws::String& value) { SetCloneFrom(value); return *this;}
130 
134  inline CreateRestApiRequest& WithCloneFrom(Aws::String&& value) { SetCloneFrom(value); return *this;}
135 
139  inline CreateRestApiRequest& WithCloneFrom(const char* value) { SetCloneFrom(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  Aws::String m_cloneFrom;
147  bool m_cloneFromHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace APIGateway
152 } // namespace Aws
CreateRestApiRequest & WithDescription(const Aws::String &value)
void SetDescription(const Aws::String &value)
CreateRestApiRequest & WithName(const Aws::String &value)
CreateRestApiRequest & WithName(const char *value)
CreateRestApiRequest & WithCloneFrom(const char *value)
CreateRestApiRequest & WithName(Aws::String &&value)
CreateRestApiRequest & WithCloneFrom(Aws::String &&value)
CreateRestApiRequest & WithDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
CreateRestApiRequest & WithDescription(Aws::String &&value)
JSON (JavaScript Object Notation).
CreateRestApiRequest & WithCloneFrom(const Aws::String &value)