AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MethodSnapshot.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace APIGateway
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_APIGATEWAY_API MethodSnapshot() = default;
36 AWS_APIGATEWAY_API MethodSnapshot(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APIGATEWAY_API MethodSnapshot& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const Aws::String& GetAuthorizationType() const { return m_authorizationType; }
49 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
50 template<typename AuthorizationTypeT = Aws::String>
51 void SetAuthorizationType(AuthorizationTypeT&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::forward<AuthorizationTypeT>(value); }
52 template<typename AuthorizationTypeT = Aws::String>
53 MethodSnapshot& WithAuthorizationType(AuthorizationTypeT&& value) { SetAuthorizationType(std::forward<AuthorizationTypeT>(value)); return *this;}
55
57
60 inline bool GetApiKeyRequired() const { return m_apiKeyRequired; }
61 inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
62 inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
63 inline MethodSnapshot& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
65 private:
66
67 Aws::String m_authorizationType;
68 bool m_authorizationTypeHasBeenSet = false;
69
70 bool m_apiKeyRequired{false};
71 bool m_apiKeyRequiredHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace APIGateway
76} // namespace Aws
void SetAuthorizationType(AuthorizationTypeT &&value)
AWS_APIGATEWAY_API MethodSnapshot()=default
AWS_APIGATEWAY_API MethodSnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAuthorizationType() const
AWS_APIGATEWAY_API MethodSnapshot(Aws::Utils::Json::JsonView jsonValue)
MethodSnapshot & WithAuthorizationType(AuthorizationTypeT &&value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
MethodSnapshot & WithApiKeyRequired(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue