/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace CodeArtifact { namespace Model { /** */ class AssociateExternalConnectionRequest : public CodeArtifactRequest { public: AWS_CODEARTIFACT_API AssociateExternalConnectionRequest(); // 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 "AssociateExternalConnection"; } AWS_CODEARTIFACT_API Aws::String SerializePayload() const override; AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the domain that contains the repository.

*/ inline const Aws::String& GetDomain() const{ return m_domain; } /** *

The name of the domain that contains the repository.

*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *

The name of the domain that contains the repository.

*/ inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } /** *

The name of the domain that contains the repository.

*/ inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *

The name of the domain that contains the repository.

*/ inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } /** *

The name of the domain that contains the repository.

*/ inline AssociateExternalConnectionRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;} /** *

The name of the domain that contains the repository.

*/ inline AssociateExternalConnectionRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;} /** *

The name of the domain that contains the repository.

*/ inline AssociateExternalConnectionRequest& WithDomain(const char* value) { SetDomain(value); return *this;} /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; } /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; } /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; } /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); } /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); } /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline AssociateExternalConnectionRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;} /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline AssociateExternalConnectionRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;} /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline AssociateExternalConnectionRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;} /** *

The name of the repository to which the external connection is added.

*/ inline const Aws::String& GetRepository() const{ return m_repository; } /** *

The name of the repository to which the external connection is added.

*/ inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; } /** *

The name of the repository to which the external connection is added.

*/ inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; } /** *

The name of the repository to which the external connection is added.

*/ inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); } /** *

The name of the repository to which the external connection is added.

*/ inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); } /** *

The name of the repository to which the external connection is added.

*/ inline AssociateExternalConnectionRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;} /** *

The name of the repository to which the external connection is added.

*/ inline AssociateExternalConnectionRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;} /** *

The name of the repository to which the external connection is added.

*/ inline AssociateExternalConnectionRequest& WithRepository(const char* value) { SetRepository(value); return *this;} /** *

The name of the external connection to add to the repository. The following * values are supported:

  • public:npmjs - for the npm * public repository.

  • public:nuget-org - for the * NuGet Gallery.

  • public:pypi - for the Python * Package Index.

  • public:maven-central - for Maven * Central.

  • public:maven-googleandroid - for the * Google Android repository.

  • * public:maven-gradleplugins - for the Gradle plugins repository. *

  • public:maven-commonsware - for the CommonsWare * Android repository.

  • public:maven-clojars - for * the Clojars repository.

*/ inline const Aws::String& GetExternalConnection() const{ return m_externalConnection; } /** *

The name of the external connection to add to the repository. The following * values are supported:

  • public:npmjs - for the npm * public repository.

  • public:nuget-org - for the * NuGet Gallery.

  • public:pypi - for the Python * Package Index.

  • public:maven-central - for Maven * Central.

  • public:maven-googleandroid - for the * Google Android repository.

  • * public:maven-gradleplugins - for the Gradle plugins repository. *

  • public:maven-commonsware - for the CommonsWare * Android repository.

  • public:maven-clojars - for * the Clojars repository.

*/ inline bool ExternalConnectionHasBeenSet() const { return m_externalConnectionHasBeenSet; } /** *

The name of the external connection to add to the repository. The following * values are supported:

  • public:npmjs - for the npm * public repository.

  • public:nuget-org - for the * NuGet Gallery.

  • public:pypi - for the Python * Package Index.

  • public:maven-central - for Maven * Central.

  • public:maven-googleandroid - for the * Google Android repository.

  • * public:maven-gradleplugins - for the Gradle plugins repository. *

  • public:maven-commonsware - for the CommonsWare * Android repository.

  • public:maven-clojars - for * the Clojars repository.

*/ inline void SetExternalConnection(const Aws::String& value) { m_externalConnectionHasBeenSet = true; m_externalConnection = value; } /** *

The name of the external connection to add to the repository. The following * values are supported:

  • public:npmjs - for the npm * public repository.

  • public:nuget-org - for the * NuGet Gallery.

  • public:pypi - for the Python * Package Index.

  • public:maven-central - for Maven * Central.

  • public:maven-googleandroid - for the * Google Android repository.

  • * public:maven-gradleplugins - for the Gradle plugins repository. *

  • public:maven-commonsware - for the CommonsWare * Android repository.

  • public:maven-clojars - for * the Clojars repository.

*/ inline void SetExternalConnection(Aws::String&& value) { m_externalConnectionHasBeenSet = true; m_externalConnection = std::move(value); } /** *

The name of the external connection to add to the repository. The following * values are supported:

  • public:npmjs - for the npm * public repository.

  • public:nuget-org - for the * NuGet Gallery.

  • public:pypi - for the Python * Package Index.

  • public:maven-central - for Maven * Central.

  • public:maven-googleandroid - for the * Google Android repository.

  • * public:maven-gradleplugins - for the Gradle plugins repository. *

  • public:maven-commonsware - for the CommonsWare * Android repository.

  • public:maven-clojars - for * the Clojars repository.

*/ inline void SetExternalConnection(const char* value) { m_externalConnectionHasBeenSet = true; m_externalConnection.assign(value); } /** *

The name of the external connection to add to the repository. The following * values are supported:

  • public:npmjs - for the npm * public repository.

  • public:nuget-org - for the * NuGet Gallery.

  • public:pypi - for the Python * Package Index.

  • public:maven-central - for Maven * Central.

  • public:maven-googleandroid - for the * Google Android repository.

  • * public:maven-gradleplugins - for the Gradle plugins repository. *

  • public:maven-commonsware - for the CommonsWare * Android repository.

  • public:maven-clojars - for * the Clojars repository.

*/ inline AssociateExternalConnectionRequest& WithExternalConnection(const Aws::String& value) { SetExternalConnection(value); return *this;} /** *

The name of the external connection to add to the repository. The following * values are supported:

  • public:npmjs - for the npm * public repository.

  • public:nuget-org - for the * NuGet Gallery.

  • public:pypi - for the Python * Package Index.

  • public:maven-central - for Maven * Central.

  • public:maven-googleandroid - for the * Google Android repository.

  • * public:maven-gradleplugins - for the Gradle plugins repository. *

  • public:maven-commonsware - for the CommonsWare * Android repository.

  • public:maven-clojars - for * the Clojars repository.

*/ inline AssociateExternalConnectionRequest& WithExternalConnection(Aws::String&& value) { SetExternalConnection(std::move(value)); return *this;} /** *

The name of the external connection to add to the repository. The following * values are supported:

  • public:npmjs - for the npm * public repository.

  • public:nuget-org - for the * NuGet Gallery.

  • public:pypi - for the Python * Package Index.

  • public:maven-central - for Maven * Central.

  • public:maven-googleandroid - for the * Google Android repository.

  • * public:maven-gradleplugins - for the Gradle plugins repository. *

  • public:maven-commonsware - for the CommonsWare * Android repository.

  • public:maven-clojars - for * the Clojars repository.

*/ inline AssociateExternalConnectionRequest& WithExternalConnection(const char* value) { SetExternalConnection(value); return *this;} private: Aws::String m_domain; bool m_domainHasBeenSet = false; Aws::String m_domainOwner; bool m_domainOwnerHasBeenSet = false; Aws::String m_repository; bool m_repositoryHasBeenSet = false; Aws::String m_externalConnection; bool m_externalConnectionHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws