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-ecr/include/aws/ecr/model/KmsException.h

117 lines
3.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ecr/ECR_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 ECR
{
namespace Model
{
/**
* <p>The operation failed due to a KMS exception.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/KmsException">AWS
* API Reference</a></p>
*/
class AWS_ECR_API KmsException
{
public:
KmsException();
KmsException(Aws::Utils::Json::JsonView jsonValue);
KmsException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetMessage() const{ return m_message; }
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
inline KmsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline KmsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline KmsException& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The error code returned by AWS KMS.</p>
*/
inline const Aws::String& GetKmsError() const{ return m_kmsError; }
/**
* <p>The error code returned by AWS KMS.</p>
*/
inline bool KmsErrorHasBeenSet() const { return m_kmsErrorHasBeenSet; }
/**
* <p>The error code returned by AWS KMS.</p>
*/
inline void SetKmsError(const Aws::String& value) { m_kmsErrorHasBeenSet = true; m_kmsError = value; }
/**
* <p>The error code returned by AWS KMS.</p>
*/
inline void SetKmsError(Aws::String&& value) { m_kmsErrorHasBeenSet = true; m_kmsError = std::move(value); }
/**
* <p>The error code returned by AWS KMS.</p>
*/
inline void SetKmsError(const char* value) { m_kmsErrorHasBeenSet = true; m_kmsError.assign(value); }
/**
* <p>The error code returned by AWS KMS.</p>
*/
inline KmsException& WithKmsError(const Aws::String& value) { SetKmsError(value); return *this;}
/**
* <p>The error code returned by AWS KMS.</p>
*/
inline KmsException& WithKmsError(Aws::String&& value) { SetKmsError(std::move(value)); return *this;}
/**
* <p>The error code returned by AWS KMS.</p>
*/
inline KmsException& WithKmsError(const char* value) { SetKmsError(value); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_kmsError;
bool m_kmsErrorHasBeenSet;
};
} // namespace Model
} // namespace ECR
} // namespace Aws