/** * 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 SecurityHub { namespace Model { /** *

An array of CopyAction objects, each of which contains details * of the copy operation.

See Also:

AWS * API Reference

*/ class AwsBackupBackupPlanRuleCopyActionsDetails { public: AWS_SECURITYHUB_API AwsBackupBackupPlanRuleCopyActionsDetails(); AWS_SECURITYHUB_API AwsBackupBackupPlanRuleCopyActionsDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsBackupBackupPlanRuleCopyActionsDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An Amazon Resource Name (ARN) that uniquely identifies the destination backup * vault for the copied backup.

*/ 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.

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

An Amazon Resource Name (ARN) that uniquely identifies the destination backup * vault for the copied backup.

*/ 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.

*/ 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.

*/ 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.

*/ inline AwsBackupBackupPlanRuleCopyActionsDetails& 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.

*/ inline AwsBackupBackupPlanRuleCopyActionsDetails& 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.

*/ inline AwsBackupBackupPlanRuleCopyActionsDetails& WithDestinationBackupVaultArn(const char* value) { SetDestinationBackupVaultArn(value); return *this;} /** *

Defines when a protected resource is transitioned to cold storage and when it * expires. Backup transitions and expires backups automatically according to the * lifecycle that you define. If you do not specify a lifecycle, Backup applies the * lifecycle policy of the source backup to the destination backup.

Backups * transitioned to cold storage must be stored in cold storage for a minimum of 90 * days.

*/ inline const AwsBackupBackupPlanLifecycleDetails& GetLifecycle() const{ return m_lifecycle; } /** *

Defines when a protected resource is transitioned to cold storage and when it * expires. Backup transitions and expires backups automatically according to the * lifecycle that you define. If you do not specify a lifecycle, Backup applies the * lifecycle policy of the source backup to the destination backup.

Backups * transitioned to cold storage must be stored in cold storage for a minimum of 90 * days.

*/ inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; } /** *

Defines when a protected resource is transitioned to cold storage and when it * expires. Backup transitions and expires backups automatically according to the * lifecycle that you define. If you do not specify a lifecycle, Backup applies the * lifecycle policy of the source backup to the destination backup.

Backups * transitioned to cold storage must be stored in cold storage for a minimum of 90 * days.

*/ inline void SetLifecycle(const AwsBackupBackupPlanLifecycleDetails& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; } /** *

Defines when a protected resource is transitioned to cold storage and when it * expires. Backup transitions and expires backups automatically according to the * lifecycle that you define. If you do not specify a lifecycle, Backup applies the * lifecycle policy of the source backup to the destination backup.

Backups * transitioned to cold storage must be stored in cold storage for a minimum of 90 * days.

*/ inline void SetLifecycle(AwsBackupBackupPlanLifecycleDetails&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); } /** *

Defines when a protected resource is transitioned to cold storage and when it * expires. Backup transitions and expires backups automatically according to the * lifecycle that you define. If you do not specify a lifecycle, Backup applies the * lifecycle policy of the source backup to the destination backup.

Backups * transitioned to cold storage must be stored in cold storage for a minimum of 90 * days.

*/ inline AwsBackupBackupPlanRuleCopyActionsDetails& WithLifecycle(const AwsBackupBackupPlanLifecycleDetails& value) { SetLifecycle(value); return *this;} /** *

Defines when a protected resource is transitioned to cold storage and when it * expires. Backup transitions and expires backups automatically according to the * lifecycle that you define. If you do not specify a lifecycle, Backup applies the * lifecycle policy of the source backup to the destination backup.

Backups * transitioned to cold storage must be stored in cold storage for a minimum of 90 * days.

*/ inline AwsBackupBackupPlanRuleCopyActionsDetails& WithLifecycle(AwsBackupBackupPlanLifecycleDetails&& value) { SetLifecycle(std::move(value)); return *this;} private: Aws::String m_destinationBackupVaultArn; bool m_destinationBackupVaultArnHasBeenSet = false; AwsBackupBackupPlanLifecycleDetails m_lifecycle; bool m_lifecycleHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws