/** * 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 CodeCommit { namespace Model { /** */ class GetFolderRequest : public CodeCommitRequest { public: AWS_CODECOMMIT_API GetFolderRequest(); // 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 "GetFolder"; } AWS_CODECOMMIT_API Aws::String SerializePayload() const override; AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the repository.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the repository.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The name of the repository.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The name of the repository.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The name of the repository.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The name of the repository.

*/ inline GetFolderRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the repository.

*/ inline GetFolderRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the repository.

*/ inline GetFolderRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

A fully qualified reference used to identify a commit that contains the * version of the folder's content to return. A fully qualified reference can be a * commit ID, branch name, tag, or reference such as HEAD. If no specifier is * provided, the folder content is returned as it exists in the HEAD commit.

*/ inline const Aws::String& GetCommitSpecifier() const{ return m_commitSpecifier; } /** *

A fully qualified reference used to identify a commit that contains the * version of the folder's content to return. A fully qualified reference can be a * commit ID, branch name, tag, or reference such as HEAD. If no specifier is * provided, the folder content is returned as it exists in the HEAD commit.

*/ inline bool CommitSpecifierHasBeenSet() const { return m_commitSpecifierHasBeenSet; } /** *

A fully qualified reference used to identify a commit that contains the * version of the folder's content to return. A fully qualified reference can be a * commit ID, branch name, tag, or reference such as HEAD. If no specifier is * provided, the folder content is returned as it exists in the HEAD commit.

*/ inline void SetCommitSpecifier(const Aws::String& value) { m_commitSpecifierHasBeenSet = true; m_commitSpecifier = value; } /** *

A fully qualified reference used to identify a commit that contains the * version of the folder's content to return. A fully qualified reference can be a * commit ID, branch name, tag, or reference such as HEAD. If no specifier is * provided, the folder content is returned as it exists in the HEAD commit.

*/ inline void SetCommitSpecifier(Aws::String&& value) { m_commitSpecifierHasBeenSet = true; m_commitSpecifier = std::move(value); } /** *

A fully qualified reference used to identify a commit that contains the * version of the folder's content to return. A fully qualified reference can be a * commit ID, branch name, tag, or reference such as HEAD. If no specifier is * provided, the folder content is returned as it exists in the HEAD commit.

*/ inline void SetCommitSpecifier(const char* value) { m_commitSpecifierHasBeenSet = true; m_commitSpecifier.assign(value); } /** *

A fully qualified reference used to identify a commit that contains the * version of the folder's content to return. A fully qualified reference can be a * commit ID, branch name, tag, or reference such as HEAD. If no specifier is * provided, the folder content is returned as it exists in the HEAD commit.

*/ inline GetFolderRequest& WithCommitSpecifier(const Aws::String& value) { SetCommitSpecifier(value); return *this;} /** *

A fully qualified reference used to identify a commit that contains the * version of the folder's content to return. A fully qualified reference can be a * commit ID, branch name, tag, or reference such as HEAD. If no specifier is * provided, the folder content is returned as it exists in the HEAD commit.

*/ inline GetFolderRequest& WithCommitSpecifier(Aws::String&& value) { SetCommitSpecifier(std::move(value)); return *this;} /** *

A fully qualified reference used to identify a commit that contains the * version of the folder's content to return. A fully qualified reference can be a * commit ID, branch name, tag, or reference such as HEAD. If no specifier is * provided, the folder content is returned as it exists in the HEAD commit.

*/ inline GetFolderRequest& WithCommitSpecifier(const char* value) { SetCommitSpecifier(value); return *this;} /** *

The fully qualified path to the folder whose contents are returned, including * the folder name. For example, /examples is a fully-qualified path to a folder * named examples that was created off of the root directory (/) of a repository. *

*/ inline const Aws::String& GetFolderPath() const{ return m_folderPath; } /** *

The fully qualified path to the folder whose contents are returned, including * the folder name. For example, /examples is a fully-qualified path to a folder * named examples that was created off of the root directory (/) of a repository. *

*/ inline bool FolderPathHasBeenSet() const { return m_folderPathHasBeenSet; } /** *

The fully qualified path to the folder whose contents are returned, including * the folder name. For example, /examples is a fully-qualified path to a folder * named examples that was created off of the root directory (/) of a repository. *

*/ inline void SetFolderPath(const Aws::String& value) { m_folderPathHasBeenSet = true; m_folderPath = value; } /** *

The fully qualified path to the folder whose contents are returned, including * the folder name. For example, /examples is a fully-qualified path to a folder * named examples that was created off of the root directory (/) of a repository. *

*/ inline void SetFolderPath(Aws::String&& value) { m_folderPathHasBeenSet = true; m_folderPath = std::move(value); } /** *

The fully qualified path to the folder whose contents are returned, including * the folder name. For example, /examples is a fully-qualified path to a folder * named examples that was created off of the root directory (/) of a repository. *

*/ inline void SetFolderPath(const char* value) { m_folderPathHasBeenSet = true; m_folderPath.assign(value); } /** *

The fully qualified path to the folder whose contents are returned, including * the folder name. For example, /examples is a fully-qualified path to a folder * named examples that was created off of the root directory (/) of a repository. *

*/ inline GetFolderRequest& WithFolderPath(const Aws::String& value) { SetFolderPath(value); return *this;} /** *

The fully qualified path to the folder whose contents are returned, including * the folder name. For example, /examples is a fully-qualified path to a folder * named examples that was created off of the root directory (/) of a repository. *

*/ inline GetFolderRequest& WithFolderPath(Aws::String&& value) { SetFolderPath(std::move(value)); return *this;} /** *

The fully qualified path to the folder whose contents are returned, including * the folder name. For example, /examples is a fully-qualified path to a folder * named examples that was created off of the root directory (/) of a repository. *

*/ inline GetFolderRequest& WithFolderPath(const char* value) { SetFolderPath(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_commitSpecifier; bool m_commitSpecifierHasBeenSet = false; Aws::String m_folderPath; bool m_folderPathHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws