AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DocumentationPartLocation.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/DocumentationPartType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace APIGateway
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APIGATEWAY_API DocumentationPartLocation();
39 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
54 inline const DocumentationPartType& GetType() const{ return m_type; }
55 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
56 inline void SetType(const DocumentationPartType& value) { m_typeHasBeenSet = true; m_type = value; }
57 inline void SetType(DocumentationPartType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
58 inline DocumentationPartLocation& WithType(const DocumentationPartType& value) { SetType(value); return *this;}
59 inline DocumentationPartLocation& WithType(DocumentationPartType&& value) { SetType(std::move(value)); return *this;}
61
63
74 inline const Aws::String& GetPath() const{ return m_path; }
75 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
76 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
77 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
78 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
79 inline DocumentationPartLocation& WithPath(const Aws::String& value) { SetPath(value); return *this;}
80 inline DocumentationPartLocation& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
81 inline DocumentationPartLocation& WithPath(const char* value) { SetPath(value); return *this;}
83
85
95 inline const Aws::String& GetMethod() const{ return m_method; }
96 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
97 inline void SetMethod(const Aws::String& value) { m_methodHasBeenSet = true; m_method = value; }
98 inline void SetMethod(Aws::String&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
99 inline void SetMethod(const char* value) { m_methodHasBeenSet = true; m_method.assign(value); }
100 inline DocumentationPartLocation& WithMethod(const Aws::String& value) { SetMethod(value); return *this;}
101 inline DocumentationPartLocation& WithMethod(Aws::String&& value) { SetMethod(std::move(value)); return *this;}
102 inline DocumentationPartLocation& WithMethod(const char* value) { SetMethod(value); return *this;}
104
106
115 inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
116 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
117 inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
118 inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
119 inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
120 inline DocumentationPartLocation& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
121 inline DocumentationPartLocation& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
122 inline DocumentationPartLocation& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
124
126
134 inline const Aws::String& GetName() const{ return m_name; }
135 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
136 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
137 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
138 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
139 inline DocumentationPartLocation& WithName(const Aws::String& value) { SetName(value); return *this;}
140 inline DocumentationPartLocation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
141 inline DocumentationPartLocation& WithName(const char* value) { SetName(value); return *this;}
143 private:
144
146 bool m_typeHasBeenSet = false;
147
148 Aws::String m_path;
149 bool m_pathHasBeenSet = false;
150
151 Aws::String m_method;
152 bool m_methodHasBeenSet = false;
153
154 Aws::String m_statusCode;
155 bool m_statusCodeHasBeenSet = false;
156
157 Aws::String m_name;
158 bool m_nameHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace APIGateway
163} // namespace Aws
DocumentationPartLocation & WithName(const char *value)
DocumentationPartLocation & WithStatusCode(Aws::String &&value)
DocumentationPartLocation & WithName(const Aws::String &value)
DocumentationPartLocation & WithPath(const Aws::String &value)
DocumentationPartLocation & WithType(DocumentationPartType &&value)
DocumentationPartLocation & WithMethod(Aws::String &&value)
DocumentationPartLocation & WithMethod(const Aws::String &value)
void SetType(const DocumentationPartType &value)
AWS_APIGATEWAY_API DocumentationPartLocation(Aws::Utils::Json::JsonView jsonValue)
DocumentationPartLocation & WithPath(Aws::String &&value)
DocumentationPartLocation & WithMethod(const char *value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentationPartLocation & WithStatusCode(const char *value)
DocumentationPartLocation & WithStatusCode(const Aws::String &value)
DocumentationPartLocation & WithPath(const char *value)
AWS_APIGATEWAY_API DocumentationPartLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentationPartLocation & WithName(Aws::String &&value)
DocumentationPartLocation & WithType(const DocumentationPartType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue