/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a summary of a Method resource, given a particular date and
* time.See Also:
AWS
* API Reference
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.
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.
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.
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.
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.
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.
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.
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.
Specifies whether the method requires a valid ApiKey.
*/ inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; } /** *Specifies whether the method requires a valid ApiKey.
*/ inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; } /** *Specifies whether the method requires a valid ApiKey.
*/ inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; } /** *Specifies whether the method requires a valid ApiKey.
*/ 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