/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ServiceCatalog
{
namespace Model
{
/**
* A top level ProductViewDetail
response containing details about
* the product’s connection. Service Catalog returns this field for the
* CreateProduct
, UpdateProduct
,
* DescribeProductAsAdmin
, and SearchProductAsAdmin
APIs.
* This response contains the same fields as the ConnectionParameters
* request, with the addition of the LastSync
response.
See
* Also:
AWS
* API Reference
*/
class SourceConnection
{
public:
AWS_SERVICECATALOG_API SourceConnection();
AWS_SERVICECATALOG_API SourceConnection(Aws::Utils::Json::JsonView jsonValue);
AWS_SERVICECATALOG_API SourceConnection& 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 SourceConnection& WithType(const SourceType& value) { SetType(value); return *this;}
/**
* The only supported SourceConnection
type is Codestar.
*/
inline SourceConnection& 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 SourceConnection& WithConnectionParameters(const SourceConnectionParameters& value) { SetConnectionParameters(value); return *this;}
/**
* The connection details based on the connection Type
.
*/
inline SourceConnection& WithConnectionParameters(SourceConnectionParameters&& value) { SetConnectionParameters(std::move(value)); return *this;}
private:
SourceType m_type;
bool m_typeHasBeenSet = false;
SourceConnectionParameters m_connectionParameters;
bool m_connectionParametersHasBeenSet = false;
};
} // namespace Model
} // namespace ServiceCatalog
} // namespace Aws