/** * 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 ListRepositoriesInDomainRequest : public CodeArtifactRequest { public: AWS_CODEARTIFACT_API ListRepositoriesInDomainRequest(); // 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 "ListRepositoriesInDomain"; } 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 returned list of repositories.

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

The name of the domain that contains the returned list of repositories.

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

The name of the domain that contains the returned list of repositories.

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

The name of the domain that contains the returned list of repositories.

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

The name of the domain that contains the returned list of repositories.

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

The name of the domain that contains the returned list of repositories.

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

The name of the domain that contains the returned list of repositories.

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

The name of the domain that contains the returned list of repositories.

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

Filter the list of repositories to only include those that are managed by * the Amazon Web Services account ID.

*/ inline const Aws::String& GetAdministratorAccount() const{ return m_administratorAccount; } /** *

Filter the list of repositories to only include those that are managed by * the Amazon Web Services account ID.

*/ inline bool AdministratorAccountHasBeenSet() const { return m_administratorAccountHasBeenSet; } /** *

Filter the list of repositories to only include those that are managed by * the Amazon Web Services account ID.

*/ inline void SetAdministratorAccount(const Aws::String& value) { m_administratorAccountHasBeenSet = true; m_administratorAccount = value; } /** *

Filter the list of repositories to only include those that are managed by * the Amazon Web Services account ID.

*/ inline void SetAdministratorAccount(Aws::String&& value) { m_administratorAccountHasBeenSet = true; m_administratorAccount = std::move(value); } /** *

Filter the list of repositories to only include those that are managed by * the Amazon Web Services account ID.

*/ inline void SetAdministratorAccount(const char* value) { m_administratorAccountHasBeenSet = true; m_administratorAccount.assign(value); } /** *

Filter the list of repositories to only include those that are managed by * the Amazon Web Services account ID.

*/ inline ListRepositoriesInDomainRequest& WithAdministratorAccount(const Aws::String& value) { SetAdministratorAccount(value); return *this;} /** *

Filter the list of repositories to only include those that are managed by * the Amazon Web Services account ID.

*/ inline ListRepositoriesInDomainRequest& WithAdministratorAccount(Aws::String&& value) { SetAdministratorAccount(std::move(value)); return *this;} /** *

Filter the list of repositories to only include those that are managed by * the Amazon Web Services account ID.

*/ inline ListRepositoriesInDomainRequest& WithAdministratorAccount(const char* value) { SetAdministratorAccount(value); return *this;} /** *

A prefix used to filter returned repositories. Only repositories with names * that start with repositoryPrefix are returned.

*/ inline const Aws::String& GetRepositoryPrefix() const{ return m_repositoryPrefix; } /** *

A prefix used to filter returned repositories. Only repositories with names * that start with repositoryPrefix are returned.

*/ inline bool RepositoryPrefixHasBeenSet() const { return m_repositoryPrefixHasBeenSet; } /** *

A prefix used to filter returned repositories. Only repositories with names * that start with repositoryPrefix are returned.

*/ inline void SetRepositoryPrefix(const Aws::String& value) { m_repositoryPrefixHasBeenSet = true; m_repositoryPrefix = value; } /** *

A prefix used to filter returned repositories. Only repositories with names * that start with repositoryPrefix are returned.

*/ inline void SetRepositoryPrefix(Aws::String&& value) { m_repositoryPrefixHasBeenSet = true; m_repositoryPrefix = std::move(value); } /** *

A prefix used to filter returned repositories. Only repositories with names * that start with repositoryPrefix are returned.

*/ inline void SetRepositoryPrefix(const char* value) { m_repositoryPrefixHasBeenSet = true; m_repositoryPrefix.assign(value); } /** *

A prefix used to filter returned repositories. Only repositories with names * that start with repositoryPrefix are returned.

*/ inline ListRepositoriesInDomainRequest& WithRepositoryPrefix(const Aws::String& value) { SetRepositoryPrefix(value); return *this;} /** *

A prefix used to filter returned repositories. Only repositories with names * that start with repositoryPrefix are returned.

*/ inline ListRepositoriesInDomainRequest& WithRepositoryPrefix(Aws::String&& value) { SetRepositoryPrefix(std::move(value)); return *this;} /** *

A prefix used to filter returned repositories. Only repositories with names * that start with repositoryPrefix are returned.

*/ inline ListRepositoriesInDomainRequest& WithRepositoryPrefix(const char* value) { SetRepositoryPrefix(value); return *this;} /** *

The maximum number of results to return per page.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to return per page.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to return per page.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to return per page.

*/ inline ListRepositoriesInDomainRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

*/ inline ListRepositoriesInDomainRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

*/ inline ListRepositoriesInDomainRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

*/ inline ListRepositoriesInDomainRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_domain; bool m_domainHasBeenSet = false; Aws::String m_domainOwner; bool m_domainOwnerHasBeenSet = false; Aws::String m_administratorAccount; bool m_administratorAccountHasBeenSet = false; Aws::String m_repositoryPrefix; bool m_repositoryPrefixHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws