/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace DatabaseMigrationService { namespace Model { /** */ class RebootReplicationInstanceRequest : public DatabaseMigrationServiceRequest { public: AWS_DATABASEMIGRATIONSERVICE_API 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_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override; AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the replication instance.

*/ inline const Aws::String& GetReplicationInstanceArn() const{ return m_replicationInstanceArn; } /** *

The Amazon Resource Name (ARN) of the replication instance.

*/ inline bool ReplicationInstanceArnHasBeenSet() const { return m_replicationInstanceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the replication instance.

*/ inline void SetReplicationInstanceArn(const Aws::String& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = value; } /** *

The Amazon Resource Name (ARN) of the replication instance.

*/ inline void SetReplicationInstanceArn(Aws::String&& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the replication instance.

*/ inline void SetReplicationInstanceArn(const char* value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the replication instance.

*/ inline RebootReplicationInstanceRequest& WithReplicationInstanceArn(const Aws::String& value) { SetReplicationInstanceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the replication instance.

*/ inline RebootReplicationInstanceRequest& WithReplicationInstanceArn(Aws::String&& value) { SetReplicationInstanceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the replication instance.

*/ inline RebootReplicationInstanceRequest& WithReplicationInstanceArn(const char* value) { SetReplicationInstanceArn(value); return *this;} /** *

If this parameter is true, the reboot is conducted through a * Multi-AZ failover. If the instance isn't configured for Multi-AZ, then you can't * specify true. ( --force-planned-failover and * --force-failover can't both be set to true.)

*/ inline bool GetForceFailover() const{ return m_forceFailover; } /** *

If this parameter is true, the reboot is conducted through a * Multi-AZ failover. If the instance isn't configured for Multi-AZ, then you can't * specify true. ( --force-planned-failover and * --force-failover can't both be set to true.)

*/ inline bool ForceFailoverHasBeenSet() const { return m_forceFailoverHasBeenSet; } /** *

If this parameter is true, the reboot is conducted through a * Multi-AZ failover. If the instance isn't configured for Multi-AZ, then you can't * specify true. ( --force-planned-failover and * --force-failover can't both be set to true.)

*/ inline void SetForceFailover(bool value) { m_forceFailoverHasBeenSet = true; m_forceFailover = value; } /** *

If this parameter is true, the reboot is conducted through a * Multi-AZ failover. If the instance isn't configured for Multi-AZ, then you can't * specify true. ( --force-planned-failover and * --force-failover can't both be set to true.)

*/ inline RebootReplicationInstanceRequest& WithForceFailover(bool value) { SetForceFailover(value); return *this;} /** *

If this parameter is true, the reboot is conducted through a * planned Multi-AZ failover where resources are released and cleaned up prior to * conducting the failover. If the instance isn''t configured for Multi-AZ, then * you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.)

*/ inline bool GetForcePlannedFailover() const{ return m_forcePlannedFailover; } /** *

If this parameter is true, the reboot is conducted through a * planned Multi-AZ failover where resources are released and cleaned up prior to * conducting the failover. If the instance isn''t configured for Multi-AZ, then * you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.)

*/ inline bool ForcePlannedFailoverHasBeenSet() const { return m_forcePlannedFailoverHasBeenSet; } /** *

If this parameter is true, the reboot is conducted through a * planned Multi-AZ failover where resources are released and cleaned up prior to * conducting the failover. If the instance isn''t configured for Multi-AZ, then * you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.)

*/ inline void SetForcePlannedFailover(bool value) { m_forcePlannedFailoverHasBeenSet = true; m_forcePlannedFailover = value; } /** *

If this parameter is true, the reboot is conducted through a * planned Multi-AZ failover where resources are released and cleaned up prior to * conducting the failover. If the instance isn''t configured for Multi-AZ, then * you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.)

*/ inline RebootReplicationInstanceRequest& WithForcePlannedFailover(bool value) { SetForcePlannedFailover(value); return *this;} private: Aws::String m_replicationInstanceArn; bool m_replicationInstanceArnHasBeenSet = false; bool m_forceFailover; bool m_forceFailoverHasBeenSet = false; bool m_forcePlannedFailover; bool m_forcePlannedFailoverHasBeenSet = false; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws