/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SecurityLake
{
namespace Model
{
/**
* The details of the last UpdateDataLake
or
* DeleteDataLake
API request which failed.
See Also:
* AWS
* API Reference
*/
class DataLakeUpdateException
{
public:
AWS_SECURITYLAKE_API DataLakeUpdateException();
AWS_SECURITYLAKE_API DataLakeUpdateException(Aws::Utils::Json::JsonView jsonValue);
AWS_SECURITYLAKE_API DataLakeUpdateException& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The reason code for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* The reason code for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* The reason code for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* The reason code for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* The reason code for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* The reason code for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline DataLakeUpdateException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* The reason code for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline DataLakeUpdateException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* The reason code for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline DataLakeUpdateException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* The reason for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline const Aws::String& GetReason() const{ return m_reason; }
/**
* The reason for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
/**
* The reason for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
/**
* The reason for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
/**
* The reason for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
/**
* The reason for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline DataLakeUpdateException& WithReason(const Aws::String& value) { SetReason(value); return *this;}
/**
* The reason for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline DataLakeUpdateException& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
/**
* The reason for the exception of the last UpdateDataLake
or
* DeleteDataLake
API request.
*/
inline DataLakeUpdateException& WithReason(const char* value) { SetReason(value); return *this;}
private:
Aws::String m_code;
bool m_codeHasBeenSet = false;
Aws::String m_reason;
bool m_reasonHasBeenSet = false;
};
} // namespace Model
} // namespace SecurityLake
} // namespace Aws