/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace AmplifyBackend { namespace Model { class RemoveBackendConfigResult { public: AWS_AMPLIFYBACKEND_API RemoveBackendConfigResult(); AWS_AMPLIFYBACKEND_API RemoveBackendConfigResult(const Aws::AmazonWebServiceResult& result); AWS_AMPLIFYBACKEND_API RemoveBackendConfigResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

If the request fails, this error is returned.

*/ inline const Aws::String& GetError() const{ return m_error; } /** *

If the request fails, this error is returned.

*/ inline void SetError(const Aws::String& value) { m_error = value; } /** *

If the request fails, this error is returned.

*/ inline void SetError(Aws::String&& value) { m_error = std::move(value); } /** *

If the request fails, this error is returned.

*/ inline void SetError(const char* value) { m_error.assign(value); } /** *

If the request fails, this error is returned.

*/ inline RemoveBackendConfigResult& WithError(const Aws::String& value) { SetError(value); return *this;} /** *

If the request fails, this error is returned.

*/ inline RemoveBackendConfigResult& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;} /** *

If the request fails, this error is returned.

*/ inline RemoveBackendConfigResult& WithError(const char* value) { SetError(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 RemoveBackendConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RemoveBackendConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RemoveBackendConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_error; Aws::String m_requestId; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws