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,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
#include <aws/dms/DatabaseMigrationServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DatabaseMigrationService
{
namespace Model
{
/**
*/
class AWS_DATABASEMIGRATIONSERVICE_API RebootReplicationInstanceRequest : public DatabaseMigrationServiceRequest
{
public:
RebootReplicationInstanceRequest();
// 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 "RebootReplicationInstance"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the replication instance.</p>
*/
inline const Aws::String& GetReplicationInstanceArn() const{ return m_replicationInstanceArn; }
/**
* <p>The Amazon Resource Name (ARN) of the replication instance.</p>
*/
inline bool ReplicationInstanceArnHasBeenSet() const { return m_replicationInstanceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the replication instance.</p>
*/
inline void SetReplicationInstanceArn(const Aws::String& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the replication instance.</p>
*/
inline void SetReplicationInstanceArn(Aws::String&& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the replication instance.</p>
*/
inline void SetReplicationInstanceArn(const char* value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the replication instance.</p>
*/
inline RebootReplicationInstanceRequest& WithReplicationInstanceArn(const Aws::String& value) { SetReplicationInstanceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the replication instance.</p>
*/
inline RebootReplicationInstanceRequest& WithReplicationInstanceArn(Aws::String&& value) { SetReplicationInstanceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the replication instance.</p>
*/
inline RebootReplicationInstanceRequest& WithReplicationInstanceArn(const char* value) { SetReplicationInstanceArn(value); return *this;}
/**
* <p>If this parameter is <code>true</code>, the reboot is conducted through a
* Multi-AZ failover. (If the instance isn't configured for Multi-AZ, then you
* can't specify <code>true</code>.)</p>
*/
inline bool GetForceFailover() const{ return m_forceFailover; }
/**
* <p>If this parameter is <code>true</code>, the reboot is conducted through a
* Multi-AZ failover. (If the instance isn't configured for Multi-AZ, then you
* can't specify <code>true</code>.)</p>
*/
inline bool ForceFailoverHasBeenSet() const { return m_forceFailoverHasBeenSet; }
/**
* <p>If this parameter is <code>true</code>, the reboot is conducted through a
* Multi-AZ failover. (If the instance isn't configured for Multi-AZ, then you
* can't specify <code>true</code>.)</p>
*/
inline void SetForceFailover(bool value) { m_forceFailoverHasBeenSet = true; m_forceFailover = value; }
/**
* <p>If this parameter is <code>true</code>, the reboot is conducted through a
* Multi-AZ failover. (If the instance isn't configured for Multi-AZ, then you
* can't specify <code>true</code>.)</p>
*/
inline RebootReplicationInstanceRequest& WithForceFailover(bool value) { SetForceFailover(value); return *this;}
private:
Aws::String m_replicationInstanceArn;
bool m_replicationInstanceArnHasBeenSet;
bool m_forceFailover;
bool m_forceFailoverHasBeenSet;
};
} // namespace Model
} // namespace DatabaseMigrationService
} // namespace Aws