AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Revision.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/proton/model/RepositoryProvider.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Proton
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PROTON_API Revision();
37 AWS_PROTON_API Revision(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PROTON_API Revision& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetBranch() const{ return m_branch; }
47 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
48 inline void SetBranch(const Aws::String& value) { m_branchHasBeenSet = true; m_branch = value; }
49 inline void SetBranch(Aws::String&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); }
50 inline void SetBranch(const char* value) { m_branchHasBeenSet = true; m_branch.assign(value); }
51 inline Revision& WithBranch(const Aws::String& value) { SetBranch(value); return *this;}
52 inline Revision& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;}
53 inline Revision& WithBranch(const char* value) { SetBranch(value); return *this;}
55
57
61 inline const Aws::String& GetDirectory() const{ return m_directory; }
62 inline bool DirectoryHasBeenSet() const { return m_directoryHasBeenSet; }
63 inline void SetDirectory(const Aws::String& value) { m_directoryHasBeenSet = true; m_directory = value; }
64 inline void SetDirectory(Aws::String&& value) { m_directoryHasBeenSet = true; m_directory = std::move(value); }
65 inline void SetDirectory(const char* value) { m_directoryHasBeenSet = true; m_directory.assign(value); }
66 inline Revision& WithDirectory(const Aws::String& value) { SetDirectory(value); return *this;}
67 inline Revision& WithDirectory(Aws::String&& value) { SetDirectory(std::move(value)); return *this;}
68 inline Revision& WithDirectory(const char* value) { SetDirectory(value); return *this;}
70
72
75 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
76 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
77 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
78 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
79 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
80 inline Revision& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
81 inline Revision& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
82 inline Revision& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
84
86
89 inline const RepositoryProvider& GetRepositoryProvider() const{ return m_repositoryProvider; }
90 inline bool RepositoryProviderHasBeenSet() const { return m_repositoryProviderHasBeenSet; }
91 inline void SetRepositoryProvider(const RepositoryProvider& value) { m_repositoryProviderHasBeenSet = true; m_repositoryProvider = value; }
92 inline void SetRepositoryProvider(RepositoryProvider&& value) { m_repositoryProviderHasBeenSet = true; m_repositoryProvider = std::move(value); }
93 inline Revision& WithRepositoryProvider(const RepositoryProvider& value) { SetRepositoryProvider(value); return *this;}
94 inline Revision& WithRepositoryProvider(RepositoryProvider&& value) { SetRepositoryProvider(std::move(value)); return *this;}
96
98
101 inline const Aws::String& GetSha() const{ return m_sha; }
102 inline bool ShaHasBeenSet() const { return m_shaHasBeenSet; }
103 inline void SetSha(const Aws::String& value) { m_shaHasBeenSet = true; m_sha = value; }
104 inline void SetSha(Aws::String&& value) { m_shaHasBeenSet = true; m_sha = std::move(value); }
105 inline void SetSha(const char* value) { m_shaHasBeenSet = true; m_sha.assign(value); }
106 inline Revision& WithSha(const Aws::String& value) { SetSha(value); return *this;}
107 inline Revision& WithSha(Aws::String&& value) { SetSha(std::move(value)); return *this;}
108 inline Revision& WithSha(const char* value) { SetSha(value); return *this;}
110 private:
111
112 Aws::String m_branch;
113 bool m_branchHasBeenSet = false;
114
115 Aws::String m_directory;
116 bool m_directoryHasBeenSet = false;
117
118 Aws::String m_repositoryName;
119 bool m_repositoryNameHasBeenSet = false;
120
121 RepositoryProvider m_repositoryProvider;
122 bool m_repositoryProviderHasBeenSet = false;
123
124 Aws::String m_sha;
125 bool m_shaHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Proton
130} // namespace Aws
const RepositoryProvider & GetRepositoryProvider() const
Definition Revision.h:89
void SetRepositoryName(const char *value)
Definition Revision.h:79
Revision & WithSha(Aws::String &&value)
Definition Revision.h:107
void SetBranch(Aws::String &&value)
Definition Revision.h:49
Revision & WithRepositoryProvider(RepositoryProvider &&value)
Definition Revision.h:94
Revision & WithDirectory(const Aws::String &value)
Definition Revision.h:66
bool RepositoryProviderHasBeenSet() const
Definition Revision.h:90
void SetBranch(const Aws::String &value)
Definition Revision.h:48
const Aws::String & GetSha() const
Definition Revision.h:101
Revision & WithBranch(Aws::String &&value)
Definition Revision.h:52
bool DirectoryHasBeenSet() const
Definition Revision.h:62
void SetRepositoryName(const Aws::String &value)
Definition Revision.h:77
Revision & WithDirectory(Aws::String &&value)
Definition Revision.h:67
void SetRepositoryName(Aws::String &&value)
Definition Revision.h:78
void SetSha(const Aws::String &value)
Definition Revision.h:103
void SetDirectory(const char *value)
Definition Revision.h:65
void SetSha(Aws::String &&value)
Definition Revision.h:104
AWS_PROTON_API Revision(Aws::Utils::Json::JsonView jsonValue)
void SetSha(const char *value)
Definition Revision.h:105
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
Revision & WithBranch(const Aws::String &value)
Definition Revision.h:51
Revision & WithSha(const Aws::String &value)
Definition Revision.h:106
const Aws::String & GetRepositoryName() const
Definition Revision.h:75
void SetDirectory(Aws::String &&value)
Definition Revision.h:64
void SetRepositoryProvider(const RepositoryProvider &value)
Definition Revision.h:91
void SetBranch(const char *value)
Definition Revision.h:50
AWS_PROTON_API Revision & operator=(Aws::Utils::Json::JsonView jsonValue)
Revision & WithBranch(const char *value)
Definition Revision.h:53
Revision & WithRepositoryName(Aws::String &&value)
Definition Revision.h:81
const Aws::String & GetBranch() const
Definition Revision.h:46
bool BranchHasBeenSet() const
Definition Revision.h:47
void SetRepositoryProvider(RepositoryProvider &&value)
Definition Revision.h:92
const Aws::String & GetDirectory() const
Definition Revision.h:61
Revision & WithRepositoryName(const Aws::String &value)
Definition Revision.h:80
Revision & WithSha(const char *value)
Definition Revision.h:108
Revision & WithRepositoryName(const char *value)
Definition Revision.h:82
bool RepositoryNameHasBeenSet() const
Definition Revision.h:76
void SetDirectory(const Aws::String &value)
Definition Revision.h:63
Revision & WithRepositoryProvider(const RepositoryProvider &value)
Definition Revision.h:93
Revision & WithDirectory(const char *value)
Definition Revision.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue