AWS SDK for C++

AWS SDK for C++ Version 1.11.768

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace APIGateway {
20namespace Model {
21
29 public:
30 AWS_APIGATEWAY_API MethodSnapshot() = default;
31 AWS_APIGATEWAY_API MethodSnapshot(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIGATEWAY_API MethodSnapshot& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline const Aws::String& GetAuthorizationType() const { return m_authorizationType; }
43 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
44 template <typename AuthorizationTypeT = Aws::String>
45 void SetAuthorizationType(AuthorizationTypeT&& value) {
46 m_authorizationTypeHasBeenSet = true;
47 m_authorizationType = std::forward<AuthorizationTypeT>(value);
48 }
49 template <typename AuthorizationTypeT = Aws::String>
50 MethodSnapshot& WithAuthorizationType(AuthorizationTypeT&& value) {
51 SetAuthorizationType(std::forward<AuthorizationTypeT>(value));
52 return *this;
53 }
55
57
60 inline bool GetApiKeyRequired() const { return m_apiKeyRequired; }
61 inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
62 inline void SetApiKeyRequired(bool value) {
63 m_apiKeyRequiredHasBeenSet = true;
64 m_apiKeyRequired = value;
65 }
66 inline MethodSnapshot& WithApiKeyRequired(bool value) {
67 SetApiKeyRequired(value);
68 return *this;
69 }
71 private:
72 Aws::String m_authorizationType;
73
74 bool m_apiKeyRequired{false};
75 bool m_authorizationTypeHasBeenSet = false;
76 bool m_apiKeyRequiredHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace APIGateway
81} // 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