/** * 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 configured SourceConnection. *

See Also:

AWS * API Reference

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

The only supported SourceConnection type is Codestar.

*/ inline const SourceType& GetType() const{ return m_type; } /** *

The only supported SourceConnection type is Codestar.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The only supported SourceConnection type is Codestar.

*/ inline void SetType(const SourceType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The only supported SourceConnection type is Codestar.

*/ inline void SetType(SourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The only supported SourceConnection type is Codestar.

*/ inline SourceConnectionDetail& WithType(const SourceType& value) { SetType(value); return *this;} /** *

The only supported SourceConnection type is Codestar.

*/ inline SourceConnectionDetail& WithType(SourceType&& value) { SetType(std::move(value)); return *this;} /** *

The connection details based on the connection Type.

*/ inline const SourceConnectionParameters& GetConnectionParameters() const{ return m_connectionParameters; } /** *

The connection details based on the connection Type.

*/ inline bool ConnectionParametersHasBeenSet() const { return m_connectionParametersHasBeenSet; } /** *

The connection details based on the connection Type.

*/ inline void SetConnectionParameters(const SourceConnectionParameters& value) { m_connectionParametersHasBeenSet = true; m_connectionParameters = value; } /** *

The connection details based on the connection Type.

*/ inline void SetConnectionParameters(SourceConnectionParameters&& value) { m_connectionParametersHasBeenSet = true; m_connectionParameters = std::move(value); } /** *

The connection details based on the connection Type.

*/ inline SourceConnectionDetail& WithConnectionParameters(const SourceConnectionParameters& value) { SetConnectionParameters(value); return *this;} /** *

The connection details based on the connection Type.

*/ inline SourceConnectionDetail& WithConnectionParameters(SourceConnectionParameters&& value) { SetConnectionParameters(std::move(value)); return *this;} /** *

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

  • LastSyncTime

  • *
  • LastSyncStatus

  • * LastSyncStatusMessage

  • * LastSuccessfulSyncTime

  • * LastSuccessfulSyncProvisioningArtifactID

*/ inline const LastSync& GetLastSync() const{ return m_lastSync; } /** *

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

  • LastSyncTime

  • *
  • LastSyncStatus

  • * LastSyncStatusMessage

  • * LastSuccessfulSyncTime

  • * LastSuccessfulSyncProvisioningArtifactID

*/ inline bool LastSyncHasBeenSet() const { return m_lastSyncHasBeenSet; } /** *

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

  • LastSyncTime

  • *
  • LastSyncStatus

  • * LastSyncStatusMessage

  • * LastSuccessfulSyncTime

  • * LastSuccessfulSyncProvisioningArtifactID

*/ inline void SetLastSync(const LastSync& value) { m_lastSyncHasBeenSet = true; m_lastSync = value; } /** *

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

  • LastSyncTime

  • *
  • LastSyncStatus

  • * LastSyncStatusMessage

  • * LastSuccessfulSyncTime

  • * LastSuccessfulSyncProvisioningArtifactID

*/ inline void SetLastSync(LastSync&& value) { m_lastSyncHasBeenSet = true; m_lastSync = std::move(value); } /** *

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

  • LastSyncTime

  • *
  • LastSyncStatus

  • * LastSyncStatusMessage

  • * LastSuccessfulSyncTime

  • * LastSuccessfulSyncProvisioningArtifactID

*/ inline SourceConnectionDetail& WithLastSync(const LastSync& value) { SetLastSync(value); return *this;} /** *

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

  • LastSyncTime

  • *
  • LastSyncStatus

  • * LastSyncStatusMessage

  • * LastSuccessfulSyncTime

  • * LastSuccessfulSyncProvisioningArtifactID

*/ inline SourceConnectionDetail& WithLastSync(LastSync&& value) { SetLastSync(std::move(value)); return *this;} private: SourceType m_type; bool m_typeHasBeenSet = false; SourceConnectionParameters m_connectionParameters; bool m_connectionParametersHasBeenSet = false; LastSync m_lastSync; bool m_lastSyncHasBeenSet = false; }; } // namespace Model } // namespace ServiceCatalog } // namespace Aws