AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchGetCommitsRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/CodeCommitRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeCommit
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CODECOMMIT_API BatchGetCommitsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "BatchGetCommits"; }
32
33 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const Aws::Vector<Aws::String>& GetCommitIds() const { return m_commitIds; }
45 inline bool CommitIdsHasBeenSet() const { return m_commitIdsHasBeenSet; }
46 template<typename CommitIdsT = Aws::Vector<Aws::String>>
47 void SetCommitIds(CommitIdsT&& value) { m_commitIdsHasBeenSet = true; m_commitIds = std::forward<CommitIdsT>(value); }
48 template<typename CommitIdsT = Aws::Vector<Aws::String>>
49 BatchGetCommitsRequest& WithCommitIds(CommitIdsT&& value) { SetCommitIds(std::forward<CommitIdsT>(value)); return *this;}
50 template<typename CommitIdsT = Aws::String>
51 BatchGetCommitsRequest& AddCommitIds(CommitIdsT&& value) { m_commitIdsHasBeenSet = true; m_commitIds.emplace_back(std::forward<CommitIdsT>(value)); return *this; }
53
55
58 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
59 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
60 template<typename RepositoryNameT = Aws::String>
61 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
62 template<typename RepositoryNameT = Aws::String>
63 BatchGetCommitsRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
65 private:
66
67 Aws::Vector<Aws::String> m_commitIds;
68 bool m_commitIdsHasBeenSet = false;
69
70 Aws::String m_repositoryName;
71 bool m_repositoryNameHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CodeCommit
76} // namespace Aws
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
BatchGetCommitsRequest & WithCommitIds(CommitIdsT &&value)
BatchGetCommitsRequest & AddCommitIds(CommitIdsT &&value)
AWS_CODECOMMIT_API BatchGetCommitsRequest()=default
BatchGetCommitsRequest & WithRepositoryName(RepositoryNameT &&value)
const Aws::Vector< Aws::String > & GetCommitIds() const
virtual const char * GetServiceRequestName() const override
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector