AWS SDK for C++  0.14.3
AWS SDK for C++
StageKey.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace APIGateway
29 {
30 namespace Model
31 {
32 
38  {
39  public:
40  StageKey();
41  StageKey(const Aws::Utils::Json::JsonValue& jsonValue);
42  StageKey& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
50 
55  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
56 
61  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
62 
67  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
68 
73  inline StageKey& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
74 
79  inline StageKey& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
80 
85  inline StageKey& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
86 
90  inline const Aws::String& GetStageName() const{ return m_stageName; }
91 
95  inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
96 
100  inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
101 
105  inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
106 
110  inline StageKey& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
111 
115  inline StageKey& WithStageName(Aws::String&& value) { SetStageName(value); return *this;}
116 
120  inline StageKey& WithStageName(const char* value) { SetStageName(value); return *this;}
121 
122  private:
123  Aws::String m_restApiId;
124  bool m_restApiIdHasBeenSet;
125  Aws::String m_stageName;
126  bool m_stageNameHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace APIGateway
131 } // namespace Aws
const Aws::String & GetRestApiId() const
Definition: StageKey.h:49
void SetStageName(Aws::String &&value)
Definition: StageKey.h:100
StageKey & WithStageName(const char *value)
Definition: StageKey.h:120
void SetStageName(const char *value)
Definition: StageKey.h:105
const Aws::String & GetStageName() const
Definition: StageKey.h:90
StageKey & WithRestApiId(const Aws::String &value)
Definition: StageKey.h:73
void SetRestApiId(const Aws::String &value)
Definition: StageKey.h:55
void SetStageName(const Aws::String &value)
Definition: StageKey.h:95
StageKey & WithStageName(Aws::String &&value)
Definition: StageKey.h:115
StageKey & WithStageName(const Aws::String &value)
Definition: StageKey.h:110
void SetRestApiId(Aws::String &&value)
Definition: StageKey.h:61
StageKey & WithRestApiId(Aws::String &&value)
Definition: StageKey.h:79
StageKey & WithRestApiId(const char *value)
Definition: StageKey.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
void SetRestApiId(const char *value)
Definition: StageKey.h:67
JSON (JavaScript Object Notation).