/** * 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 #include namespace Aws { namespace Http { class URI; } //namespace Http namespace CodeArtifact { namespace Model { /** */ class UpdatePackageVersionsStatusRequest : public CodeArtifactRequest { public: AWS_CODEARTIFACT_API UpdatePackageVersionsStatusRequest(); // 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 "UpdatePackageVersionsStatus"; } 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 that contains the * package versions with a status to be updated.

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

The name of the domain that contains the repository that contains the * package versions with a status to be updated.

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

The name of the domain that contains the repository that contains the * package versions with a status to be updated.

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

The name of the domain that contains the repository that contains the * package versions with a status to be updated.

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

The name of the domain that contains the repository that contains the * package versions with a status to be updated.

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

The name of the domain that contains the repository that contains the * package versions with a status to be updated.

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

The name of the domain that contains the repository that contains the * package versions with a status to be updated.

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

The name of the domain that contains the repository that contains the * package versions with a status to be updated.

*/ inline UpdatePackageVersionsStatusRequest& 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 UpdatePackageVersionsStatusRequest& 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 UpdatePackageVersionsStatusRequest& 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 UpdatePackageVersionsStatusRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;} /** *

The repository that contains the package versions with the status you want * to update.

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

The repository that contains the package versions with the status you want * to update.

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

The repository that contains the package versions with the status you want * to update.

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

The repository that contains the package versions with the status you want * to update.

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

The repository that contains the package versions with the status you want * to update.

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

The repository that contains the package versions with the status you want * to update.

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

The repository that contains the package versions with the status you want * to update.

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

The repository that contains the package versions with the status you want * to update.

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

A format that specifies the type of the package with the statuses to update. *

*/ inline const PackageFormat& GetFormat() const{ return m_format; } /** *

A format that specifies the type of the package with the statuses to update. *

*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *

A format that specifies the type of the package with the statuses to update. *

*/ inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; } /** *

A format that specifies the type of the package with the statuses to update. *

*/ inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *

A format that specifies the type of the package with the statuses to update. *

*/ inline UpdatePackageVersionsStatusRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;} /** *

A format that specifies the type of the package with the statuses to update. *

*/ inline UpdatePackageVersionsStatusRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;} /** *

The namespace of the package version to be updated. The package version * component that specifies its namespace depends on its type. For example:

*
  • The namespace of a Maven package version is its * groupId.

  • The namespace of an npm package * version is its scope.

  • Python and NuGet package * versions do not contain a corresponding component, package versions of those * formats do not have a namespace.

  • The namespace of a generic * package is its namespace.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

The namespace of the package version to be updated. The package version * component that specifies its namespace depends on its type. For example:

*
  • The namespace of a Maven package version is its * groupId.

  • The namespace of an npm package * version is its scope.

  • Python and NuGet package * versions do not contain a corresponding component, package versions of those * formats do not have a namespace.

  • The namespace of a generic * package is its namespace.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

The namespace of the package version to be updated. The package version * component that specifies its namespace depends on its type. For example:

*
  • The namespace of a Maven package version is its * groupId.

  • The namespace of an npm package * version is its scope.

  • Python and NuGet package * versions do not contain a corresponding component, package versions of those * formats do not have a namespace.

  • The namespace of a generic * package is its namespace.

*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *

The namespace of the package version to be updated. The package version * component that specifies its namespace depends on its type. For example:

*
  • The namespace of a Maven package version is its * groupId.

  • The namespace of an npm package * version is its scope.

  • Python and NuGet package * versions do not contain a corresponding component, package versions of those * formats do not have a namespace.

  • The namespace of a generic * package is its namespace.

*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *

The namespace of the package version to be updated. The package version * component that specifies its namespace depends on its type. For example:

*
  • The namespace of a Maven package version is its * groupId.

  • The namespace of an npm package * version is its scope.

  • Python and NuGet package * versions do not contain a corresponding component, package versions of those * formats do not have a namespace.

  • The namespace of a generic * package is its namespace.

*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *

The namespace of the package version to be updated. The package version * component that specifies its namespace depends on its type. For example:

*
  • The namespace of a Maven package version is its * groupId.

  • The namespace of an npm package * version is its scope.

  • Python and NuGet package * versions do not contain a corresponding component, package versions of those * formats do not have a namespace.

  • The namespace of a generic * package is its namespace.

*/ inline UpdatePackageVersionsStatusRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespace of the package version to be updated. The package version * component that specifies its namespace depends on its type. For example:

*
  • The namespace of a Maven package version is its * groupId.

  • The namespace of an npm package * version is its scope.

  • Python and NuGet package * versions do not contain a corresponding component, package versions of those * formats do not have a namespace.

  • The namespace of a generic * package is its namespace.

*/ inline UpdatePackageVersionsStatusRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The namespace of the package version to be updated. The package version * component that specifies its namespace depends on its type. For example:

*
  • The namespace of a Maven package version is its * groupId.

  • The namespace of an npm package * version is its scope.

  • Python and NuGet package * versions do not contain a corresponding component, package versions of those * formats do not have a namespace.

  • The namespace of a generic * package is its namespace.

*/ inline UpdatePackageVersionsStatusRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

The name of the package with the version statuses to update.

*/ inline const Aws::String& GetPackage() const{ return m_package; } /** *

The name of the package with the version statuses to update.

*/ inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; } /** *

The name of the package with the version statuses to update.

*/ inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; } /** *

The name of the package with the version statuses to update.

*/ inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); } /** *

The name of the package with the version statuses to update.

*/ inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); } /** *

The name of the package with the version statuses to update.

*/ inline UpdatePackageVersionsStatusRequest& WithPackage(const Aws::String& value) { SetPackage(value); return *this;} /** *

The name of the package with the version statuses to update.

*/ inline UpdatePackageVersionsStatusRequest& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;} /** *

The name of the package with the version statuses to update.

*/ inline UpdatePackageVersionsStatusRequest& WithPackage(const char* value) { SetPackage(value); return *this;} /** *

An array of strings that specify the versions of the package with the * statuses to update.

*/ inline const Aws::Vector& GetVersions() const{ return m_versions; } /** *

An array of strings that specify the versions of the package with the * statuses to update.

*/ inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; } /** *

An array of strings that specify the versions of the package with the * statuses to update.

*/ inline void SetVersions(const Aws::Vector& value) { m_versionsHasBeenSet = true; m_versions = value; } /** *

An array of strings that specify the versions of the package with the * statuses to update.

*/ inline void SetVersions(Aws::Vector&& value) { m_versionsHasBeenSet = true; m_versions = std::move(value); } /** *

An array of strings that specify the versions of the package with the * statuses to update.

*/ inline UpdatePackageVersionsStatusRequest& WithVersions(const Aws::Vector& value) { SetVersions(value); return *this;} /** *

An array of strings that specify the versions of the package with the * statuses to update.

*/ inline UpdatePackageVersionsStatusRequest& WithVersions(Aws::Vector&& value) { SetVersions(std::move(value)); return *this;} /** *

An array of strings that specify the versions of the package with the * statuses to update.

*/ inline UpdatePackageVersionsStatusRequest& AddVersions(const Aws::String& value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; } /** *

An array of strings that specify the versions of the package with the * statuses to update.

*/ inline UpdatePackageVersionsStatusRequest& AddVersions(Aws::String&& value) { m_versionsHasBeenSet = true; m_versions.push_back(std::move(value)); return *this; } /** *

An array of strings that specify the versions of the package with the * statuses to update.

*/ inline UpdatePackageVersionsStatusRequest& AddVersions(const char* value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; } /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline const Aws::Map& GetVersionRevisions() const{ return m_versionRevisions; } /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline bool VersionRevisionsHasBeenSet() const { return m_versionRevisionsHasBeenSet; } /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline void SetVersionRevisions(const Aws::Map& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions = value; } /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline void SetVersionRevisions(Aws::Map&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions = std::move(value); } /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline UpdatePackageVersionsStatusRequest& WithVersionRevisions(const Aws::Map& value) { SetVersionRevisions(value); return *this;} /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline UpdatePackageVersionsStatusRequest& WithVersionRevisions(Aws::Map&& value) { SetVersionRevisions(std::move(value)); return *this;} /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(const Aws::String& key, const Aws::String& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, value); return *this; } /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(Aws::String&& key, const Aws::String& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::move(key), value); return *this; } /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(const Aws::String& key, Aws::String&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, std::move(value)); return *this; } /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(Aws::String&& key, Aws::String&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(const char* key, Aws::String&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, std::move(value)); return *this; } /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(Aws::String&& key, const char* value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::move(key), value); return *this; } /** *

A map of package versions and package version revisions. The map * key is the package version (for example, 3.5.2), and * the map value is the package version revision.

*/ inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(const char* key, const char* value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, value); return *this; } /** *

The package version’s expected status before it is updated. If * expectedStatus is provided, the package version's status is updated * only if its status at the time UpdatePackageVersionsStatus is * called matches expectedStatus.

*/ inline const PackageVersionStatus& GetExpectedStatus() const{ return m_expectedStatus; } /** *

The package version’s expected status before it is updated. If * expectedStatus is provided, the package version's status is updated * only if its status at the time UpdatePackageVersionsStatus is * called matches expectedStatus.

*/ inline bool ExpectedStatusHasBeenSet() const { return m_expectedStatusHasBeenSet; } /** *

The package version’s expected status before it is updated. If * expectedStatus is provided, the package version's status is updated * only if its status at the time UpdatePackageVersionsStatus is * called matches expectedStatus.

*/ inline void SetExpectedStatus(const PackageVersionStatus& value) { m_expectedStatusHasBeenSet = true; m_expectedStatus = value; } /** *

The package version’s expected status before it is updated. If * expectedStatus is provided, the package version's status is updated * only if its status at the time UpdatePackageVersionsStatus is * called matches expectedStatus.

*/ inline void SetExpectedStatus(PackageVersionStatus&& value) { m_expectedStatusHasBeenSet = true; m_expectedStatus = std::move(value); } /** *

The package version’s expected status before it is updated. If * expectedStatus is provided, the package version's status is updated * only if its status at the time UpdatePackageVersionsStatus is * called matches expectedStatus.

*/ inline UpdatePackageVersionsStatusRequest& WithExpectedStatus(const PackageVersionStatus& value) { SetExpectedStatus(value); return *this;} /** *

The package version’s expected status before it is updated. If * expectedStatus is provided, the package version's status is updated * only if its status at the time UpdatePackageVersionsStatus is * called matches expectedStatus.

*/ inline UpdatePackageVersionsStatusRequest& WithExpectedStatus(PackageVersionStatus&& value) { SetExpectedStatus(std::move(value)); return *this;} /** *

The status you want to change the package version status to.

*/ inline const PackageVersionStatus& GetTargetStatus() const{ return m_targetStatus; } /** *

The status you want to change the package version status to.

*/ inline bool TargetStatusHasBeenSet() const { return m_targetStatusHasBeenSet; } /** *

The status you want to change the package version status to.

*/ inline void SetTargetStatus(const PackageVersionStatus& value) { m_targetStatusHasBeenSet = true; m_targetStatus = value; } /** *

The status you want to change the package version status to.

*/ inline void SetTargetStatus(PackageVersionStatus&& value) { m_targetStatusHasBeenSet = true; m_targetStatus = std::move(value); } /** *

The status you want to change the package version status to.

*/ inline UpdatePackageVersionsStatusRequest& WithTargetStatus(const PackageVersionStatus& value) { SetTargetStatus(value); return *this;} /** *

The status you want to change the package version status to.

*/ inline UpdatePackageVersionsStatusRequest& WithTargetStatus(PackageVersionStatus&& value) { SetTargetStatus(std::move(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; PackageFormat m_format; bool m_formatHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; Aws::String m_package; bool m_packageHasBeenSet = false; Aws::Vector m_versions; bool m_versionsHasBeenSet = false; Aws::Map m_versionRevisions; bool m_versionRevisionsHasBeenSet = false; PackageVersionStatus m_expectedStatus; bool m_expectedStatusHasBeenSet = false; PackageVersionStatus m_targetStatus; bool m_targetStatusHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws