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,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/backup/Backup_EXPORTS.h>
#include <aws/backup/BackupRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Backup
{
namespace Model
{
/**
*/
class AWS_BACKUP_API StopBackupJobRequest : public BackupRequest
{
public:
StopBackupJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "StopBackupJob"; }
Aws::String SerializePayload() const override;
/**
* <p>Uniquely identifies a request to AWS Backup to back up a resource.</p>
*/
inline const Aws::String& GetBackupJobId() const{ return m_backupJobId; }
/**
* <p>Uniquely identifies a request to AWS Backup to back up a resource.</p>
*/
inline bool BackupJobIdHasBeenSet() const { return m_backupJobIdHasBeenSet; }
/**
* <p>Uniquely identifies a request to AWS Backup to back up a resource.</p>
*/
inline void SetBackupJobId(const Aws::String& value) { m_backupJobIdHasBeenSet = true; m_backupJobId = value; }
/**
* <p>Uniquely identifies a request to AWS Backup to back up a resource.</p>
*/
inline void SetBackupJobId(Aws::String&& value) { m_backupJobIdHasBeenSet = true; m_backupJobId = std::move(value); }
/**
* <p>Uniquely identifies a request to AWS Backup to back up a resource.</p>
*/
inline void SetBackupJobId(const char* value) { m_backupJobIdHasBeenSet = true; m_backupJobId.assign(value); }
/**
* <p>Uniquely identifies a request to AWS Backup to back up a resource.</p>
*/
inline StopBackupJobRequest& WithBackupJobId(const Aws::String& value) { SetBackupJobId(value); return *this;}
/**
* <p>Uniquely identifies a request to AWS Backup to back up a resource.</p>
*/
inline StopBackupJobRequest& WithBackupJobId(Aws::String&& value) { SetBackupJobId(std::move(value)); return *this;}
/**
* <p>Uniquely identifies a request to AWS Backup to back up a resource.</p>
*/
inline StopBackupJobRequest& WithBackupJobId(const char* value) { SetBackupJobId(value); return *this;}
private:
Aws::String m_backupJobId;
bool m_backupJobIdHasBeenSet;
};
} // namespace Model
} // namespace Backup
} // namespace Aws