Lesson 35 - Get Compute Auth Token Working
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/apigateway/APIGateway_EXPORTS.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace APIGateway
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p> The API request rate limits.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/ThrottleSettings">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class ThrottleSettings
|
||||
{
|
||||
public:
|
||||
AWS_APIGATEWAY_API ThrottleSettings();
|
||||
AWS_APIGATEWAY_API ThrottleSettings(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_APIGATEWAY_API ThrottleSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The API target request burst rate limit. This allows more requests through
|
||||
* for a period of time than the target rate limit.</p>
|
||||
*/
|
||||
inline int GetBurstLimit() const{ return m_burstLimit; }
|
||||
inline bool BurstLimitHasBeenSet() const { return m_burstLimitHasBeenSet; }
|
||||
inline void SetBurstLimit(int value) { m_burstLimitHasBeenSet = true; m_burstLimit = value; }
|
||||
inline ThrottleSettings& WithBurstLimit(int value) { SetBurstLimit(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The API target request rate limit.</p>
|
||||
*/
|
||||
inline double GetRateLimit() const{ return m_rateLimit; }
|
||||
inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
|
||||
inline void SetRateLimit(double value) { m_rateLimitHasBeenSet = true; m_rateLimit = value; }
|
||||
inline ThrottleSettings& WithRateLimit(double value) { SetRateLimit(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
int m_burstLimit;
|
||||
bool m_burstLimitHasBeenSet = false;
|
||||
|
||||
double m_rateLimit;
|
||||
bool m_rateLimitHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace APIGateway
|
||||
} // namespace Aws
|
||||
Reference in New Issue
Block a user