/** * 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 CreateConnectionResult { public: AWS_CODESTARCONNECTIONS_API CreateConnectionResult(); AWS_CODESTARCONNECTIONS_API CreateConnectionResult(const Aws::AmazonWebServiceResult& result); AWS_CODESTARCONNECTIONS_API 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; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateConnectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateConnectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateConnectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_connectionArn; Aws::Vector m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace CodeStarconnections } // namespace Aws