AWS SDK for C++  1.9.16
AWS SDK for C++
StageKey.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace APIGateway
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
45 
49  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
50 
54  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
55 
59  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
60 
64  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
65 
69  inline StageKey& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
70 
74  inline StageKey& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
75 
79  inline StageKey& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
80 
81 
85  inline const Aws::String& GetStageName() const{ return m_stageName; }
86 
90  inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
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 = std::move(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(std::move(value)); return *this;}
116 
120  inline StageKey& WithStageName(const char* value) { SetStageName(value); return *this;}
121 
122  private:
123 
124  Aws::String m_restApiId;
125  bool m_restApiIdHasBeenSet;
126 
127  Aws::String m_stageName;
128  bool m_stageNameHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace APIGateway
133 } // namespace Aws
Aws::APIGateway::Model::StageKey::WithStageName
StageKey & WithStageName(const Aws::String &value)
Definition: StageKey.h:110
Aws::APIGateway::Model::StageKey::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: StageKey.h:54
Aws::APIGateway::Model::StageKey::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: StageKey.h:59
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::StageKey::WithRestApiId
StageKey & WithRestApiId(Aws::String &&value)
Definition: StageKey.h:74
Aws::APIGateway::Model::StageKey::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::StageKey::WithRestApiId
StageKey & WithRestApiId(const char *value)
Definition: StageKey.h:79
APIGateway_EXPORTS.h
Aws::APIGateway::Model::StageKey::SetRestApiId
void SetRestApiId(const char *value)
Definition: StageKey.h:64
Aws::APIGateway::Model::StageKey::operator=
StageKey & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::StageKey::StageKey
StageKey(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::APIGateway::Model::StageKey::WithStageName
StageKey & WithStageName(const char *value)
Definition: StageKey.h:120
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::StageKey::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: StageKey.h:49
Aws::APIGateway::Model::StageKey::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: StageKey.h:44
Aws::APIGateway::Model::StageKey::SetStageName
void SetStageName(Aws::String &&value)
Definition: StageKey.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::StageKey::StageKey
StageKey()
Aws::APIGateway::Model::StageKey
Definition: StageKey.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::StageKey::StageNameHasBeenSet
bool StageNameHasBeenSet() const
Definition: StageKey.h:90
Aws::APIGateway::Model::StageKey::GetStageName
const Aws::String & GetStageName() const
Definition: StageKey.h:85
Aws::APIGateway::Model::StageKey::SetStageName
void SetStageName(const char *value)
Definition: StageKey.h:105
Aws::APIGateway::Model::StageKey::SetStageName
void SetStageName(const Aws::String &value)
Definition: StageKey.h:95
Aws::APIGateway::Model::StageKey::WithStageName
StageKey & WithStageName(Aws::String &&value)
Definition: StageKey.h:115
Aws::APIGateway::Model::StageKey::WithRestApiId
StageKey & WithRestApiId(const Aws::String &value)
Definition: StageKey.h:69