/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppRunner { namespace Model { /** *

Provides summary information about an App Runner connection * resource.

See Also:

AWS * API Reference

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

The customer-provided connection name.

*/ inline const Aws::String& GetConnectionName() const{ return m_connectionName; } /** *

The customer-provided connection name.

*/ inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; } /** *

The customer-provided connection name.

*/ inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; } /** *

The customer-provided connection name.

*/ inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); } /** *

The customer-provided connection name.

*/ inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); } /** *

The customer-provided connection name.

*/ inline ConnectionSummary& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;} /** *

The customer-provided connection name.

*/ inline ConnectionSummary& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;} /** *

The customer-provided connection name.

*/ inline ConnectionSummary& WithConnectionName(const char* value) { SetConnectionName(value); return *this;} /** *

The Amazon Resource Name (ARN) of this connection.

*/ inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; } /** *

The Amazon Resource Name (ARN) of this connection.

*/ inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of this connection.

*/ inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; } /** *

The Amazon Resource Name (ARN) of this connection.

*/ inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of this connection.

*/ inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of this connection.

*/ inline ConnectionSummary& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of this connection.

*/ inline ConnectionSummary& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of this connection.

*/ inline ConnectionSummary& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;} /** *

The source repository provider.

*/ inline const ProviderType& GetProviderType() const{ return m_providerType; } /** *

The source repository provider.

*/ inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; } /** *

The source repository provider.

*/ inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; } /** *

The source repository provider.

*/ inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); } /** *

The source repository provider.

*/ inline ConnectionSummary& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;} /** *

The source repository provider.

*/ inline ConnectionSummary& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;} /** *

The current state of the App Runner connection. When the state is * AVAILABLE, you can use the connection to create an App Runner * service.

*/ inline const ConnectionStatus& GetStatus() const{ return m_status; } /** *

The current state of the App Runner connection. When the state is * AVAILABLE, you can use the connection to create an App Runner * service.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current state of the App Runner connection. When the state is * AVAILABLE, you can use the connection to create an App Runner * service.

*/ inline void SetStatus(const ConnectionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current state of the App Runner connection. When the state is * AVAILABLE, you can use the connection to create an App Runner * service.

*/ inline void SetStatus(ConnectionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current state of the App Runner connection. When the state is * AVAILABLE, you can use the connection to create an App Runner * service.

*/ inline ConnectionSummary& WithStatus(const ConnectionStatus& value) { SetStatus(value); return *this;} /** *

The current state of the App Runner connection. When the state is * AVAILABLE, you can use the connection to create an App Runner * service.

*/ inline ConnectionSummary& WithStatus(ConnectionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The App Runner connection creation time, expressed as a Unix time stamp.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The App Runner connection creation time, expressed as a Unix time stamp.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The App Runner connection creation time, expressed as a Unix time stamp.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The App Runner connection creation time, expressed as a Unix time stamp.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The App Runner connection creation time, expressed as a Unix time stamp.

*/ inline ConnectionSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The App Runner connection creation time, expressed as a Unix time stamp.

*/ inline ConnectionSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} private: Aws::String m_connectionName; bool m_connectionNameHasBeenSet = false; Aws::String m_connectionArn; bool m_connectionArnHasBeenSet = false; ProviderType m_providerType; bool m_providerTypeHasBeenSet = false; ConnectionStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws