feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,108 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ebs/EBS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ebs/model/ValidationExceptionReason.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace EBS
{
namespace Model
{
/**
* <p>The input fails to satisfy the constraints of the EBS direct
* APIs.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ebs-2019-11-02/ValidationException">AWS
* API Reference</a></p>
*/
class AWS_EBS_API ValidationException
{
public:
ValidationException();
ValidationException(Aws::Utils::Json::JsonView jsonValue);
ValidationException& 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 ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The reason for the validation exception.</p>
*/
inline const ValidationExceptionReason& GetReason() const{ return m_reason; }
/**
* <p>The reason for the validation exception.</p>
*/
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
/**
* <p>The reason for the validation exception.</p>
*/
inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
/**
* <p>The reason for the validation exception.</p>
*/
inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
/**
* <p>The reason for the validation exception.</p>
*/
inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;}
/**
* <p>The reason for the validation exception.</p>
*/
inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
ValidationExceptionReason m_reason;
bool m_reasonHasBeenSet;
};
} // namespace Model
} // namespace EBS
} // namespace Aws