/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/greengrassv2/GreengrassV2_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { template<typename RESULT_TYPE> class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace GreengrassV2 { namespace Model { class CancelDeploymentResult { public: AWS_GREENGRASSV2_API CancelDeploymentResult(); AWS_GREENGRASSV2_API CancelDeploymentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); AWS_GREENGRASSV2_API CancelDeploymentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); /** * <p>A message that communicates if the cancel was successful.</p> */ inline const Aws::String& GetMessage() const{ return m_message; } /** * <p>A message that communicates if the cancel was successful.</p> */ inline void SetMessage(const Aws::String& value) { m_message = value; } /** * <p>A message that communicates if the cancel was successful.</p> */ inline void SetMessage(Aws::String&& value) { m_message = std::move(value); } /** * <p>A message that communicates if the cancel was successful.</p> */ inline void SetMessage(const char* value) { m_message.assign(value); } /** * <p>A message that communicates if the cancel was successful.</p> */ inline CancelDeploymentResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** * <p>A message that communicates if the cancel was successful.</p> */ inline CancelDeploymentResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** * <p>A message that communicates if the cancel was successful.</p> */ inline CancelDeploymentResult& WithMessage(const char* value) { SetMessage(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CancelDeploymentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CancelDeploymentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CancelDeploymentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_message; Aws::String m_requestId; }; } // namespace Model } // namespace GreengrassV2 } // namespace Aws