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

The operation is already in progress.

See Also:

AWS * API Reference

*/ class DuplicateRequest { public: AWS_SERVICEDISCOVERY_API DuplicateRequest(); AWS_SERVICEDISCOVERY_API DuplicateRequest(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICEDISCOVERY_API DuplicateRequest& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline DuplicateRequest& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline DuplicateRequest& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline DuplicateRequest& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The ID of the operation that's already in progress.

*/ inline const Aws::String& GetDuplicateOperationId() const{ return m_duplicateOperationId; } /** *

The ID of the operation that's already in progress.

*/ inline bool DuplicateOperationIdHasBeenSet() const { return m_duplicateOperationIdHasBeenSet; } /** *

The ID of the operation that's already in progress.

*/ inline void SetDuplicateOperationId(const Aws::String& value) { m_duplicateOperationIdHasBeenSet = true; m_duplicateOperationId = value; } /** *

The ID of the operation that's already in progress.

*/ inline void SetDuplicateOperationId(Aws::String&& value) { m_duplicateOperationIdHasBeenSet = true; m_duplicateOperationId = std::move(value); } /** *

The ID of the operation that's already in progress.

*/ inline void SetDuplicateOperationId(const char* value) { m_duplicateOperationIdHasBeenSet = true; m_duplicateOperationId.assign(value); } /** *

The ID of the operation that's already in progress.

*/ inline DuplicateRequest& WithDuplicateOperationId(const Aws::String& value) { SetDuplicateOperationId(value); return *this;} /** *

The ID of the operation that's already in progress.

*/ inline DuplicateRequest& WithDuplicateOperationId(Aws::String&& value) { SetDuplicateOperationId(std::move(value)); return *this;} /** *

The ID of the operation that's already in progress.

*/ inline DuplicateRequest& WithDuplicateOperationId(const char* value) { SetDuplicateOperationId(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_duplicateOperationId; bool m_duplicateOperationIdHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws