AWS SDK for C++  1.9.16
AWS SDK for C++
MethodSnapshot.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 
47  inline const Aws::String& GetAuthorizationType() const{ return m_authorizationType; }
48 
55  inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
56 
63  inline void SetAuthorizationType(const Aws::String& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
64 
71  inline void SetAuthorizationType(Aws::String&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); }
72 
79  inline void SetAuthorizationType(const char* value) { m_authorizationTypeHasBeenSet = true; m_authorizationType.assign(value); }
80 
87  inline MethodSnapshot& WithAuthorizationType(const Aws::String& value) { SetAuthorizationType(value); return *this;}
88 
95  inline MethodSnapshot& WithAuthorizationType(Aws::String&& value) { SetAuthorizationType(std::move(value)); return *this;}
96 
103  inline MethodSnapshot& WithAuthorizationType(const char* value) { SetAuthorizationType(value); return *this;}
104 
105 
109  inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; }
110 
114  inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
115 
119  inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
120 
124  inline MethodSnapshot& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
125 
126  private:
127 
128  Aws::String m_authorizationType;
129  bool m_authorizationTypeHasBeenSet;
130 
131  bool m_apiKeyRequired;
132  bool m_apiKeyRequiredHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace APIGateway
137 } // namespace Aws
Aws::APIGateway::Model::MethodSnapshot::MethodSnapshot
MethodSnapshot()
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::MethodSnapshot::ApiKeyRequiredHasBeenSet
bool ApiKeyRequiredHasBeenSet() const
Definition: MethodSnapshot.h:114
Aws::APIGateway::Model::MethodSnapshot::WithAuthorizationType
MethodSnapshot & WithAuthorizationType(Aws::String &&value)
Definition: MethodSnapshot.h:95
APIGateway_EXPORTS.h
Aws::APIGateway::Model::MethodSnapshot::WithAuthorizationType
MethodSnapshot & WithAuthorizationType(const Aws::String &value)
Definition: MethodSnapshot.h:87
Aws::APIGateway::Model::MethodSnapshot::SetAuthorizationType
void SetAuthorizationType(const Aws::String &value)
Definition: MethodSnapshot.h:63
Aws::APIGateway::Model::MethodSnapshot::SetAuthorizationType
void SetAuthorizationType(const char *value)
Definition: MethodSnapshot.h:79
Aws::APIGateway::Model::MethodSnapshot::SetApiKeyRequired
void SetApiKeyRequired(bool value)
Definition: MethodSnapshot.h:119
Aws::APIGateway::Model::MethodSnapshot::WithApiKeyRequired
MethodSnapshot & WithApiKeyRequired(bool value)
Definition: MethodSnapshot.h:124
Aws::APIGateway::Model::MethodSnapshot::WithAuthorizationType
MethodSnapshot & WithAuthorizationType(const char *value)
Definition: MethodSnapshot.h:103
Aws::APIGateway::Model::MethodSnapshot::SetAuthorizationType
void SetAuthorizationType(Aws::String &&value)
Definition: MethodSnapshot.h:71
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::MethodSnapshot::operator=
MethodSnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::MethodSnapshot::MethodSnapshot
MethodSnapshot(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::MethodSnapshot::GetApiKeyRequired
bool GetApiKeyRequired() const
Definition: MethodSnapshot.h:109
Aws::APIGateway::Model::MethodSnapshot::GetAuthorizationType
const Aws::String & GetAuthorizationType() const
Definition: MethodSnapshot.h:47
Aws::APIGateway::Model::MethodSnapshot::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::MethodSnapshot::AuthorizationTypeHasBeenSet
bool AuthorizationTypeHasBeenSet() const
Definition: MethodSnapshot.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::MethodSnapshot
Definition: MethodSnapshot.h:33