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

Provides details of a shard in a snapshot

See Also:

AWS * API Reference

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

The name of the shard

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

The name of the shard

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

The name of the shard

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

The name of the shard

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

The name of the shard

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

The name of the shard

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

The name of the shard

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

The name of the shard

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

The configuration details of the shard

*/ inline const ShardConfiguration& GetConfiguration() const{ return m_configuration; } /** *

The configuration details of the shard

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

The configuration details of the shard

*/ inline void SetConfiguration(const ShardConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

The configuration details of the shard

*/ inline void SetConfiguration(ShardConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

The configuration details of the shard

*/ inline ShardDetail& WithConfiguration(const ShardConfiguration& value) { SetConfiguration(value); return *this;} /** *

The configuration details of the shard

*/ inline ShardDetail& WithConfiguration(ShardConfiguration&& value) { SetConfiguration(std::move(value)); return *this;} /** *

The size of the shard's snapshot

*/ inline const Aws::String& GetSize() const{ return m_size; } /** *

The size of the shard's snapshot

*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *

The size of the shard's snapshot

*/ inline void SetSize(const Aws::String& value) { m_sizeHasBeenSet = true; m_size = value; } /** *

The size of the shard's snapshot

*/ inline void SetSize(Aws::String&& value) { m_sizeHasBeenSet = true; m_size = std::move(value); } /** *

The size of the shard's snapshot

*/ inline void SetSize(const char* value) { m_sizeHasBeenSet = true; m_size.assign(value); } /** *

The size of the shard's snapshot

*/ inline ShardDetail& WithSize(const Aws::String& value) { SetSize(value); return *this;} /** *

The size of the shard's snapshot

*/ inline ShardDetail& WithSize(Aws::String&& value) { SetSize(std::move(value)); return *this;} /** *

The size of the shard's snapshot

*/ inline ShardDetail& WithSize(const char* value) { SetSize(value); return *this;} /** *

The date and time that the shard's snapshot was created

*/ inline const Aws::Utils::DateTime& GetSnapshotCreationTime() const{ return m_snapshotCreationTime; } /** *

The date and time that the shard's snapshot was created

*/ inline bool SnapshotCreationTimeHasBeenSet() const { return m_snapshotCreationTimeHasBeenSet; } /** *

The date and time that the shard's snapshot was created

*/ inline void SetSnapshotCreationTime(const Aws::Utils::DateTime& value) { m_snapshotCreationTimeHasBeenSet = true; m_snapshotCreationTime = value; } /** *

The date and time that the shard's snapshot was created

*/ inline void SetSnapshotCreationTime(Aws::Utils::DateTime&& value) { m_snapshotCreationTimeHasBeenSet = true; m_snapshotCreationTime = std::move(value); } /** *

The date and time that the shard's snapshot was created

*/ inline ShardDetail& WithSnapshotCreationTime(const Aws::Utils::DateTime& value) { SetSnapshotCreationTime(value); return *this;} /** *

The date and time that the shard's snapshot was created

*/ inline ShardDetail& WithSnapshotCreationTime(Aws::Utils::DateTime&& value) { SetSnapshotCreationTime(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; ShardConfiguration m_configuration; bool m_configurationHasBeenSet = false; Aws::String m_size; bool m_sizeHasBeenSet = false; Aws::Utils::DateTime m_snapshotCreationTime; bool m_snapshotCreationTimeHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws