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

Describes a database snapshot.

See Also:

AWS * API Reference

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

The name of the database snapshot.

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

The name of the database snapshot.

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

The name of the database snapshot.

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

The name of the database snapshot.

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

The name of the database snapshot.

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

The name of the database snapshot.

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

The name of the database snapshot.

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

The name of the database snapshot.

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

The Amazon Resource Name (ARN) of the database snapshot.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the database snapshot.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the database snapshot.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the database snapshot.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the database snapshot.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the database snapshot.

*/ inline RelationalDatabaseSnapshot& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the database snapshot.

*/ inline RelationalDatabaseSnapshot& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the database snapshot.

*/ inline RelationalDatabaseSnapshot& WithArn(const char* value) { SetArn(value); return *this;} /** *

The support code for the database snapshot. Include this code in your email * to support when you have questions about a database snapshot in Lightsail. This * code enables our support team to look up your Lightsail information more * easily.

*/ inline const Aws::String& GetSupportCode() const{ return m_supportCode; } /** *

The support code for the database snapshot. Include this code in your email * to support when you have questions about a database snapshot in Lightsail. This * code enables our support team to look up your Lightsail information more * easily.

*/ inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; } /** *

The support code for the database snapshot. Include this code in your email * to support when you have questions about a database snapshot in Lightsail. This * code enables our support team to look up your Lightsail information more * easily.

*/ inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; } /** *

The support code for the database snapshot. Include this code in your email * to support when you have questions about a database snapshot in Lightsail. This * code enables our support team to look up your Lightsail information more * easily.

*/ inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); } /** *

The support code for the database snapshot. Include this code in your email * to support when you have questions about a database snapshot in Lightsail. This * code enables our support team to look up your Lightsail information more * easily.

*/ inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); } /** *

The support code for the database snapshot. Include this code in your email * to support when you have questions about a database snapshot in Lightsail. This * code enables our support team to look up your Lightsail information more * easily.

*/ inline RelationalDatabaseSnapshot& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;} /** *

The support code for the database snapshot. Include this code in your email * to support when you have questions about a database snapshot in Lightsail. This * code enables our support team to look up your Lightsail information more * easily.

*/ inline RelationalDatabaseSnapshot& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;} /** *

The support code for the database snapshot. Include this code in your email * to support when you have questions about a database snapshot in Lightsail. This * code enables our support team to look up your Lightsail information more * easily.

*/ inline RelationalDatabaseSnapshot& WithSupportCode(const char* value) { SetSupportCode(value); return *this;} /** *

The timestamp when the database snapshot was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The timestamp when the database snapshot was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The timestamp when the database snapshot was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The timestamp when the database snapshot was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The timestamp when the database snapshot was created.

*/ inline RelationalDatabaseSnapshot& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The timestamp when the database snapshot was created.

*/ inline RelationalDatabaseSnapshot& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The Region name and Availability Zone where the database snapshot is * located.

*/ inline const ResourceLocation& GetLocation() const{ return m_location; } /** *

The Region name and Availability Zone where the database snapshot is * located.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

The Region name and Availability Zone where the database snapshot is * located.

*/ inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; } /** *

The Region name and Availability Zone where the database snapshot is * located.

*/ inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

The Region name and Availability Zone where the database snapshot is * located.

*/ inline RelationalDatabaseSnapshot& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;} /** *

The Region name and Availability Zone where the database snapshot is * located.

*/ inline RelationalDatabaseSnapshot& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;} /** *

The Lightsail resource type.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The Lightsail resource type.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The Lightsail resource type.

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The Lightsail resource type.

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The Lightsail resource type.

*/ inline RelationalDatabaseSnapshot& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The Lightsail resource type.

*/ inline RelationalDatabaseSnapshot& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline RelationalDatabaseSnapshot& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline RelationalDatabaseSnapshot& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline RelationalDatabaseSnapshot& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline RelationalDatabaseSnapshot& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The software of the database snapshot (for example, MySQL)

*/ inline const Aws::String& GetEngine() const{ return m_engine; } /** *

The software of the database snapshot (for example, MySQL)

*/ inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; } /** *

The software of the database snapshot (for example, MySQL)

*/ inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; } /** *

The software of the database snapshot (for example, MySQL)

*/ inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); } /** *

The software of the database snapshot (for example, MySQL)

*/ inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); } /** *

The software of the database snapshot (for example, MySQL)

*/ inline RelationalDatabaseSnapshot& WithEngine(const Aws::String& value) { SetEngine(value); return *this;} /** *

The software of the database snapshot (for example, MySQL)

*/ inline RelationalDatabaseSnapshot& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;} /** *

The software of the database snapshot (for example, MySQL)

*/ inline RelationalDatabaseSnapshot& WithEngine(const char* value) { SetEngine(value); return *this;} /** *

The database engine version for the database snapshot (for example, * 5.7.23).

*/ inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; } /** *

The database engine version for the database snapshot (for example, * 5.7.23).

*/ inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } /** *

The database engine version for the database snapshot (for example, * 5.7.23).

*/ inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } /** *

The database engine version for the database snapshot (for example, * 5.7.23).

*/ inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } /** *

The database engine version for the database snapshot (for example, * 5.7.23).

*/ inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); } /** *

The database engine version for the database snapshot (for example, * 5.7.23).

*/ inline RelationalDatabaseSnapshot& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;} /** *

The database engine version for the database snapshot (for example, * 5.7.23).

*/ inline RelationalDatabaseSnapshot& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;} /** *

The database engine version for the database snapshot (for example, * 5.7.23).

*/ inline RelationalDatabaseSnapshot& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} /** *

The size of the disk in GB (for example, 32) for the database * snapshot.

*/ inline int GetSizeInGb() const{ return m_sizeInGb; } /** *

The size of the disk in GB (for example, 32) for the database * snapshot.

*/ inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; } /** *

The size of the disk in GB (for example, 32) for the database * snapshot.

*/ inline void SetSizeInGb(int value) { m_sizeInGbHasBeenSet = true; m_sizeInGb = value; } /** *

The size of the disk in GB (for example, 32) for the database * snapshot.

*/ inline RelationalDatabaseSnapshot& WithSizeInGb(int value) { SetSizeInGb(value); return *this;} /** *

The state of the database snapshot.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The state of the database snapshot.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the database snapshot.

*/ inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the database snapshot.

*/ inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the database snapshot.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The state of the database snapshot.

*/ inline RelationalDatabaseSnapshot& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The state of the database snapshot.

*/ inline RelationalDatabaseSnapshot& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The state of the database snapshot.

*/ inline RelationalDatabaseSnapshot& WithState(const char* value) { SetState(value); return *this;} /** *

The name of the source database from which the database snapshot was * created.

*/ inline const Aws::String& GetFromRelationalDatabaseName() const{ return m_fromRelationalDatabaseName; } /** *

The name of the source database from which the database snapshot was * created.

*/ inline bool FromRelationalDatabaseNameHasBeenSet() const { return m_fromRelationalDatabaseNameHasBeenSet; } /** *

The name of the source database from which the database snapshot was * created.

*/ inline void SetFromRelationalDatabaseName(const Aws::String& value) { m_fromRelationalDatabaseNameHasBeenSet = true; m_fromRelationalDatabaseName = value; } /** *

The name of the source database from which the database snapshot was * created.

*/ inline void SetFromRelationalDatabaseName(Aws::String&& value) { m_fromRelationalDatabaseNameHasBeenSet = true; m_fromRelationalDatabaseName = std::move(value); } /** *

The name of the source database from which the database snapshot was * created.

*/ inline void SetFromRelationalDatabaseName(const char* value) { m_fromRelationalDatabaseNameHasBeenSet = true; m_fromRelationalDatabaseName.assign(value); } /** *

The name of the source database from which the database snapshot was * created.

*/ inline RelationalDatabaseSnapshot& WithFromRelationalDatabaseName(const Aws::String& value) { SetFromRelationalDatabaseName(value); return *this;} /** *

The name of the source database from which the database snapshot was * created.

*/ inline RelationalDatabaseSnapshot& WithFromRelationalDatabaseName(Aws::String&& value) { SetFromRelationalDatabaseName(std::move(value)); return *this;} /** *

The name of the source database from which the database snapshot was * created.

*/ inline RelationalDatabaseSnapshot& WithFromRelationalDatabaseName(const char* value) { SetFromRelationalDatabaseName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the database from which the database * snapshot was created.

*/ inline const Aws::String& GetFromRelationalDatabaseArn() const{ return m_fromRelationalDatabaseArn; } /** *

The Amazon Resource Name (ARN) of the database from which the database * snapshot was created.

*/ inline bool FromRelationalDatabaseArnHasBeenSet() const { return m_fromRelationalDatabaseArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the database from which the database * snapshot was created.

*/ inline void SetFromRelationalDatabaseArn(const Aws::String& value) { m_fromRelationalDatabaseArnHasBeenSet = true; m_fromRelationalDatabaseArn = value; } /** *

The Amazon Resource Name (ARN) of the database from which the database * snapshot was created.

*/ inline void SetFromRelationalDatabaseArn(Aws::String&& value) { m_fromRelationalDatabaseArnHasBeenSet = true; m_fromRelationalDatabaseArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the database from which the database * snapshot was created.

*/ inline void SetFromRelationalDatabaseArn(const char* value) { m_fromRelationalDatabaseArnHasBeenSet = true; m_fromRelationalDatabaseArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the database from which the database * snapshot was created.

*/ inline RelationalDatabaseSnapshot& WithFromRelationalDatabaseArn(const Aws::String& value) { SetFromRelationalDatabaseArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the database from which the database * snapshot was created.

*/ inline RelationalDatabaseSnapshot& WithFromRelationalDatabaseArn(Aws::String&& value) { SetFromRelationalDatabaseArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the database from which the database * snapshot was created.

*/ inline RelationalDatabaseSnapshot& WithFromRelationalDatabaseArn(const char* value) { SetFromRelationalDatabaseArn(value); return *this;} /** *

The bundle ID of the database from which the database snapshot was * created.

*/ inline const Aws::String& GetFromRelationalDatabaseBundleId() const{ return m_fromRelationalDatabaseBundleId; } /** *

The bundle ID of the database from which the database snapshot was * created.

*/ inline bool FromRelationalDatabaseBundleIdHasBeenSet() const { return m_fromRelationalDatabaseBundleIdHasBeenSet; } /** *

The bundle ID of the database from which the database snapshot was * created.

*/ inline void SetFromRelationalDatabaseBundleId(const Aws::String& value) { m_fromRelationalDatabaseBundleIdHasBeenSet = true; m_fromRelationalDatabaseBundleId = value; } /** *

The bundle ID of the database from which the database snapshot was * created.

*/ inline void SetFromRelationalDatabaseBundleId(Aws::String&& value) { m_fromRelationalDatabaseBundleIdHasBeenSet = true; m_fromRelationalDatabaseBundleId = std::move(value); } /** *

The bundle ID of the database from which the database snapshot was * created.

*/ inline void SetFromRelationalDatabaseBundleId(const char* value) { m_fromRelationalDatabaseBundleIdHasBeenSet = true; m_fromRelationalDatabaseBundleId.assign(value); } /** *

The bundle ID of the database from which the database snapshot was * created.

*/ inline RelationalDatabaseSnapshot& WithFromRelationalDatabaseBundleId(const Aws::String& value) { SetFromRelationalDatabaseBundleId(value); return *this;} /** *

The bundle ID of the database from which the database snapshot was * created.

*/ inline RelationalDatabaseSnapshot& WithFromRelationalDatabaseBundleId(Aws::String&& value) { SetFromRelationalDatabaseBundleId(std::move(value)); return *this;} /** *

The bundle ID of the database from which the database snapshot was * created.

*/ inline RelationalDatabaseSnapshot& WithFromRelationalDatabaseBundleId(const char* value) { SetFromRelationalDatabaseBundleId(value); return *this;} /** *

The blueprint ID of the database from which the database snapshot was * created. A blueprint describes the major engine version of a database.

*/ inline const Aws::String& GetFromRelationalDatabaseBlueprintId() const{ return m_fromRelationalDatabaseBlueprintId; } /** *

The blueprint ID of the database from which the database snapshot was * created. A blueprint describes the major engine version of a database.

*/ inline bool FromRelationalDatabaseBlueprintIdHasBeenSet() const { return m_fromRelationalDatabaseBlueprintIdHasBeenSet; } /** *

The blueprint ID of the database from which the database snapshot was * created. A blueprint describes the major engine version of a database.

*/ inline void SetFromRelationalDatabaseBlueprintId(const Aws::String& value) { m_fromRelationalDatabaseBlueprintIdHasBeenSet = true; m_fromRelationalDatabaseBlueprintId = value; } /** *

The blueprint ID of the database from which the database snapshot was * created. A blueprint describes the major engine version of a database.

*/ inline void SetFromRelationalDatabaseBlueprintId(Aws::String&& value) { m_fromRelationalDatabaseBlueprintIdHasBeenSet = true; m_fromRelationalDatabaseBlueprintId = std::move(value); } /** *

The blueprint ID of the database from which the database snapshot was * created. A blueprint describes the major engine version of a database.

*/ inline void SetFromRelationalDatabaseBlueprintId(const char* value) { m_fromRelationalDatabaseBlueprintIdHasBeenSet = true; m_fromRelationalDatabaseBlueprintId.assign(value); } /** *

The blueprint ID of the database from which the database snapshot was * created. A blueprint describes the major engine version of a database.

*/ inline RelationalDatabaseSnapshot& WithFromRelationalDatabaseBlueprintId(const Aws::String& value) { SetFromRelationalDatabaseBlueprintId(value); return *this;} /** *

The blueprint ID of the database from which the database snapshot was * created. A blueprint describes the major engine version of a database.

*/ inline RelationalDatabaseSnapshot& WithFromRelationalDatabaseBlueprintId(Aws::String&& value) { SetFromRelationalDatabaseBlueprintId(std::move(value)); return *this;} /** *

The blueprint ID of the database from which the database snapshot was * created. A blueprint describes the major engine version of a database.

*/ inline RelationalDatabaseSnapshot& WithFromRelationalDatabaseBlueprintId(const char* value) { SetFromRelationalDatabaseBlueprintId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_supportCode; bool m_supportCodeHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; ResourceLocation m_location; bool m_locationHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_engine; bool m_engineHasBeenSet = false; Aws::String m_engineVersion; bool m_engineVersionHasBeenSet = false; int m_sizeInGb; bool m_sizeInGbHasBeenSet = false; Aws::String m_state; bool m_stateHasBeenSet = false; Aws::String m_fromRelationalDatabaseName; bool m_fromRelationalDatabaseNameHasBeenSet = false; Aws::String m_fromRelationalDatabaseArn; bool m_fromRelationalDatabaseArnHasBeenSet = false; Aws::String m_fromRelationalDatabaseBundleId; bool m_fromRelationalDatabaseBundleIdHasBeenSet = false; Aws::String m_fromRelationalDatabaseBlueprintId; bool m_fromRelationalDatabaseBlueprintIdHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws