This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-apigateway/include/aws/apigateway/model/MethodSnapshot.h

138 lines
5.2 KiB
C++

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