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

An object that represents the result of running the function with the * provided event object.

*/ inline const TestResult& GetTestResult() const{ return m_testResult; } /** *

An object that represents the result of running the function with the * provided event object.

*/ inline void SetTestResult(const TestResult& value) { m_testResult = value; } /** *

An object that represents the result of running the function with the * provided event object.

*/ inline void SetTestResult(TestResult&& value) { m_testResult = std::move(value); } /** *

An object that represents the result of running the function with the * provided event object.

*/ inline TestFunction2020_05_31Result& WithTestResult(const TestResult& value) { SetTestResult(value); return *this;} /** *

An object that represents the result of running the function with the * provided event object.

*/ inline TestFunction2020_05_31Result& WithTestResult(TestResult&& value) { SetTestResult(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 TestFunction2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline TestFunction2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline TestFunction2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: TestResult m_testResult; Aws::String m_requestId; }; } // namespace Model } // namespace CloudFront } // namespace Aws