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

139 lines
4.8 KiB
C++

/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/codestar-connections/model/Tag.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
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<Aws::Utils::Json::JsonValue>& result);
CreateConnectionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>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.</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 to be created. 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_connectionArn = value; }
/**
* <p>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.</p> <p>The ARN is never reused if the connection is
* deleted.</p>
*/
inline void SetConnectionArn(Aws::String&& value) { m_connectionArn = std::move(value); }
/**
* <p>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.</p> <p>The ARN is never reused if the connection is
* deleted.</p>
*/
inline void SetConnectionArn(const char* value) { m_connectionArn.assign(value); }
/**
* <p>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.</p> <p>The ARN is never reused if the connection is
* deleted.</p>
*/
inline CreateConnectionResult& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
/**
* <p>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.</p> <p>The ARN is never reused if the connection is
* deleted.</p>
*/
inline CreateConnectionResult& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
/**
* <p>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.</p> <p>The ARN is never reused if the connection is
* deleted.</p>
*/
inline CreateConnectionResult& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
/**
* <p>Specifies the tags applied to the resource.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Specifies the tags applied to the resource.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
/**
* <p>Specifies the tags applied to the resource.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
/**
* <p>Specifies the tags applied to the resource.</p>
*/
inline CreateConnectionResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Specifies the tags applied to the resource.</p>
*/
inline CreateConnectionResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Specifies the tags applied to the resource.</p>
*/
inline CreateConnectionResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
/**
* <p>Specifies the tags applied to the resource.</p>
*/
inline CreateConnectionResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_connectionArn;
Aws::Vector<Tag> m_tags;
};
} // namespace Model
} // namespace CodeStarconnections
} // namespace Aws