AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetFileRequest.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/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace CodeCommit
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CODECOMMIT_API GetFileRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetFile"; }
31
32 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
42 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
43 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
44 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
45 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
46 inline GetFileRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
47 inline GetFileRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
48 inline GetFileRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
50
52
58 inline const Aws::String& GetCommitSpecifier() const{ return m_commitSpecifier; }
59 inline bool CommitSpecifierHasBeenSet() const { return m_commitSpecifierHasBeenSet; }
60 inline void SetCommitSpecifier(const Aws::String& value) { m_commitSpecifierHasBeenSet = true; m_commitSpecifier = value; }
61 inline void SetCommitSpecifier(Aws::String&& value) { m_commitSpecifierHasBeenSet = true; m_commitSpecifier = std::move(value); }
62 inline void SetCommitSpecifier(const char* value) { m_commitSpecifierHasBeenSet = true; m_commitSpecifier.assign(value); }
63 inline GetFileRequest& WithCommitSpecifier(const Aws::String& value) { SetCommitSpecifier(value); return *this;}
64 inline GetFileRequest& WithCommitSpecifier(Aws::String&& value) { SetCommitSpecifier(std::move(value)); return *this;}
65 inline GetFileRequest& WithCommitSpecifier(const char* value) { SetCommitSpecifier(value); return *this;}
67
69
74 inline const Aws::String& GetFilePath() const{ return m_filePath; }
75 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
76 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
77 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
78 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
79 inline GetFileRequest& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
80 inline GetFileRequest& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
81 inline GetFileRequest& WithFilePath(const char* value) { SetFilePath(value); return *this;}
83 private:
84
85 Aws::String m_repositoryName;
86 bool m_repositoryNameHasBeenSet = false;
87
88 Aws::String m_commitSpecifier;
89 bool m_commitSpecifierHasBeenSet = false;
90
91 Aws::String m_filePath;
92 bool m_filePathHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CodeCommit
97} // namespace Aws
GetFileRequest & WithCommitSpecifier(const char *value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetFileRequest & WithCommitSpecifier(Aws::String &&value)
const Aws::String & GetFilePath() const
GetFileRequest & WithFilePath(const Aws::String &value)
GetFileRequest & WithFilePath(const char *value)
const Aws::String & GetRepositoryName() const
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
void SetCommitSpecifier(const char *value)
virtual const char * GetServiceRequestName() const override
void SetFilePath(const Aws::String &value)
void SetFilePath(Aws::String &&value)
void SetRepositoryName(const Aws::String &value)
GetFileRequest & WithCommitSpecifier(const Aws::String &value)
void SetRepositoryName(const char *value)
GetFileRequest & WithRepositoryName(const Aws::String &value)
GetFileRequest & WithRepositoryName(Aws::String &&value)
GetFileRequest & WithRepositoryName(const char *value)
GetFileRequest & WithFilePath(Aws::String &&value)
void SetCommitSpecifier(const Aws::String &value)
void SetCommitSpecifier(Aws::String &&value)
void SetRepositoryName(Aws::String &&value)
const Aws::String & GetCommitSpecifier() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String