AWS SDK for C++  0.12.9
AWS SDK for C++
CreateResourceRequest.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& GetRestApiId() const{ return m_restApiId; }
40 
44  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
45 
49  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
50 
54  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
55 
59  inline CreateResourceRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
60 
64  inline CreateResourceRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
65 
69  inline CreateResourceRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
70 
74  inline const Aws::String& GetParentId() const{ return m_parentId; }
75 
79  inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
80 
84  inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
85 
89  inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
90 
94  inline CreateResourceRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
95 
99  inline CreateResourceRequest& WithParentId(Aws::String&& value) { SetParentId(value); return *this;}
100 
104  inline CreateResourceRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
105 
109  inline const Aws::String& GetPathPart() const{ return m_pathPart; }
110 
114  inline void SetPathPart(const Aws::String& value) { m_pathPartHasBeenSet = true; m_pathPart = value; }
115 
119  inline void SetPathPart(Aws::String&& value) { m_pathPartHasBeenSet = true; m_pathPart = value; }
120 
124  inline void SetPathPart(const char* value) { m_pathPartHasBeenSet = true; m_pathPart.assign(value); }
125 
129  inline CreateResourceRequest& WithPathPart(const Aws::String& value) { SetPathPart(value); return *this;}
130 
134  inline CreateResourceRequest& WithPathPart(Aws::String&& value) { SetPathPart(value); return *this;}
135 
139  inline CreateResourceRequest& WithPathPart(const char* value) { SetPathPart(value); return *this;}
140 
141  private:
142  Aws::String m_restApiId;
143  bool m_restApiIdHasBeenSet;
144  Aws::String m_parentId;
145  bool m_parentIdHasBeenSet;
146  Aws::String m_pathPart;
147  bool m_pathPartHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace APIGateway
152 } // namespace Aws
CreateResourceRequest & WithPathPart(const Aws::String &value)
CreateResourceRequest & WithParentId(const char *value)
CreateResourceRequest & WithRestApiId(const Aws::String &value)
CreateResourceRequest & WithRestApiId(const char *value)
CreateResourceRequest & WithParentId(Aws::String &&value)
CreateResourceRequest & WithParentId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateResourceRequest & WithPathPart(Aws::String &&value)
CreateResourceRequest & WithRestApiId(Aws::String &&value)
#define AWS_APIGATEWAY_API
CreateResourceRequest & WithPathPart(const char *value)
JSON (JavaScript Object Notation).