/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeStarconnections { namespace Model { class AWS_CODESTARCONNECTIONS_API CreateConnectionResult { public: CreateConnectionResult(); CreateConnectionResult(const Aws::AmazonWebServiceResult& result); CreateConnectionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the connection to be created. The ARN is * used as the connection reference when the connection is shared between AWS * services.

The ARN is never reused if the connection is * deleted.

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

The Amazon Resource Name (ARN) of the connection to be created. The ARN is * used as the connection reference when the connection is shared between AWS * services.

The ARN is never reused if the connection is * deleted.

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

The Amazon Resource Name (ARN) of the connection to be created. The ARN is * used as the connection reference when the connection is shared between AWS * services.

The ARN is never reused if the connection is * deleted.

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

The Amazon Resource Name (ARN) of the connection to be created. The ARN is * used as the connection reference when the connection is shared between AWS * services.

The ARN is never reused if the connection is * deleted.

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

The Amazon Resource Name (ARN) of the connection to be created. The ARN is * used as the connection reference when the connection is shared between AWS * services.

The ARN is never reused if the connection is * deleted.

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

The Amazon Resource Name (ARN) of the connection to be created. The ARN is * used as the connection reference when the connection is shared between AWS * services.

The ARN is never reused if the connection is * deleted.

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

The Amazon Resource Name (ARN) of the connection to be created. The ARN is * used as the connection reference when the connection is shared between AWS * services.

The ARN is never reused if the connection is * deleted.

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

Specifies the tags applied to the resource.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Specifies the tags applied to the resource.

*/ inline void SetTags(const Aws::Vector& value) { m_tags = value; } /** *

Specifies the tags applied to the resource.

*/ inline void SetTags(Aws::Vector&& value) { m_tags = std::move(value); } /** *

Specifies the tags applied to the resource.

*/ inline CreateConnectionResult& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Specifies the tags applied to the resource.

*/ inline CreateConnectionResult& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Specifies the tags applied to the resource.

*/ inline CreateConnectionResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** *

Specifies the tags applied to the resource.

*/ inline CreateConnectionResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_connectionArn; Aws::Vector m_tags; }; } // namespace Model } // namespace CodeStarconnections } // namespace Aws