/** * 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 namespace Aws { namespace FSx { namespace Model { /** */ class CopyBackupRequest : public FSxRequest { public: AWS_FSX_API CopyBackupRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CopyBackup"; } AWS_FSX_API Aws::String SerializePayload() const override; AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } inline CopyBackupRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} inline CopyBackupRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} inline CopyBackupRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The ID of the source backup. Specifies the ID of the backup that's being * copied.

*/ inline const Aws::String& GetSourceBackupId() const{ return m_sourceBackupId; } /** *

The ID of the source backup. Specifies the ID of the backup that's being * copied.

*/ inline bool SourceBackupIdHasBeenSet() const { return m_sourceBackupIdHasBeenSet; } /** *

The ID of the source backup. Specifies the ID of the backup that's being * copied.

*/ inline void SetSourceBackupId(const Aws::String& value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId = value; } /** *

The ID of the source backup. Specifies the ID of the backup that's being * copied.

*/ inline void SetSourceBackupId(Aws::String&& value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId = std::move(value); } /** *

The ID of the source backup. Specifies the ID of the backup that's being * copied.

*/ inline void SetSourceBackupId(const char* value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId.assign(value); } /** *

The ID of the source backup. Specifies the ID of the backup that's being * copied.

*/ inline CopyBackupRequest& WithSourceBackupId(const Aws::String& value) { SetSourceBackupId(value); return *this;} /** *

The ID of the source backup. Specifies the ID of the backup that's being * copied.

*/ inline CopyBackupRequest& WithSourceBackupId(Aws::String&& value) { SetSourceBackupId(std::move(value)); return *this;} /** *

The ID of the source backup. Specifies the ID of the backup that's being * copied.

*/ inline CopyBackupRequest& WithSourceBackupId(const char* value) { SetSourceBackupId(value); return *this;} /** *

The source Amazon Web Services Region of the backup. Specifies the Amazon Web * Services Region from which the backup is being copied. The source and * destination Regions must be in the same Amazon Web Services partition. If you * don't specify a Region, SourceRegion defaults to the Region where * the request is sent from (in-Region copy).

*/ inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; } /** *

The source Amazon Web Services Region of the backup. Specifies the Amazon Web * Services Region from which the backup is being copied. The source and * destination Regions must be in the same Amazon Web Services partition. If you * don't specify a Region, SourceRegion defaults to the Region where * the request is sent from (in-Region copy).

*/ inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; } /** *

The source Amazon Web Services Region of the backup. Specifies the Amazon Web * Services Region from which the backup is being copied. The source and * destination Regions must be in the same Amazon Web Services partition. If you * don't specify a Region, SourceRegion defaults to the Region where * the request is sent from (in-Region copy).

*/ inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; } /** *

The source Amazon Web Services Region of the backup. Specifies the Amazon Web * Services Region from which the backup is being copied. The source and * destination Regions must be in the same Amazon Web Services partition. If you * don't specify a Region, SourceRegion defaults to the Region where * the request is sent from (in-Region copy).

*/ inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); } /** *

The source Amazon Web Services Region of the backup. Specifies the Amazon Web * Services Region from which the backup is being copied. The source and * destination Regions must be in the same Amazon Web Services partition. If you * don't specify a Region, SourceRegion defaults to the Region where * the request is sent from (in-Region copy).

*/ inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); } /** *

The source Amazon Web Services Region of the backup. Specifies the Amazon Web * Services Region from which the backup is being copied. The source and * destination Regions must be in the same Amazon Web Services partition. If you * don't specify a Region, SourceRegion defaults to the Region where * the request is sent from (in-Region copy).

*/ inline CopyBackupRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;} /** *

The source Amazon Web Services Region of the backup. Specifies the Amazon Web * Services Region from which the backup is being copied. The source and * destination Regions must be in the same Amazon Web Services partition. If you * don't specify a Region, SourceRegion defaults to the Region where * the request is sent from (in-Region copy).

*/ inline CopyBackupRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;} /** *

The source Amazon Web Services Region of the backup. Specifies the Amazon Web * Services Region from which the backup is being copied. The source and * destination Regions must be in the same Amazon Web Services partition. If you * don't specify a Region, SourceRegion defaults to the Region where * the request is sent from (in-Region copy).

*/ inline CopyBackupRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;} inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } inline CopyBackupRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} inline CopyBackupRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} inline CopyBackupRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

A Boolean flag indicating whether tags from the source backup should be * copied to the backup copy. This value defaults to false.

If * you set CopyTags to true and the source backup has * existing tags, you can use the Tags parameter to create new tags, * provided that the sum of the source backup tags and the new tags doesn't exceed * 50. Both sets of tags are merged. If there are tag conflicts (for example, two * tags with the same key but different values), the tags created with the * Tags parameter take precedence.

*/ inline bool GetCopyTags() const{ return m_copyTags; } /** *

A Boolean flag indicating whether tags from the source backup should be * copied to the backup copy. This value defaults to false.

If * you set CopyTags to true and the source backup has * existing tags, you can use the Tags parameter to create new tags, * provided that the sum of the source backup tags and the new tags doesn't exceed * 50. Both sets of tags are merged. If there are tag conflicts (for example, two * tags with the same key but different values), the tags created with the * Tags parameter take precedence.

*/ inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; } /** *

A Boolean flag indicating whether tags from the source backup should be * copied to the backup copy. This value defaults to false.

If * you set CopyTags to true and the source backup has * existing tags, you can use the Tags parameter to create new tags, * provided that the sum of the source backup tags and the new tags doesn't exceed * 50. Both sets of tags are merged. If there are tag conflicts (for example, two * tags with the same key but different values), the tags created with the * Tags parameter take precedence.

*/ inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; } /** *

A Boolean flag indicating whether tags from the source backup should be * copied to the backup copy. This value defaults to false.

If * you set CopyTags to true and the source backup has * existing tags, you can use the Tags parameter to create new tags, * provided that the sum of the source backup tags and the new tags doesn't exceed * 50. Both sets of tags are merged. If there are tag conflicts (for example, two * tags with the same key but different values), the tags created with the * Tags parameter take precedence.

*/ inline CopyBackupRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;} inline const Aws::Vector& GetTags() const{ return m_tags; } inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } inline CopyBackupRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} inline CopyBackupRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} inline CopyBackupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } inline CopyBackupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::String m_sourceBackupId; bool m_sourceBackupIdHasBeenSet = false; Aws::String m_sourceRegion; bool m_sourceRegionHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; bool m_copyTags; bool m_copyTagsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws