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,168 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/ValidationStatus.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Contains the status of validating an application.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/NotificationContext">AWS
* API Reference</a></p>
*/
class AWS_SMS_API NotificationContext
{
public:
NotificationContext();
NotificationContext(Aws::Utils::Json::JsonView jsonValue);
NotificationContext& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the validation.</p>
*/
inline const Aws::String& GetValidationId() const{ return m_validationId; }
/**
* <p>The ID of the validation.</p>
*/
inline bool ValidationIdHasBeenSet() const { return m_validationIdHasBeenSet; }
/**
* <p>The ID of the validation.</p>
*/
inline void SetValidationId(const Aws::String& value) { m_validationIdHasBeenSet = true; m_validationId = value; }
/**
* <p>The ID of the validation.</p>
*/
inline void SetValidationId(Aws::String&& value) { m_validationIdHasBeenSet = true; m_validationId = std::move(value); }
/**
* <p>The ID of the validation.</p>
*/
inline void SetValidationId(const char* value) { m_validationIdHasBeenSet = true; m_validationId.assign(value); }
/**
* <p>The ID of the validation.</p>
*/
inline NotificationContext& WithValidationId(const Aws::String& value) { SetValidationId(value); return *this;}
/**
* <p>The ID of the validation.</p>
*/
inline NotificationContext& WithValidationId(Aws::String&& value) { SetValidationId(std::move(value)); return *this;}
/**
* <p>The ID of the validation.</p>
*/
inline NotificationContext& WithValidationId(const char* value) { SetValidationId(value); return *this;}
/**
* <p>The status of the validation.</p>
*/
inline const ValidationStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the validation.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the validation.</p>
*/
inline void SetStatus(const ValidationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the validation.</p>
*/
inline void SetStatus(ValidationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the validation.</p>
*/
inline NotificationContext& WithStatus(const ValidationStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the validation.</p>
*/
inline NotificationContext& WithStatus(ValidationStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status message.</p>
*/
inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
/**
* <p>The status message.</p>
*/
inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
/**
* <p>The status message.</p>
*/
inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
/**
* <p>The status message.</p>
*/
inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
/**
* <p>The status message.</p>
*/
inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
/**
* <p>The status message.</p>
*/
inline NotificationContext& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
/**
* <p>The status message.</p>
*/
inline NotificationContext& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
/**
* <p>The status message.</p>
*/
inline NotificationContext& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
private:
Aws::String m_validationId;
bool m_validationIdHasBeenSet;
ValidationStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_statusMessage;
bool m_statusMessageHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws