/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a database snapshot.See Also:
AWS
* API Reference
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::VectorThe 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::VectorThe 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::VectorThe 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::VectorThe 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::VectorThe 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
)
The software of the database snapshot (for example, MySQL
)
The software of the database snapshot (for example, MySQL
)
The software of the database snapshot (for example, MySQL
)
The software of the database snapshot (for example, MySQL
)
The software of the database snapshot (for example, MySQL
)
The software of the database snapshot (for example, MySQL
)
The software of the database snapshot (for example, MySQL
)
The database engine version for the database snapshot (for example,
* 5.7.23
).
The database engine version for the database snapshot (for example,
* 5.7.23
).
The database engine version for the database snapshot (for example,
* 5.7.23
).
The database engine version for the database snapshot (for example,
* 5.7.23
).
The database engine version for the database snapshot (for example,
* 5.7.23
).
The database engine version for the database snapshot (for example,
* 5.7.23
).
The database engine version for the database snapshot (for example,
* 5.7.23
).
The database engine version for the database snapshot (for example,
* 5.7.23
).
The size of the disk in GB (for example, 32
) for the database
* snapshot.
The size of the disk in GB (for example, 32
) for the database
* snapshot.
The size of the disk in GB (for example, 32
) for the database
* snapshot.
The size of the disk in GB (for example, 32
) for the database
* snapshot.
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