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/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codeconnections/model/ProviderType.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 CodeConnections
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODECONNECTIONS_API Revision();
37 AWS_CODECONNECTIONS_API Revision(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECONNECTIONS_API Revision& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECONNECTIONS_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
60 inline const Aws::String& GetDirectory() const{ return m_directory; }
61 inline bool DirectoryHasBeenSet() const { return m_directoryHasBeenSet; }
62 inline void SetDirectory(const Aws::String& value) { m_directoryHasBeenSet = true; m_directory = value; }
63 inline void SetDirectory(Aws::String&& value) { m_directoryHasBeenSet = true; m_directory = std::move(value); }
64 inline void SetDirectory(const char* value) { m_directoryHasBeenSet = true; m_directory.assign(value); }
65 inline Revision& WithDirectory(const Aws::String& value) { SetDirectory(value); return *this;}
66 inline Revision& WithDirectory(Aws::String&& value) { SetDirectory(std::move(value)); return *this;}
67 inline Revision& WithDirectory(const char* value) { SetDirectory(value); return *this;}
69
71
75 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
76 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
77 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
78 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
79 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
80 inline Revision& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
81 inline Revision& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
82 inline Revision& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
84
86
89 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
90 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
91 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
92 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
93 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
94 inline Revision& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
95 inline Revision& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
96 inline Revision& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
98
100
103 inline const ProviderType& GetProviderType() const{ return m_providerType; }
104 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
105 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
106 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
107 inline Revision& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
108 inline Revision& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
110
112
115 inline const Aws::String& GetSha() const{ return m_sha; }
116 inline bool ShaHasBeenSet() const { return m_shaHasBeenSet; }
117 inline void SetSha(const Aws::String& value) { m_shaHasBeenSet = true; m_sha = value; }
118 inline void SetSha(Aws::String&& value) { m_shaHasBeenSet = true; m_sha = std::move(value); }
119 inline void SetSha(const char* value) { m_shaHasBeenSet = true; m_sha.assign(value); }
120 inline Revision& WithSha(const Aws::String& value) { SetSha(value); return *this;}
121 inline Revision& WithSha(Aws::String&& value) { SetSha(std::move(value)); return *this;}
122 inline Revision& WithSha(const char* value) { SetSha(value); return *this;}
124 private:
125
126 Aws::String m_branch;
127 bool m_branchHasBeenSet = false;
128
129 Aws::String m_directory;
130 bool m_directoryHasBeenSet = false;
131
132 Aws::String m_ownerId;
133 bool m_ownerIdHasBeenSet = false;
134
135 Aws::String m_repositoryName;
136 bool m_repositoryNameHasBeenSet = false;
137
138 ProviderType m_providerType;
139 bool m_providerTypeHasBeenSet = false;
140
141 Aws::String m_sha;
142 bool m_shaHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace CodeConnections
147} // namespace Aws
const Aws::String & GetOwnerId() const
Definition Revision.h:75
void SetDirectory(const Aws::String &value)
Definition Revision.h:62
Revision & WithRepositoryName(const Aws::String &value)
Definition Revision.h:94
AWS_CODECONNECTIONS_API Revision()
void SetSha(const Aws::String &value)
Definition Revision.h:117
const Aws::String & GetDirectory() const
Definition Revision.h:60
Revision & WithSha(const Aws::String &value)
Definition Revision.h:120
Revision & WithRepositoryName(const char *value)
Definition Revision.h:96
const Aws::String & GetSha() const
Definition Revision.h:115
Revision & WithRepositoryName(Aws::String &&value)
Definition Revision.h:95
AWS_CODECONNECTIONS_API Revision(Aws::Utils::Json::JsonView jsonValue)
void SetSha(const char *value)
Definition Revision.h:119
const Aws::String & GetRepositoryName() const
Definition Revision.h:89
void SetSha(Aws::String &&value)
Definition Revision.h:118
Revision & WithBranch(Aws::String &&value)
Definition Revision.h:52
Revision & WithSha(Aws::String &&value)
Definition Revision.h:121
Revision & WithDirectory(const char *value)
Definition Revision.h:67
AWS_CODECONNECTIONS_API Revision & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDirectory(const char *value)
Definition Revision.h:64
void SetOwnerId(const char *value)
Definition Revision.h:79
void SetBranch(const char *value)
Definition Revision.h:50
void SetDirectory(Aws::String &&value)
Definition Revision.h:63
void SetOwnerId(Aws::String &&value)
Definition Revision.h:78
void SetBranch(const Aws::String &value)
Definition Revision.h:48
void SetOwnerId(const Aws::String &value)
Definition Revision.h:77
void SetProviderType(ProviderType &&value)
Definition Revision.h:106
Revision & WithOwnerId(Aws::String &&value)
Definition Revision.h:81
const ProviderType & GetProviderType() const
Definition Revision.h:103
Revision & WithBranch(const Aws::String &value)
Definition Revision.h:51
void SetRepositoryName(const Aws::String &value)
Definition Revision.h:91
Revision & WithOwnerId(const Aws::String &value)
Definition Revision.h:80
void SetBranch(Aws::String &&value)
Definition Revision.h:49
Revision & WithBranch(const char *value)
Definition Revision.h:53
void SetProviderType(const ProviderType &value)
Definition Revision.h:105
Revision & WithDirectory(Aws::String &&value)
Definition Revision.h:66
Revision & WithOwnerId(const char *value)
Definition Revision.h:82
Revision & WithProviderType(ProviderType &&value)
Definition Revision.h:108
Revision & WithSha(const char *value)
Definition Revision.h:122
Revision & WithProviderType(const ProviderType &value)
Definition Revision.h:107
void SetRepositoryName(const char *value)
Definition Revision.h:93
void SetRepositoryName(Aws::String &&value)
Definition Revision.h:92
const Aws::String & GetBranch() const
Definition Revision.h:46
Revision & WithDirectory(const Aws::String &value)
Definition Revision.h:65
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue