/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { class RenderUiTemplateResult { public: AWS_SAGEMAKER_API RenderUiTemplateResult(); AWS_SAGEMAKER_API RenderUiTemplateResult(const Aws::AmazonWebServiceResult& result); AWS_SAGEMAKER_API RenderUiTemplateResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A Liquid template that renders the HTML for the worker UI.

*/ inline const Aws::String& GetRenderedContent() const{ return m_renderedContent; } /** *

A Liquid template that renders the HTML for the worker UI.

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

A Liquid template that renders the HTML for the worker UI.

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

A Liquid template that renders the HTML for the worker UI.

*/ inline void SetRenderedContent(const char* value) { m_renderedContent.assign(value); } /** *

A Liquid template that renders the HTML for the worker UI.

*/ inline RenderUiTemplateResult& WithRenderedContent(const Aws::String& value) { SetRenderedContent(value); return *this;} /** *

A Liquid template that renders the HTML for the worker UI.

*/ inline RenderUiTemplateResult& WithRenderedContent(Aws::String&& value) { SetRenderedContent(std::move(value)); return *this;} /** *

A Liquid template that renders the HTML for the worker UI.

*/ inline RenderUiTemplateResult& WithRenderedContent(const char* value) { SetRenderedContent(value); return *this;} /** *

A list of one or more RenderingError objects if any were * encountered while rendering the template. If there were no errors, the list is * empty.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

A list of one or more RenderingError objects if any were * encountered while rendering the template. If there were no errors, the list is * empty.

*/ inline void SetErrors(const Aws::Vector& value) { m_errors = value; } /** *

A list of one or more RenderingError objects if any were * encountered while rendering the template. If there were no errors, the list is * empty.

*/ inline void SetErrors(Aws::Vector&& value) { m_errors = std::move(value); } /** *

A list of one or more RenderingError objects if any were * encountered while rendering the template. If there were no errors, the list is * empty.

*/ inline RenderUiTemplateResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

A list of one or more RenderingError objects if any were * encountered while rendering the template. If there were no errors, the list is * empty.

*/ inline RenderUiTemplateResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

A list of one or more RenderingError objects if any were * encountered while rendering the template. If there were no errors, the list is * empty.

*/ inline RenderUiTemplateResult& AddErrors(const RenderingError& value) { m_errors.push_back(value); return *this; } /** *

A list of one or more RenderingError objects if any were * encountered while rendering the template. If there were no errors, the list is * empty.

*/ inline RenderUiTemplateResult& AddErrors(RenderingError&& value) { m_errors.push_back(std::move(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 RenderUiTemplateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RenderUiTemplateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RenderUiTemplateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_renderedContent; Aws::Vector m_errors; Aws::String m_requestId; }; } // namespace Model } // namespace SageMaker } // namespace Aws