/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ServiceCatalog { namespace Model { /** *

Provides details about the product's connection sync and contains the * following sub-fields.

  • LastSyncTime

  • *
  • LastSyncStatus

  • * LastSyncStatusMessage

  • * LastSuccessfulSyncTime

  • * LastSuccessfulSyncProvisioningArtifactID

See * Also:

AWS * API Reference

*/ class LastSync { public: AWS_SERVICECATALOG_API LastSync(); AWS_SERVICECATALOG_API LastSync(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICECATALOG_API LastSync& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The time of the last attempted sync from the repository to the Service * Catalog product.

*/ inline const Aws::Utils::DateTime& GetLastSyncTime() const{ return m_lastSyncTime; } /** *

The time of the last attempted sync from the repository to the Service * Catalog product.

*/ inline bool LastSyncTimeHasBeenSet() const { return m_lastSyncTimeHasBeenSet; } /** *

The time of the last attempted sync from the repository to the Service * Catalog product.

*/ inline void SetLastSyncTime(const Aws::Utils::DateTime& value) { m_lastSyncTimeHasBeenSet = true; m_lastSyncTime = value; } /** *

The time of the last attempted sync from the repository to the Service * Catalog product.

*/ inline void SetLastSyncTime(Aws::Utils::DateTime&& value) { m_lastSyncTimeHasBeenSet = true; m_lastSyncTime = std::move(value); } /** *

The time of the last attempted sync from the repository to the Service * Catalog product.

*/ inline LastSync& WithLastSyncTime(const Aws::Utils::DateTime& value) { SetLastSyncTime(value); return *this;} /** *

The time of the last attempted sync from the repository to the Service * Catalog product.

*/ inline LastSync& WithLastSyncTime(Aws::Utils::DateTime&& value) { SetLastSyncTime(std::move(value)); return *this;} /** *

The current status of the sync. Responses include SUCCEEDED or * FAILED.

*/ inline const LastSyncStatus& GetLastSyncStatus() const{ return m_lastSyncStatus; } /** *

The current status of the sync. Responses include SUCCEEDED or * FAILED.

*/ inline bool LastSyncStatusHasBeenSet() const { return m_lastSyncStatusHasBeenSet; } /** *

The current status of the sync. Responses include SUCCEEDED or * FAILED.

*/ inline void SetLastSyncStatus(const LastSyncStatus& value) { m_lastSyncStatusHasBeenSet = true; m_lastSyncStatus = value; } /** *

The current status of the sync. Responses include SUCCEEDED or * FAILED.

*/ inline void SetLastSyncStatus(LastSyncStatus&& value) { m_lastSyncStatusHasBeenSet = true; m_lastSyncStatus = std::move(value); } /** *

The current status of the sync. Responses include SUCCEEDED or * FAILED.

*/ inline LastSync& WithLastSyncStatus(const LastSyncStatus& value) { SetLastSyncStatus(value); return *this;} /** *

The current status of the sync. Responses include SUCCEEDED or * FAILED.

*/ inline LastSync& WithLastSyncStatus(LastSyncStatus&& value) { SetLastSyncStatus(std::move(value)); return *this;} /** *

The sync's status message.

*/ inline const Aws::String& GetLastSyncStatusMessage() const{ return m_lastSyncStatusMessage; } /** *

The sync's status message.

*/ inline bool LastSyncStatusMessageHasBeenSet() const { return m_lastSyncStatusMessageHasBeenSet; } /** *

The sync's status message.

*/ inline void SetLastSyncStatusMessage(const Aws::String& value) { m_lastSyncStatusMessageHasBeenSet = true; m_lastSyncStatusMessage = value; } /** *

The sync's status message.

*/ inline void SetLastSyncStatusMessage(Aws::String&& value) { m_lastSyncStatusMessageHasBeenSet = true; m_lastSyncStatusMessage = std::move(value); } /** *

The sync's status message.

*/ inline void SetLastSyncStatusMessage(const char* value) { m_lastSyncStatusMessageHasBeenSet = true; m_lastSyncStatusMessage.assign(value); } /** *

The sync's status message.

*/ inline LastSync& WithLastSyncStatusMessage(const Aws::String& value) { SetLastSyncStatusMessage(value); return *this;} /** *

The sync's status message.

*/ inline LastSync& WithLastSyncStatusMessage(Aws::String&& value) { SetLastSyncStatusMessage(std::move(value)); return *this;} /** *

The sync's status message.

*/ inline LastSync& WithLastSyncStatusMessage(const char* value) { SetLastSyncStatusMessage(value); return *this;} /** *

The time of the latest successful sync from the source repo artifact to the * Service Catalog product.

*/ inline const Aws::Utils::DateTime& GetLastSuccessfulSyncTime() const{ return m_lastSuccessfulSyncTime; } /** *

The time of the latest successful sync from the source repo artifact to the * Service Catalog product.

*/ inline bool LastSuccessfulSyncTimeHasBeenSet() const { return m_lastSuccessfulSyncTimeHasBeenSet; } /** *

The time of the latest successful sync from the source repo artifact to the * Service Catalog product.

*/ inline void SetLastSuccessfulSyncTime(const Aws::Utils::DateTime& value) { m_lastSuccessfulSyncTimeHasBeenSet = true; m_lastSuccessfulSyncTime = value; } /** *

The time of the latest successful sync from the source repo artifact to the * Service Catalog product.

*/ inline void SetLastSuccessfulSyncTime(Aws::Utils::DateTime&& value) { m_lastSuccessfulSyncTimeHasBeenSet = true; m_lastSuccessfulSyncTime = std::move(value); } /** *

The time of the latest successful sync from the source repo artifact to the * Service Catalog product.

*/ inline LastSync& WithLastSuccessfulSyncTime(const Aws::Utils::DateTime& value) { SetLastSuccessfulSyncTime(value); return *this;} /** *

The time of the latest successful sync from the source repo artifact to the * Service Catalog product.

*/ inline LastSync& WithLastSuccessfulSyncTime(Aws::Utils::DateTime&& value) { SetLastSuccessfulSyncTime(std::move(value)); return *this;} /** *

The ProvisioningArtifactID of the ProvisioningArtifact created from the * latest successful sync.

*/ inline const Aws::String& GetLastSuccessfulSyncProvisioningArtifactId() const{ return m_lastSuccessfulSyncProvisioningArtifactId; } /** *

The ProvisioningArtifactID of the ProvisioningArtifact created from the * latest successful sync.

*/ inline bool LastSuccessfulSyncProvisioningArtifactIdHasBeenSet() const { return m_lastSuccessfulSyncProvisioningArtifactIdHasBeenSet; } /** *

The ProvisioningArtifactID of the ProvisioningArtifact created from the * latest successful sync.

*/ inline void SetLastSuccessfulSyncProvisioningArtifactId(const Aws::String& value) { m_lastSuccessfulSyncProvisioningArtifactIdHasBeenSet = true; m_lastSuccessfulSyncProvisioningArtifactId = value; } /** *

The ProvisioningArtifactID of the ProvisioningArtifact created from the * latest successful sync.

*/ inline void SetLastSuccessfulSyncProvisioningArtifactId(Aws::String&& value) { m_lastSuccessfulSyncProvisioningArtifactIdHasBeenSet = true; m_lastSuccessfulSyncProvisioningArtifactId = std::move(value); } /** *

The ProvisioningArtifactID of the ProvisioningArtifact created from the * latest successful sync.

*/ inline void SetLastSuccessfulSyncProvisioningArtifactId(const char* value) { m_lastSuccessfulSyncProvisioningArtifactIdHasBeenSet = true; m_lastSuccessfulSyncProvisioningArtifactId.assign(value); } /** *

The ProvisioningArtifactID of the ProvisioningArtifact created from the * latest successful sync.

*/ inline LastSync& WithLastSuccessfulSyncProvisioningArtifactId(const Aws::String& value) { SetLastSuccessfulSyncProvisioningArtifactId(value); return *this;} /** *

The ProvisioningArtifactID of the ProvisioningArtifact created from the * latest successful sync.

*/ inline LastSync& WithLastSuccessfulSyncProvisioningArtifactId(Aws::String&& value) { SetLastSuccessfulSyncProvisioningArtifactId(std::move(value)); return *this;} /** *

The ProvisioningArtifactID of the ProvisioningArtifact created from the * latest successful sync.

*/ inline LastSync& WithLastSuccessfulSyncProvisioningArtifactId(const char* value) { SetLastSuccessfulSyncProvisioningArtifactId(value); return *this;} private: Aws::Utils::DateTime m_lastSyncTime; bool m_lastSyncTimeHasBeenSet = false; LastSyncStatus m_lastSyncStatus; bool m_lastSyncStatusHasBeenSet = false; Aws::String m_lastSyncStatusMessage; bool m_lastSyncStatusMessageHasBeenSet = false; Aws::Utils::DateTime m_lastSuccessfulSyncTime; bool m_lastSuccessfulSyncTimeHasBeenSet = false; Aws::String m_lastSuccessfulSyncProvisioningArtifactId; bool m_lastSuccessfulSyncProvisioningArtifactIdHasBeenSet = false; }; } // namespace Model } // namespace ServiceCatalog } // namespace Aws