/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MemoryDB { namespace Model { /** *

Represents a copy of an entire cluster as of the time when the snapshot was * taken.

See Also:

AWS * API Reference

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

The name of the snapshot

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the snapshot

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the snapshot

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the snapshot

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the snapshot

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the snapshot

*/ inline Snapshot& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the snapshot

*/ inline Snapshot& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the snapshot

*/ inline Snapshot& WithName(const char* value) { SetName(value); return *this;} /** *

The status of the snapshot. Valid values: creating | available | restoring | * copying | deleting.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the snapshot. Valid values: creating | available | restoring | * copying | deleting.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the snapshot. Valid values: creating | available | restoring | * copying | deleting.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the snapshot. Valid values: creating | available | restoring | * copying | deleting.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the snapshot. Valid values: creating | available | restoring | * copying | deleting.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the snapshot. Valid values: creating | available | restoring | * copying | deleting.

*/ inline Snapshot& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the snapshot. Valid values: creating | available | restoring | * copying | deleting.

*/ inline Snapshot& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the snapshot. Valid values: creating | available | restoring | * copying | deleting.

*/ inline Snapshot& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

Indicates whether the snapshot is from an automatic backup (automated) or was * created manually (manual).

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

Indicates whether the snapshot is from an automatic backup (automated) or was * created manually (manual).

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

Indicates whether the snapshot is from an automatic backup (automated) or was * created manually (manual).

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

Indicates whether the snapshot is from an automatic backup (automated) or was * created manually (manual).

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

Indicates whether the snapshot is from an automatic backup (automated) or was * created manually (manual).

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

Indicates whether the snapshot is from an automatic backup (automated) or was * created manually (manual).

*/ inline Snapshot& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

Indicates whether the snapshot is from an automatic backup (automated) or was * created manually (manual).

*/ inline Snapshot& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

Indicates whether the snapshot is from an automatic backup (automated) or was * created manually (manual).

*/ inline Snapshot& WithSource(const char* value) { SetSource(value); return *this;} /** *

The ID of the KMS key used to encrypt the snapshot.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The ID of the KMS key used to encrypt the snapshot.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The ID of the KMS key used to encrypt the snapshot.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The ID of the KMS key used to encrypt the snapshot.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The ID of the KMS key used to encrypt the snapshot.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The ID of the KMS key used to encrypt the snapshot.

*/ inline Snapshot& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The ID of the KMS key used to encrypt the snapshot.

*/ inline Snapshot& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The ID of the KMS key used to encrypt the snapshot.

*/ inline Snapshot& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

The ARN (Amazon Resource Name) of the snapshot.

*/ inline const Aws::String& GetARN() const{ return m_aRN; } /** *

The ARN (Amazon Resource Name) of the snapshot.

*/ inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; } /** *

The ARN (Amazon Resource Name) of the snapshot.

*/ inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; } /** *

The ARN (Amazon Resource Name) of the snapshot.

*/ inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); } /** *

The ARN (Amazon Resource Name) of the snapshot.

*/ inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); } /** *

The ARN (Amazon Resource Name) of the snapshot.

*/ inline Snapshot& WithARN(const Aws::String& value) { SetARN(value); return *this;} /** *

The ARN (Amazon Resource Name) of the snapshot.

*/ inline Snapshot& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} /** *

The ARN (Amazon Resource Name) of the snapshot.

*/ inline Snapshot& WithARN(const char* value) { SetARN(value); return *this;} /** *

The configuration of the cluster from which the snapshot was taken

*/ inline const ClusterConfiguration& GetClusterConfiguration() const{ return m_clusterConfiguration; } /** *

The configuration of the cluster from which the snapshot was taken

*/ inline bool ClusterConfigurationHasBeenSet() const { return m_clusterConfigurationHasBeenSet; } /** *

The configuration of the cluster from which the snapshot was taken

*/ inline void SetClusterConfiguration(const ClusterConfiguration& value) { m_clusterConfigurationHasBeenSet = true; m_clusterConfiguration = value; } /** *

The configuration of the cluster from which the snapshot was taken

*/ inline void SetClusterConfiguration(ClusterConfiguration&& value) { m_clusterConfigurationHasBeenSet = true; m_clusterConfiguration = std::move(value); } /** *

The configuration of the cluster from which the snapshot was taken

*/ inline Snapshot& WithClusterConfiguration(const ClusterConfiguration& value) { SetClusterConfiguration(value); return *this;} /** *

The configuration of the cluster from which the snapshot was taken

*/ inline Snapshot& WithClusterConfiguration(ClusterConfiguration&& value) { SetClusterConfiguration(std::move(value)); return *this;} /** *

Enables data tiering. Data tiering is only supported for clusters using the * r6gd node type. This parameter must be set when using r6gd nodes. For more * information, see Data * tiering.

*/ inline const DataTieringStatus& GetDataTiering() const{ return m_dataTiering; } /** *

Enables data tiering. Data tiering is only supported for clusters using the * r6gd node type. This parameter must be set when using r6gd nodes. For more * information, see Data * tiering.

*/ inline bool DataTieringHasBeenSet() const { return m_dataTieringHasBeenSet; } /** *

Enables data tiering. Data tiering is only supported for clusters using the * r6gd node type. This parameter must be set when using r6gd nodes. For more * information, see Data * tiering.

*/ inline void SetDataTiering(const DataTieringStatus& value) { m_dataTieringHasBeenSet = true; m_dataTiering = value; } /** *

Enables data tiering. Data tiering is only supported for clusters using the * r6gd node type. This parameter must be set when using r6gd nodes. For more * information, see Data * tiering.

*/ inline void SetDataTiering(DataTieringStatus&& value) { m_dataTieringHasBeenSet = true; m_dataTiering = std::move(value); } /** *

Enables data tiering. Data tiering is only supported for clusters using the * r6gd node type. This parameter must be set when using r6gd nodes. For more * information, see Data * tiering.

*/ inline Snapshot& WithDataTiering(const DataTieringStatus& value) { SetDataTiering(value); return *this;} /** *

Enables data tiering. Data tiering is only supported for clusters using the * r6gd node type. This parameter must be set when using r6gd nodes. For more * information, see Data * tiering.

*/ inline Snapshot& WithDataTiering(DataTieringStatus&& value) { SetDataTiering(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::String m_aRN; bool m_aRNHasBeenSet = false; ClusterConfiguration m_clusterConfiguration; bool m_clusterConfigurationHasBeenSet = false; DataTieringStatus m_dataTiering; bool m_dataTieringHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws