/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace APIGateway
{
namespace Model
{
/**
* Represents a summary of a Method resource, given a particular date and
* time.
See Also:
AWS
* API Reference
*/
class MethodSnapshot
{
public:
AWS_APIGATEWAY_API MethodSnapshot();
AWS_APIGATEWAY_API MethodSnapshot(Aws::Utils::Json::JsonView jsonValue);
AWS_APIGATEWAY_API MethodSnapshot& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
///@{
/**
* The method's authorization type. Valid values are NONE for open
* access, AWS_IAM for using AWS IAM permissions, CUSTOM
* for using a custom authorizer, or COGNITO_USER_POOLS for using a
* Cognito user pool.
*/
inline const Aws::String& GetAuthorizationType() const{ return m_authorizationType; }
inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
inline void SetAuthorizationType(const Aws::String& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
inline void SetAuthorizationType(Aws::String&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); }
inline void SetAuthorizationType(const char* value) { m_authorizationTypeHasBeenSet = true; m_authorizationType.assign(value); }
inline MethodSnapshot& WithAuthorizationType(const Aws::String& value) { SetAuthorizationType(value); return *this;}
inline MethodSnapshot& WithAuthorizationType(Aws::String&& value) { SetAuthorizationType(std::move(value)); return *this;}
inline MethodSnapshot& WithAuthorizationType(const char* value) { SetAuthorizationType(value); return *this;}
///@}
///@{
/**
* Specifies whether the method requires a valid ApiKey.
*/
inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; }
inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
inline MethodSnapshot& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
///@}
private:
Aws::String m_authorizationType;
bool m_authorizationTypeHasBeenSet = false;
bool m_apiKeyRequired;
bool m_apiKeyRequiredHasBeenSet = false;
};
} // namespace Model
} // namespace APIGateway
} // namespace Aws