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

The service instance sync desired state that's returned by Proton

*/ inline const Revision& GetDesiredState() const{ return m_desiredState; } /** *

The service instance sync desired state that's returned by Proton

*/ inline void SetDesiredState(const Revision& value) { m_desiredState = value; } /** *

The service instance sync desired state that's returned by Proton

*/ inline void SetDesiredState(Revision&& value) { m_desiredState = std::move(value); } /** *

The service instance sync desired state that's returned by Proton

*/ inline GetServiceInstanceSyncStatusResult& WithDesiredState(const Revision& value) { SetDesiredState(value); return *this;} /** *

The service instance sync desired state that's returned by Proton

*/ inline GetServiceInstanceSyncStatusResult& WithDesiredState(Revision&& value) { SetDesiredState(std::move(value)); return *this;} /** *

The detailed data of the latest successful sync with the service * instance.

*/ inline const ResourceSyncAttempt& GetLatestSuccessfulSync() const{ return m_latestSuccessfulSync; } /** *

The detailed data of the latest successful sync with the service * instance.

*/ inline void SetLatestSuccessfulSync(const ResourceSyncAttempt& value) { m_latestSuccessfulSync = value; } /** *

The detailed data of the latest successful sync with the service * instance.

*/ inline void SetLatestSuccessfulSync(ResourceSyncAttempt&& value) { m_latestSuccessfulSync = std::move(value); } /** *

The detailed data of the latest successful sync with the service * instance.

*/ inline GetServiceInstanceSyncStatusResult& WithLatestSuccessfulSync(const ResourceSyncAttempt& value) { SetLatestSuccessfulSync(value); return *this;} /** *

The detailed data of the latest successful sync with the service * instance.

*/ inline GetServiceInstanceSyncStatusResult& WithLatestSuccessfulSync(ResourceSyncAttempt&& value) { SetLatestSuccessfulSync(std::move(value)); return *this;} /** *

The detailed data of the latest sync with the service instance.

*/ inline const ResourceSyncAttempt& GetLatestSync() const{ return m_latestSync; } /** *

The detailed data of the latest sync with the service instance.

*/ inline void SetLatestSync(const ResourceSyncAttempt& value) { m_latestSync = value; } /** *

The detailed data of the latest sync with the service instance.

*/ inline void SetLatestSync(ResourceSyncAttempt&& value) { m_latestSync = std::move(value); } /** *

The detailed data of the latest sync with the service instance.

*/ inline GetServiceInstanceSyncStatusResult& WithLatestSync(const ResourceSyncAttempt& value) { SetLatestSync(value); return *this;} /** *

The detailed data of the latest sync with the service instance.

*/ inline GetServiceInstanceSyncStatusResult& WithLatestSync(ResourceSyncAttempt&& value) { SetLatestSync(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 GetServiceInstanceSyncStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetServiceInstanceSyncStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetServiceInstanceSyncStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Revision m_desiredState; ResourceSyncAttempt m_latestSuccessfulSync; ResourceSyncAttempt m_latestSync; Aws::String m_requestId; }; } // namespace Model } // namespace Proton } // namespace Aws