/** * 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 drs { namespace Model { /** */ class CreateExtendedSourceServerRequest : public DrsRequest { public: AWS_DRS_API CreateExtendedSourceServerRequest(); // 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 "CreateExtendedSourceServer"; } AWS_DRS_API Aws::String SerializePayload() const override; /** *

This defines the ARN of the source server in staging Account based on which * you want to create an extended source server.

*/ inline const Aws::String& GetSourceServerArn() const{ return m_sourceServerArn; } /** *

This defines the ARN of the source server in staging Account based on which * you want to create an extended source server.

*/ inline bool SourceServerArnHasBeenSet() const { return m_sourceServerArnHasBeenSet; } /** *

This defines the ARN of the source server in staging Account based on which * you want to create an extended source server.

*/ inline void SetSourceServerArn(const Aws::String& value) { m_sourceServerArnHasBeenSet = true; m_sourceServerArn = value; } /** *

This defines the ARN of the source server in staging Account based on which * you want to create an extended source server.

*/ inline void SetSourceServerArn(Aws::String&& value) { m_sourceServerArnHasBeenSet = true; m_sourceServerArn = std::move(value); } /** *

This defines the ARN of the source server in staging Account based on which * you want to create an extended source server.

*/ inline void SetSourceServerArn(const char* value) { m_sourceServerArnHasBeenSet = true; m_sourceServerArn.assign(value); } /** *

This defines the ARN of the source server in staging Account based on which * you want to create an extended source server.

*/ inline CreateExtendedSourceServerRequest& WithSourceServerArn(const Aws::String& value) { SetSourceServerArn(value); return *this;} /** *

This defines the ARN of the source server in staging Account based on which * you want to create an extended source server.

*/ inline CreateExtendedSourceServerRequest& WithSourceServerArn(Aws::String&& value) { SetSourceServerArn(std::move(value)); return *this;} /** *

This defines the ARN of the source server in staging Account based on which * you want to create an extended source server.

*/ inline CreateExtendedSourceServerRequest& WithSourceServerArn(const char* value) { SetSourceServerArn(value); return *this;} /** *

A list of tags associated with the extended source server.

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

A list of tags associated with the extended source server.

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

A list of tags associated with the extended source server.

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

A list of tags associated with the extended source server.

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

A list of tags associated with the extended source server.

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

A list of tags associated with the extended source server.

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

A list of tags associated with the extended source server.

*/ inline CreateExtendedSourceServerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A list of tags associated with the extended source server.

*/ inline CreateExtendedSourceServerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of tags associated with the extended source server.

*/ inline CreateExtendedSourceServerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of tags associated with the extended source server.

*/ inline CreateExtendedSourceServerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of tags associated with the extended source server.

*/ inline CreateExtendedSourceServerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of tags associated with the extended source server.

*/ inline CreateExtendedSourceServerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of tags associated with the extended source server.

*/ inline CreateExtendedSourceServerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_sourceServerArn; bool m_sourceServerArnHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws