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-AWSMigrationHub/include/aws/AWSMigrationHub/model/ThrottlingException.h

114 lines
3.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/AWSMigrationHub/MigrationHub_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 MigrationHub
{
namespace Model
{
/**
* <p>The request was denied due to request throttling.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ThrottlingException">AWS
* API Reference</a></p>
*/
class AWS_MIGRATIONHUB_API ThrottlingException
{
public:
ThrottlingException();
ThrottlingException(Aws::Utils::Json::JsonView jsonValue);
ThrottlingException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A message that provides information about the exception.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>A message that provides information about the exception.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>A message that provides information about the exception.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>A message that provides information about the exception.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>A message that provides information about the exception.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>A message that provides information about the exception.</p>
*/
inline ThrottlingException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>A message that provides information about the exception.</p>
*/
inline ThrottlingException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>A message that provides information about the exception.</p>
*/
inline ThrottlingException& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The number of seconds the caller should wait before retrying.</p>
*/
inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
/**
* <p>The number of seconds the caller should wait before retrying.</p>
*/
inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
/**
* <p>The number of seconds the caller should wait before retrying.</p>
*/
inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
/**
* <p>The number of seconds the caller should wait before retrying.</p>
*/
inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
int m_retryAfterSeconds;
bool m_retryAfterSecondsHasBeenSet;
};
} // namespace Model
} // namespace MigrationHub
} // namespace Aws