AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAuthorizationType(const Aws::String& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
51 inline void SetAuthorizationType(Aws::String&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); }
52 inline void SetAuthorizationType(const char* value) { m_authorizationTypeHasBeenSet = true; m_authorizationType.assign(value); }
53 inline MethodSnapshot& WithAuthorizationType(const Aws::String& value) { SetAuthorizationType(value); return *this;}
54 inline MethodSnapshot& WithAuthorizationType(Aws::String&& value) { SetAuthorizationType(std::move(value)); return *this;}
55 inline MethodSnapshot& WithAuthorizationType(const char* value) { SetAuthorizationType(value); return *this;}
57
59
62 inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; }
63 inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
64 inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
65 inline MethodSnapshot& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
67 private:
68
69 Aws::String m_authorizationType;
70 bool m_authorizationTypeHasBeenSet = false;
71
72 bool m_apiKeyRequired;
73 bool m_apiKeyRequiredHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace APIGateway
78} // namespace Aws
AWS_APIGATEWAY_API MethodSnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAuthorizationType() const
void SetAuthorizationType(Aws::String &&value)
AWS_APIGATEWAY_API MethodSnapshot(Aws::Utils::Json::JsonView jsonValue)
MethodSnapshot & WithAuthorizationType(Aws::String &&value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthorizationType(const Aws::String &value)
MethodSnapshot & WithApiKeyRequired(bool value)
MethodSnapshot & WithAuthorizationType(const char *value)
void SetAuthorizationType(const char *value)
MethodSnapshot & WithAuthorizationType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue