74 lines
2.1 KiB
C++
74 lines
2.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/awstransfer/Transfer_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 Transfer
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The request was denied due to request throttling.</p> <p> HTTP Status Code:
|
|
* 400</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ThrottlingException">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_TRANSFER_API ThrottlingException
|
|
{
|
|
public:
|
|
ThrottlingException();
|
|
ThrottlingException(Aws::Utils::Json::JsonView jsonValue);
|
|
ThrottlingException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
|
|
inline const Aws::String& GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
|
|
|
|
|
|
inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
|
|
|
|
|
|
inline void SetRetryAfterSeconds(const Aws::String& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
|
|
|
|
|
|
inline void SetRetryAfterSeconds(Aws::String&& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = std::move(value); }
|
|
|
|
|
|
inline void SetRetryAfterSeconds(const char* value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds.assign(value); }
|
|
|
|
|
|
inline ThrottlingException& WithRetryAfterSeconds(const Aws::String& value) { SetRetryAfterSeconds(value); return *this;}
|
|
|
|
|
|
inline ThrottlingException& WithRetryAfterSeconds(Aws::String&& value) { SetRetryAfterSeconds(std::move(value)); return *this;}
|
|
|
|
|
|
inline ThrottlingException& WithRetryAfterSeconds(const char* value) { SetRetryAfterSeconds(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_retryAfterSeconds;
|
|
bool m_retryAfterSecondsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Transfer
|
|
} // namespace Aws
|