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

The automatically created recovery point of a namespace. Recovery points are * created every 30 minutes and kept for 24 hours.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the namespace the recovery point is * associated with.

*/ inline const Aws::String& GetNamespaceArn() const{ return m_namespaceArn; } /** *

The Amazon Resource Name (ARN) of the namespace the recovery point is * associated with.

*/ inline bool NamespaceArnHasBeenSet() const { return m_namespaceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the namespace the recovery point is * associated with.

*/ inline void SetNamespaceArn(const Aws::String& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = value; } /** *

The Amazon Resource Name (ARN) of the namespace the recovery point is * associated with.

*/ inline void SetNamespaceArn(Aws::String&& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the namespace the recovery point is * associated with.

*/ inline void SetNamespaceArn(const char* value) { m_namespaceArnHasBeenSet = true; m_namespaceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the namespace the recovery point is * associated with.

*/ inline RecoveryPoint& WithNamespaceArn(const Aws::String& value) { SetNamespaceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the namespace the recovery point is * associated with.

*/ inline RecoveryPoint& WithNamespaceArn(Aws::String&& value) { SetNamespaceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the namespace the recovery point is * associated with.

*/ inline RecoveryPoint& WithNamespaceArn(const char* value) { SetNamespaceArn(value); return *this;} /** *

The name of the namespace the recovery point is associated with.

*/ inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; } /** *

The name of the namespace the recovery point is associated with.

*/ inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; } /** *

The name of the namespace the recovery point is associated with.

*/ inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; } /** *

The name of the namespace the recovery point is associated with.

*/ inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); } /** *

The name of the namespace the recovery point is associated with.

*/ inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); } /** *

The name of the namespace the recovery point is associated with.

*/ inline RecoveryPoint& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;} /** *

The name of the namespace the recovery point is associated with.

*/ inline RecoveryPoint& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;} /** *

The name of the namespace the recovery point is associated with.

*/ inline RecoveryPoint& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;} /** *

The time the recovery point is created.

*/ inline const Aws::Utils::DateTime& GetRecoveryPointCreateTime() const{ return m_recoveryPointCreateTime; } /** *

The time the recovery point is created.

*/ inline bool RecoveryPointCreateTimeHasBeenSet() const { return m_recoveryPointCreateTimeHasBeenSet; } /** *

The time the recovery point is created.

*/ inline void SetRecoveryPointCreateTime(const Aws::Utils::DateTime& value) { m_recoveryPointCreateTimeHasBeenSet = true; m_recoveryPointCreateTime = value; } /** *

The time the recovery point is created.

*/ inline void SetRecoveryPointCreateTime(Aws::Utils::DateTime&& value) { m_recoveryPointCreateTimeHasBeenSet = true; m_recoveryPointCreateTime = std::move(value); } /** *

The time the recovery point is created.

*/ inline RecoveryPoint& WithRecoveryPointCreateTime(const Aws::Utils::DateTime& value) { SetRecoveryPointCreateTime(value); return *this;} /** *

The time the recovery point is created.

*/ inline RecoveryPoint& WithRecoveryPointCreateTime(Aws::Utils::DateTime&& value) { SetRecoveryPointCreateTime(std::move(value)); return *this;} /** *

The unique identifier of the recovery point.

*/ inline const Aws::String& GetRecoveryPointId() const{ return m_recoveryPointId; } /** *

The unique identifier of the recovery point.

*/ inline bool RecoveryPointIdHasBeenSet() const { return m_recoveryPointIdHasBeenSet; } /** *

The unique identifier of the recovery point.

*/ inline void SetRecoveryPointId(const Aws::String& value) { m_recoveryPointIdHasBeenSet = true; m_recoveryPointId = value; } /** *

The unique identifier of the recovery point.

*/ inline void SetRecoveryPointId(Aws::String&& value) { m_recoveryPointIdHasBeenSet = true; m_recoveryPointId = std::move(value); } /** *

The unique identifier of the recovery point.

*/ inline void SetRecoveryPointId(const char* value) { m_recoveryPointIdHasBeenSet = true; m_recoveryPointId.assign(value); } /** *

The unique identifier of the recovery point.

*/ inline RecoveryPoint& WithRecoveryPointId(const Aws::String& value) { SetRecoveryPointId(value); return *this;} /** *

The unique identifier of the recovery point.

*/ inline RecoveryPoint& WithRecoveryPointId(Aws::String&& value) { SetRecoveryPointId(std::move(value)); return *this;} /** *

The unique identifier of the recovery point.

*/ inline RecoveryPoint& WithRecoveryPointId(const char* value) { SetRecoveryPointId(value); return *this;} /** *

The total size of the data in the recovery point in megabytes.

*/ inline double GetTotalSizeInMegaBytes() const{ return m_totalSizeInMegaBytes; } /** *

The total size of the data in the recovery point in megabytes.

*/ inline bool TotalSizeInMegaBytesHasBeenSet() const { return m_totalSizeInMegaBytesHasBeenSet; } /** *

The total size of the data in the recovery point in megabytes.

*/ inline void SetTotalSizeInMegaBytes(double value) { m_totalSizeInMegaBytesHasBeenSet = true; m_totalSizeInMegaBytes = value; } /** *

The total size of the data in the recovery point in megabytes.

*/ inline RecoveryPoint& WithTotalSizeInMegaBytes(double value) { SetTotalSizeInMegaBytes(value); return *this;} /** *

The name of the workgroup the recovery point is associated with.

*/ inline const Aws::String& GetWorkgroupName() const{ return m_workgroupName; } /** *

The name of the workgroup the recovery point is associated with.

*/ inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; } /** *

The name of the workgroup the recovery point is associated with.

*/ inline void SetWorkgroupName(const Aws::String& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = value; } /** *

The name of the workgroup the recovery point is associated with.

*/ inline void SetWorkgroupName(Aws::String&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::move(value); } /** *

The name of the workgroup the recovery point is associated with.

*/ inline void SetWorkgroupName(const char* value) { m_workgroupNameHasBeenSet = true; m_workgroupName.assign(value); } /** *

The name of the workgroup the recovery point is associated with.

*/ inline RecoveryPoint& WithWorkgroupName(const Aws::String& value) { SetWorkgroupName(value); return *this;} /** *

The name of the workgroup the recovery point is associated with.

*/ inline RecoveryPoint& WithWorkgroupName(Aws::String&& value) { SetWorkgroupName(std::move(value)); return *this;} /** *

The name of the workgroup the recovery point is associated with.

*/ inline RecoveryPoint& WithWorkgroupName(const char* value) { SetWorkgroupName(value); return *this;} private: Aws::String m_namespaceArn; bool m_namespaceArnHasBeenSet = false; Aws::String m_namespaceName; bool m_namespaceNameHasBeenSet = false; Aws::Utils::DateTime m_recoveryPointCreateTime; bool m_recoveryPointCreateTimeHasBeenSet = false; Aws::String m_recoveryPointId; bool m_recoveryPointIdHasBeenSet = false; double m_totalSizeInMegaBytes; bool m_totalSizeInMegaBytesHasBeenSet = false; Aws::String m_workgroupName; bool m_workgroupNameHasBeenSet = false; }; } // namespace Model } // namespace RedshiftServerless } // namespace Aws