/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace AppRunner { namespace Model { /** */ class CreateConnectionRequest : public AppRunnerRequest { public: AWS_APPRUNNER_API CreateConnectionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateConnection"; } AWS_APPRUNNER_API Aws::String SerializePayload() const override; AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name for the new connection. It must be unique across all App Runner * connections for the Amazon Web Services account in the Amazon Web Services * Region.

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

A name for the new connection. It must be unique across all App Runner * connections for the Amazon Web Services account in the Amazon Web Services * Region.

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

A name for the new connection. It must be unique across all App Runner * connections for the Amazon Web Services account in the Amazon Web Services * Region.

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

A name for the new connection. It must be unique across all App Runner * connections for the Amazon Web Services account in the Amazon Web Services * Region.

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

A name for the new connection. It must be unique across all App Runner * connections for the Amazon Web Services account in the Amazon Web Services * Region.

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

A name for the new connection. It must be unique across all App Runner * connections for the Amazon Web Services account in the Amazon Web Services * Region.

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

A name for the new connection. It must be unique across all App Runner * connections for the Amazon Web Services account in the Amazon Web Services * Region.

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

A name for the new connection. It must be unique across all App Runner * connections for the Amazon Web Services account in the Amazon Web Services * Region.

*/ inline CreateConnectionRequest& WithConnectionName(const char* value) { SetConnectionName(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 CreateConnectionRequest& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;} /** *

The source repository provider.

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

A list of metadata items that you can associate with your connection * resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your connection * resource. A tag is a key-value pair.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of metadata items that you can associate with your connection * resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your connection * resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your connection * resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your connection * resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your connection * resource. A tag is a key-value pair.

*/ inline CreateConnectionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of metadata items that you can associate with your connection * resource. A tag is a key-value pair.

*/ inline CreateConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_connectionName; bool m_connectionNameHasBeenSet = false; ProviderType m_providerType; bool m_providerTypeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws