/** * 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 StorageGateway { namespace Model { class DescribeAvailabilityMonitorTestResult { public: AWS_STORAGEGATEWAY_API DescribeAvailabilityMonitorTestResult(); AWS_STORAGEGATEWAY_API DescribeAvailabilityMonitorTestResult(const Aws::AmazonWebServiceResult& result); AWS_STORAGEGATEWAY_API DescribeAvailabilityMonitorTestResult& operator=(const Aws::AmazonWebServiceResult& result); inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; } inline void SetGatewayARN(const Aws::String& value) { m_gatewayARN = value; } inline void SetGatewayARN(Aws::String&& value) { m_gatewayARN = std::move(value); } inline void SetGatewayARN(const char* value) { m_gatewayARN.assign(value); } inline DescribeAvailabilityMonitorTestResult& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;} inline DescribeAvailabilityMonitorTestResult& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;} inline DescribeAvailabilityMonitorTestResult& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;} /** *

The status of the high availability monitoring test. If a test hasn't been * performed, the value of this field is null.

*/ inline const AvailabilityMonitorTestStatus& GetStatus() const{ return m_status; } /** *

The status of the high availability monitoring test. If a test hasn't been * performed, the value of this field is null.

*/ inline void SetStatus(const AvailabilityMonitorTestStatus& value) { m_status = value; } /** *

The status of the high availability monitoring test. If a test hasn't been * performed, the value of this field is null.

*/ inline void SetStatus(AvailabilityMonitorTestStatus&& value) { m_status = std::move(value); } /** *

The status of the high availability monitoring test. If a test hasn't been * performed, the value of this field is null.

*/ inline DescribeAvailabilityMonitorTestResult& WithStatus(const AvailabilityMonitorTestStatus& value) { SetStatus(value); return *this;} /** *

The status of the high availability monitoring test. If a test hasn't been * performed, the value of this field is null.

*/ inline DescribeAvailabilityMonitorTestResult& WithStatus(AvailabilityMonitorTestStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The time the high availability monitoring test was started. If a test hasn't * been performed, the value of this field is null.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The time the high availability monitoring test was started. If a test hasn't * been performed, the value of this field is null.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; } /** *

The time the high availability monitoring test was started. If a test hasn't * been performed, the value of this field is null.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); } /** *

The time the high availability monitoring test was started. If a test hasn't * been performed, the value of this field is null.

*/ inline DescribeAvailabilityMonitorTestResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The time the high availability monitoring test was started. If a test hasn't * been performed, the value of this field is null.

*/ inline DescribeAvailabilityMonitorTestResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(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 DescribeAvailabilityMonitorTestResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeAvailabilityMonitorTestResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeAvailabilityMonitorTestResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_gatewayARN; AvailabilityMonitorTestStatus m_status; Aws::Utils::DateTime m_startTime; Aws::String m_requestId; }; } // namespace Model } // namespace StorageGateway } // namespace Aws