This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

349 lines
13 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codestar-connections/model/ProviderType.h>
#include <aws/codestar-connections/model/ConnectionStatus.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeStarconnections
{
namespace Model
{
/**
* <p>A resource that is used to connect third-party source providers with services
* like AWS CodePipeline.</p> <p>Note: A connection created through CloudFormation,
* the CLI, or the SDK is in `PENDING` status by default. You can make its status
* `AVAILABLE` by updating the connection in the console.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/Connection">AWS
* API Reference</a></p>
*/
class AWS_CODESTARCONNECTIONS_API Connection
{
public:
Connection();
Connection(Aws::Utils::Json::JsonView jsonValue);
Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the connection. Connection names must be unique in an AWS user
* account.</p>
*/
inline const Aws::String& GetConnectionName() const{ return m_connectionName; }
/**
* <p>The name of the connection. Connection names must be unique in an AWS user
* account.</p>
*/
inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
/**
* <p>The name of the connection. Connection names must be unique in an AWS user
* account.</p>
*/
inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
/**
* <p>The name of the connection. Connection names must be unique in an AWS user
* account.</p>
*/
inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); }
/**
* <p>The name of the connection. Connection names must be unique in an AWS user
* account.</p>
*/
inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
/**
* <p>The name of the connection. Connection names must be unique in an AWS user
* account.</p>
*/
inline Connection& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;}
/**
* <p>The name of the connection. Connection names must be unique in an AWS user
* account.</p>
*/
inline Connection& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;}
/**
* <p>The name of the connection. Connection names must be unique in an AWS user
* account.</p>
*/
inline Connection& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the
* connection reference when the connection is shared between AWS services.</p>
* <p>The ARN is never reused if the connection is deleted.</p>
*/
inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
/**
* <p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the
* connection reference when the connection is shared between AWS services.</p>
* <p>The ARN is never reused if the connection is deleted.</p>
*/
inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the
* connection reference when the connection is shared between AWS services.</p>
* <p>The ARN is never reused if the connection is deleted.</p>
*/
inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the
* connection reference when the connection is shared between AWS services.</p>
* <p>The ARN is never reused if the connection is deleted.</p>
*/
inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the
* connection reference when the connection is shared between AWS services.</p>
* <p>The ARN is never reused if the connection is deleted.</p>
*/
inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the
* connection reference when the connection is shared between AWS services.</p>
* <p>The ARN is never reused if the connection is deleted.</p>
*/
inline Connection& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the
* connection reference when the connection is shared between AWS services.</p>
* <p>The ARN is never reused if the connection is deleted.</p>
*/
inline Connection& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the
* connection reference when the connection is shared between AWS services.</p>
* <p>The ARN is never reused if the connection is deleted.</p>
*/
inline Connection& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
/**
* <p>The name of the external provider where your third-party code repository is
* configured. The valid provider type is Bitbucket.</p>
*/
inline const ProviderType& GetProviderType() const{ return m_providerType; }
/**
* <p>The name of the external provider where your third-party code repository is
* configured. The valid provider type is Bitbucket.</p>
*/
inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
/**
* <p>The name of the external provider where your third-party code repository is
* configured. The valid provider type is Bitbucket.</p>
*/
inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
/**
* <p>The name of the external provider where your third-party code repository is
* configured. The valid provider type is Bitbucket.</p>
*/
inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
/**
* <p>The name of the external provider where your third-party code repository is
* configured. The valid provider type is Bitbucket.</p>
*/
inline Connection& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
/**
* <p>The name of the external provider where your third-party code repository is
* configured. The valid provider type is Bitbucket.</p>
*/
inline Connection& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
/**
* <p>The identifier of the external provider where your third-party code
* repository is configured. For Bitbucket, this is the account ID of the owner of
* the Bitbucket repository.</p>
*/
inline const Aws::String& GetOwnerAccountId() const{ return m_ownerAccountId; }
/**
* <p>The identifier of the external provider where your third-party code
* repository is configured. For Bitbucket, this is the account ID of the owner of
* the Bitbucket repository.</p>
*/
inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
/**
* <p>The identifier of the external provider where your third-party code
* repository is configured. For Bitbucket, this is the account ID of the owner of
* the Bitbucket repository.</p>
*/
inline void SetOwnerAccountId(const Aws::String& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = value; }
/**
* <p>The identifier of the external provider where your third-party code
* repository is configured. For Bitbucket, this is the account ID of the owner of
* the Bitbucket repository.</p>
*/
inline void SetOwnerAccountId(Aws::String&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::move(value); }
/**
* <p>The identifier of the external provider where your third-party code
* repository is configured. For Bitbucket, this is the account ID of the owner of
* the Bitbucket repository.</p>
*/
inline void SetOwnerAccountId(const char* value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId.assign(value); }
/**
* <p>The identifier of the external provider where your third-party code
* repository is configured. For Bitbucket, this is the account ID of the owner of
* the Bitbucket repository.</p>
*/
inline Connection& WithOwnerAccountId(const Aws::String& value) { SetOwnerAccountId(value); return *this;}
/**
* <p>The identifier of the external provider where your third-party code
* repository is configured. For Bitbucket, this is the account ID of the owner of
* the Bitbucket repository.</p>
*/
inline Connection& WithOwnerAccountId(Aws::String&& value) { SetOwnerAccountId(std::move(value)); return *this;}
/**
* <p>The identifier of the external provider where your third-party code
* repository is configured. For Bitbucket, this is the account ID of the owner of
* the Bitbucket repository.</p>
*/
inline Connection& WithOwnerAccountId(const char* value) { SetOwnerAccountId(value); return *this;}
/**
* <p>The current status of the connection. </p>
*/
inline const ConnectionStatus& GetConnectionStatus() const{ return m_connectionStatus; }
/**
* <p>The current status of the connection. </p>
*/
inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
/**
* <p>The current status of the connection. </p>
*/
inline void SetConnectionStatus(const ConnectionStatus& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = value; }
/**
* <p>The current status of the connection. </p>
*/
inline void SetConnectionStatus(ConnectionStatus&& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = std::move(value); }
/**
* <p>The current status of the connection. </p>
*/
inline Connection& WithConnectionStatus(const ConnectionStatus& value) { SetConnectionStatus(value); return *this;}
/**
* <p>The current status of the connection. </p>
*/
inline Connection& WithConnectionStatus(ConnectionStatus&& value) { SetConnectionStatus(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the host associated with the
* connection.</p>
*/
inline const Aws::String& GetHostArn() const{ return m_hostArn; }
/**
* <p>The Amazon Resource Name (ARN) of the host associated with the
* connection.</p>
*/
inline bool HostArnHasBeenSet() const { return m_hostArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the host associated with the
* connection.</p>
*/
inline void SetHostArn(const Aws::String& value) { m_hostArnHasBeenSet = true; m_hostArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the host associated with the
* connection.</p>
*/
inline void SetHostArn(Aws::String&& value) { m_hostArnHasBeenSet = true; m_hostArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the host associated with the
* connection.</p>
*/
inline void SetHostArn(const char* value) { m_hostArnHasBeenSet = true; m_hostArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the host associated with the
* connection.</p>
*/
inline Connection& WithHostArn(const Aws::String& value) { SetHostArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the host associated with the
* connection.</p>
*/
inline Connection& WithHostArn(Aws::String&& value) { SetHostArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the host associated with the
* connection.</p>
*/
inline Connection& WithHostArn(const char* value) { SetHostArn(value); return *this;}
private:
Aws::String m_connectionName;
bool m_connectionNameHasBeenSet;
Aws::String m_connectionArn;
bool m_connectionArnHasBeenSet;
ProviderType m_providerType;
bool m_providerTypeHasBeenSet;
Aws::String m_ownerAccountId;
bool m_ownerAccountIdHasBeenSet;
ConnectionStatus m_connectionStatus;
bool m_connectionStatusHasBeenSet;
Aws::String m_hostArn;
bool m_hostArnHasBeenSet;
};
} // namespace Model
} // namespace CodeStarconnections
} // namespace Aws