233 lines
11 KiB
C
233 lines
11 KiB
C
|
|
/**
|
|||
|
|
* 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
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p/><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ApplyPendingMaintenanceActionMessage">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_DATABASEMIGRATIONSERVICE_API ApplyPendingMaintenanceActionRequest : public DatabaseMigrationServiceRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
ApplyPendingMaintenanceActionRequest();
|
|||
|
|
|
|||
|
|
// 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 "ApplyPendingMaintenanceAction"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the AWS DMS resource that the pending
|
|||
|
|
* maintenance action applies to.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetReplicationInstanceArn() const{ return m_replicationInstanceArn; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the AWS DMS resource that the pending
|
|||
|
|
* maintenance action applies to.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ReplicationInstanceArnHasBeenSet() const { return m_replicationInstanceArnHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the AWS DMS resource that the pending
|
|||
|
|
* maintenance action applies to.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetReplicationInstanceArn(const Aws::String& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the AWS DMS resource that the pending
|
|||
|
|
* maintenance action applies to.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetReplicationInstanceArn(Aws::String&& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the AWS DMS resource that the pending
|
|||
|
|
* maintenance action applies to.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetReplicationInstanceArn(const char* value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the AWS DMS resource that the pending
|
|||
|
|
* maintenance action applies to.</p>
|
|||
|
|
*/
|
|||
|
|
inline ApplyPendingMaintenanceActionRequest& WithReplicationInstanceArn(const Aws::String& value) { SetReplicationInstanceArn(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the AWS DMS resource that the pending
|
|||
|
|
* maintenance action applies to.</p>
|
|||
|
|
*/
|
|||
|
|
inline ApplyPendingMaintenanceActionRequest& WithReplicationInstanceArn(Aws::String&& value) { SetReplicationInstanceArn(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the AWS DMS resource that the pending
|
|||
|
|
* maintenance action applies to.</p>
|
|||
|
|
*/
|
|||
|
|
inline ApplyPendingMaintenanceActionRequest& WithReplicationInstanceArn(const char* value) { SetReplicationInstanceArn(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The pending maintenance action to apply to this resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetApplyAction() const{ return m_applyAction; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The pending maintenance action to apply to this resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ApplyActionHasBeenSet() const { return m_applyActionHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The pending maintenance action to apply to this resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetApplyAction(const Aws::String& value) { m_applyActionHasBeenSet = true; m_applyAction = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The pending maintenance action to apply to this resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetApplyAction(Aws::String&& value) { m_applyActionHasBeenSet = true; m_applyAction = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The pending maintenance action to apply to this resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetApplyAction(const char* value) { m_applyActionHasBeenSet = true; m_applyAction.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The pending maintenance action to apply to this resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline ApplyPendingMaintenanceActionRequest& WithApplyAction(const Aws::String& value) { SetApplyAction(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The pending maintenance action to apply to this resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline ApplyPendingMaintenanceActionRequest& WithApplyAction(Aws::String&& value) { SetApplyAction(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The pending maintenance action to apply to this resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline ApplyPendingMaintenanceActionRequest& WithApplyAction(const char* value) { SetApplyAction(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that specifies the type of opt-in request, or undoes an opt-in
|
|||
|
|
* request. You can't undo an opt-in request of type <code>immediate</code>.</p>
|
|||
|
|
* <p>Valid values:</p> <ul> <li> <p> <code>immediate</code> - Apply the
|
|||
|
|
* maintenance action immediately.</p> </li> <li> <p> <code>next-maintenance</code>
|
|||
|
|
* - Apply the maintenance action during the next maintenance window for the
|
|||
|
|
* resource.</p> </li> <li> <p> <code>undo-opt-in</code> - Cancel any existing
|
|||
|
|
* <code>next-maintenance</code> opt-in requests.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetOptInType() const{ return m_optInType; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that specifies the type of opt-in request, or undoes an opt-in
|
|||
|
|
* request. You can't undo an opt-in request of type <code>immediate</code>.</p>
|
|||
|
|
* <p>Valid values:</p> <ul> <li> <p> <code>immediate</code> - Apply the
|
|||
|
|
* maintenance action immediately.</p> </li> <li> <p> <code>next-maintenance</code>
|
|||
|
|
* - Apply the maintenance action during the next maintenance window for the
|
|||
|
|
* resource.</p> </li> <li> <p> <code>undo-opt-in</code> - Cancel any existing
|
|||
|
|
* <code>next-maintenance</code> opt-in requests.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline bool OptInTypeHasBeenSet() const { return m_optInTypeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that specifies the type of opt-in request, or undoes an opt-in
|
|||
|
|
* request. You can't undo an opt-in request of type <code>immediate</code>.</p>
|
|||
|
|
* <p>Valid values:</p> <ul> <li> <p> <code>immediate</code> - Apply the
|
|||
|
|
* maintenance action immediately.</p> </li> <li> <p> <code>next-maintenance</code>
|
|||
|
|
* - Apply the maintenance action during the next maintenance window for the
|
|||
|
|
* resource.</p> </li> <li> <p> <code>undo-opt-in</code> - Cancel any existing
|
|||
|
|
* <code>next-maintenance</code> opt-in requests.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline void SetOptInType(const Aws::String& value) { m_optInTypeHasBeenSet = true; m_optInType = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that specifies the type of opt-in request, or undoes an opt-in
|
|||
|
|
* request. You can't undo an opt-in request of type <code>immediate</code>.</p>
|
|||
|
|
* <p>Valid values:</p> <ul> <li> <p> <code>immediate</code> - Apply the
|
|||
|
|
* maintenance action immediately.</p> </li> <li> <p> <code>next-maintenance</code>
|
|||
|
|
* - Apply the maintenance action during the next maintenance window for the
|
|||
|
|
* resource.</p> </li> <li> <p> <code>undo-opt-in</code> - Cancel any existing
|
|||
|
|
* <code>next-maintenance</code> opt-in requests.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline void SetOptInType(Aws::String&& value) { m_optInTypeHasBeenSet = true; m_optInType = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that specifies the type of opt-in request, or undoes an opt-in
|
|||
|
|
* request. You can't undo an opt-in request of type <code>immediate</code>.</p>
|
|||
|
|
* <p>Valid values:</p> <ul> <li> <p> <code>immediate</code> - Apply the
|
|||
|
|
* maintenance action immediately.</p> </li> <li> <p> <code>next-maintenance</code>
|
|||
|
|
* - Apply the maintenance action during the next maintenance window for the
|
|||
|
|
* resource.</p> </li> <li> <p> <code>undo-opt-in</code> - Cancel any existing
|
|||
|
|
* <code>next-maintenance</code> opt-in requests.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline void SetOptInType(const char* value) { m_optInTypeHasBeenSet = true; m_optInType.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that specifies the type of opt-in request, or undoes an opt-in
|
|||
|
|
* request. You can't undo an opt-in request of type <code>immediate</code>.</p>
|
|||
|
|
* <p>Valid values:</p> <ul> <li> <p> <code>immediate</code> - Apply the
|
|||
|
|
* maintenance action immediately.</p> </li> <li> <p> <code>next-maintenance</code>
|
|||
|
|
* - Apply the maintenance action during the next maintenance window for the
|
|||
|
|
* resource.</p> </li> <li> <p> <code>undo-opt-in</code> - Cancel any existing
|
|||
|
|
* <code>next-maintenance</code> opt-in requests.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline ApplyPendingMaintenanceActionRequest& WithOptInType(const Aws::String& value) { SetOptInType(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that specifies the type of opt-in request, or undoes an opt-in
|
|||
|
|
* request. You can't undo an opt-in request of type <code>immediate</code>.</p>
|
|||
|
|
* <p>Valid values:</p> <ul> <li> <p> <code>immediate</code> - Apply the
|
|||
|
|
* maintenance action immediately.</p> </li> <li> <p> <code>next-maintenance</code>
|
|||
|
|
* - Apply the maintenance action during the next maintenance window for the
|
|||
|
|
* resource.</p> </li> <li> <p> <code>undo-opt-in</code> - Cancel any existing
|
|||
|
|
* <code>next-maintenance</code> opt-in requests.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline ApplyPendingMaintenanceActionRequest& WithOptInType(Aws::String&& value) { SetOptInType(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A value that specifies the type of opt-in request, or undoes an opt-in
|
|||
|
|
* request. You can't undo an opt-in request of type <code>immediate</code>.</p>
|
|||
|
|
* <p>Valid values:</p> <ul> <li> <p> <code>immediate</code> - Apply the
|
|||
|
|
* maintenance action immediately.</p> </li> <li> <p> <code>next-maintenance</code>
|
|||
|
|
* - Apply the maintenance action during the next maintenance window for the
|
|||
|
|
* resource.</p> </li> <li> <p> <code>undo-opt-in</code> - Cancel any existing
|
|||
|
|
* <code>next-maintenance</code> opt-in requests.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline ApplyPendingMaintenanceActionRequest& WithOptInType(const char* value) { SetOptInType(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_replicationInstanceArn;
|
|||
|
|
bool m_replicationInstanceArnHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_applyAction;
|
|||
|
|
bool m_applyActionHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_optInType;
|
|||
|
|
bool m_optInTypeHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace DatabaseMigrationService
|
|||
|
|
} // namespace Aws
|