/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Backup { namespace Model { /** *

The details of the copy operation.

See Also:

AWS * API Reference

*/ class CopyAction { public: AWS_BACKUP_API CopyAction(); AWS_BACKUP_API CopyAction(Aws::Utils::Json::JsonView jsonValue); AWS_BACKUP_API CopyAction& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Lifecycle& GetLifecycle() const{ return m_lifecycle; } inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; } inline void SetLifecycle(const Lifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; } inline void SetLifecycle(Lifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); } inline CopyAction& WithLifecycle(const Lifecycle& value) { SetLifecycle(value); return *this;} inline CopyAction& WithLifecycle(Lifecycle&& value) { SetLifecycle(std::move(value)); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies the destination backup * vault for the copied backup. For example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline const Aws::String& GetDestinationBackupVaultArn() const{ return m_destinationBackupVaultArn; } /** *

An Amazon Resource Name (ARN) that uniquely identifies the destination backup * vault for the copied backup. For example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline bool DestinationBackupVaultArnHasBeenSet() const { return m_destinationBackupVaultArnHasBeenSet; } /** *

An Amazon Resource Name (ARN) that uniquely identifies the destination backup * vault for the copied backup. For example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline void SetDestinationBackupVaultArn(const Aws::String& value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn = value; } /** *

An Amazon Resource Name (ARN) that uniquely identifies the destination backup * vault for the copied backup. For example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline void SetDestinationBackupVaultArn(Aws::String&& value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn = std::move(value); } /** *

An Amazon Resource Name (ARN) that uniquely identifies the destination backup * vault for the copied backup. For example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline void SetDestinationBackupVaultArn(const char* value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn.assign(value); } /** *

An Amazon Resource Name (ARN) that uniquely identifies the destination backup * vault for the copied backup. For example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline CopyAction& WithDestinationBackupVaultArn(const Aws::String& value) { SetDestinationBackupVaultArn(value); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies the destination backup * vault for the copied backup. For example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline CopyAction& WithDestinationBackupVaultArn(Aws::String&& value) { SetDestinationBackupVaultArn(std::move(value)); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies the destination backup * vault for the copied backup. For example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

*/ inline CopyAction& WithDestinationBackupVaultArn(const char* value) { SetDestinationBackupVaultArn(value); return *this;} private: Lifecycle m_lifecycle; bool m_lifecycleHasBeenSet = false; Aws::String m_destinationBackupVaultArn; bool m_destinationBackupVaultArnHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws