AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCommitIds(const Aws::Vector<Aws::String>& value) { m_commitIdsHasBeenSet = true; m_commitIds = value; }
47 inline void SetCommitIds(Aws::Vector<Aws::String>&& value) { m_commitIdsHasBeenSet = true; m_commitIds = std::move(value); }
48 inline BatchGetCommitsRequest& WithCommitIds(const Aws::Vector<Aws::String>& value) { SetCommitIds(value); return *this;}
49 inline BatchGetCommitsRequest& WithCommitIds(Aws::Vector<Aws::String>&& value) { SetCommitIds(std::move(value)); return *this;}
50 inline BatchGetCommitsRequest& AddCommitIds(const Aws::String& value) { m_commitIdsHasBeenSet = true; m_commitIds.push_back(value); return *this; }
51 inline BatchGetCommitsRequest& AddCommitIds(Aws::String&& value) { m_commitIdsHasBeenSet = true; m_commitIds.push_back(std::move(value)); return *this; }
52 inline BatchGetCommitsRequest& AddCommitIds(const char* value) { m_commitIdsHasBeenSet = true; m_commitIds.push_back(value); return *this; }
54
56
59 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
60 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
61 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
62 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
63 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
64 inline BatchGetCommitsRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
65 inline BatchGetCommitsRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
66 inline BatchGetCommitsRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
68 private:
69
70 Aws::Vector<Aws::String> m_commitIds;
71 bool m_commitIdsHasBeenSet = false;
72
73 Aws::String m_repositoryName;
74 bool m_repositoryNameHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CodeCommit
79} // namespace Aws
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
BatchGetCommitsRequest & AddCommitIds(const char *value)
BatchGetCommitsRequest & WithRepositoryName(Aws::String &&value)
BatchGetCommitsRequest & AddCommitIds(const Aws::String &value)
BatchGetCommitsRequest & WithCommitIds(const Aws::Vector< Aws::String > &value)
BatchGetCommitsRequest & WithCommitIds(Aws::Vector< Aws::String > &&value)
void SetCommitIds(const Aws::Vector< Aws::String > &value)
BatchGetCommitsRequest & AddCommitIds(Aws::String &&value)
void SetCommitIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetCommitIds() const
virtual const char * GetServiceRequestName() const override
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchGetCommitsRequest & WithRepositoryName(const char *value)
BatchGetCommitsRequest & WithRepositoryName(const Aws::String &value)
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