This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetCommitRequest.h

133 lines
4.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codecommit/CodeCommit_EXPORTS.h>
#include <aws/codecommit/CodeCommitRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeCommit
{
namespace Model
{
/**
* <p>Represents the input of a get commit operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommitInput">AWS
* API Reference</a></p>
*/
class AWS_CODECOMMIT_API GetCommitRequest : public CodeCommitRequest
{
public:
GetCommitRequest();
// 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 "GetCommit"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the repository to which the commit was made.</p>
*/
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
/**
* <p>The name of the repository to which the commit was made.</p>
*/
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
/**
* <p>The name of the repository to which the commit was made.</p>
*/
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
/**
* <p>The name of the repository to which the commit was made.</p>
*/
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
/**
* <p>The name of the repository to which the commit was made.</p>
*/
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
/**
* <p>The name of the repository to which the commit was made.</p>
*/
inline GetCommitRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
/**
* <p>The name of the repository to which the commit was made.</p>
*/
inline GetCommitRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
/**
* <p>The name of the repository to which the commit was made.</p>
*/
inline GetCommitRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
/**
* <p>The commit ID. Commit IDs are the full SHA ID of the commit.</p>
*/
inline const Aws::String& GetCommitId() const{ return m_commitId; }
/**
* <p>The commit ID. Commit IDs are the full SHA ID of the commit.</p>
*/
inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
/**
* <p>The commit ID. Commit IDs are the full SHA ID of the commit.</p>
*/
inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
/**
* <p>The commit ID. Commit IDs are the full SHA ID of the commit.</p>
*/
inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
/**
* <p>The commit ID. Commit IDs are the full SHA ID of the commit.</p>
*/
inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
/**
* <p>The commit ID. Commit IDs are the full SHA ID of the commit.</p>
*/
inline GetCommitRequest& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
/**
* <p>The commit ID. Commit IDs are the full SHA ID of the commit.</p>
*/
inline GetCommitRequest& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
/**
* <p>The commit ID. Commit IDs are the full SHA ID of the commit.</p>
*/
inline GetCommitRequest& WithCommitId(const char* value) { SetCommitId(value); return *this;}
private:
Aws::String m_repositoryName;
bool m_repositoryNameHasBeenSet;
Aws::String m_commitId;
bool m_commitIdHasBeenSet;
};
} // namespace Model
} // namespace CodeCommit
} // namespace Aws