162 lines
4.8 KiB
C++
162 lines
4.8 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/qldb/QLDB_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 QLDB
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The operation failed because a condition wasn't satisfied in
|
|
* advance.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/ResourcePreconditionNotMetException">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_QLDB_API ResourcePreconditionNotMetException
|
|
{
|
|
public:
|
|
ResourcePreconditionNotMetException();
|
|
ResourcePreconditionNotMetException(Aws::Utils::Json::JsonView jsonValue);
|
|
ResourcePreconditionNotMetException& 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 ResourcePreconditionNotMetException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
|
|
|
|
|
inline ResourcePreconditionNotMetException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
|
|
|
|
|
inline ResourcePreconditionNotMetException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The type of resource.</p>
|
|
*/
|
|
inline const Aws::String& GetResourceType() const{ return m_resourceType; }
|
|
|
|
/**
|
|
* <p>The type of resource.</p>
|
|
*/
|
|
inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The type of resource.</p>
|
|
*/
|
|
inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
|
|
|
|
/**
|
|
* <p>The type of resource.</p>
|
|
*/
|
|
inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
|
|
|
|
/**
|
|
* <p>The type of resource.</p>
|
|
*/
|
|
inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
|
|
|
|
/**
|
|
* <p>The type of resource.</p>
|
|
*/
|
|
inline ResourcePreconditionNotMetException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The type of resource.</p>
|
|
*/
|
|
inline ResourcePreconditionNotMetException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The type of resource.</p>
|
|
*/
|
|
inline ResourcePreconditionNotMetException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the resource.</p>
|
|
*/
|
|
inline const Aws::String& GetResourceName() const{ return m_resourceName; }
|
|
|
|
/**
|
|
* <p>The name of the resource.</p>
|
|
*/
|
|
inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the resource.</p>
|
|
*/
|
|
inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
|
|
|
|
/**
|
|
* <p>The name of the resource.</p>
|
|
*/
|
|
inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the resource.</p>
|
|
*/
|
|
inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the resource.</p>
|
|
*/
|
|
inline ResourcePreconditionNotMetException& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the resource.</p>
|
|
*/
|
|
inline ResourcePreconditionNotMetException& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the resource.</p>
|
|
*/
|
|
inline ResourcePreconditionNotMetException& WithResourceName(const char* value) { SetResourceName(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_message;
|
|
bool m_messageHasBeenSet;
|
|
|
|
Aws::String m_resourceType;
|
|
bool m_resourceTypeHasBeenSet;
|
|
|
|
Aws::String m_resourceName;
|
|
bool m_resourceNameHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace QLDB
|
|
} // namespace Aws
|