/** * 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 WorkMail { namespace Model { class TestAvailabilityConfigurationResult { public: AWS_WORKMAIL_API TestAvailabilityConfigurationResult(); AWS_WORKMAIL_API TestAvailabilityConfigurationResult(const Aws::AmazonWebServiceResult& result); AWS_WORKMAIL_API TestAvailabilityConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Boolean indicating whether the test passed or failed.

*/ inline bool GetTestPassed() const{ return m_testPassed; } /** *

Boolean indicating whether the test passed or failed.

*/ inline void SetTestPassed(bool value) { m_testPassed = value; } /** *

Boolean indicating whether the test passed or failed.

*/ inline TestAvailabilityConfigurationResult& WithTestPassed(bool value) { SetTestPassed(value); return *this;} /** *

String containing the reason for a failed test if TestPassed is * false.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

String containing the reason for a failed test if TestPassed is * false.

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

String containing the reason for a failed test if TestPassed is * false.

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

String containing the reason for a failed test if TestPassed is * false.

*/ inline void SetFailureReason(const char* value) { m_failureReason.assign(value); } /** *

String containing the reason for a failed test if TestPassed is * false.

*/ inline TestAvailabilityConfigurationResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

String containing the reason for a failed test if TestPassed is * false.

*/ inline TestAvailabilityConfigurationResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

String containing the reason for a failed test if TestPassed is * false.

*/ inline TestAvailabilityConfigurationResult& WithFailureReason(const char* value) { SetFailureReason(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 TestAvailabilityConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline TestAvailabilityConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline TestAvailabilityConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: bool m_testPassed; Aws::String m_failureReason; Aws::String m_requestId; }; } // namespace Model } // namespace WorkMail } // namespace Aws