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/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codestar-connections/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 CodeStarconnections
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODESTARCONNECTIONS_API Revision();
37 AWS_CODESTARCONNECTIONS_API Revision(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODESTARCONNECTIONS_API Revision& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODESTARCONNECTIONS_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 CodeStarconnections
147} // namespace Aws
Revision & WithOwnerId(const Aws::String &value)
Definition Revision.h:80
Revision & WithProviderType(const ProviderType &value)
Definition Revision.h:107
Revision & WithSha(const char *value)
Definition Revision.h:122
const Aws::String & GetDirectory() const
Definition Revision.h:60
void SetDirectory(const char *value)
Definition Revision.h:64
AWS_CODESTARCONNECTIONS_API Revision(Aws::Utils::Json::JsonView jsonValue)
void SetDirectory(Aws::String &&value)
Definition Revision.h:63
Revision & WithOwnerId(Aws::String &&value)
Definition Revision.h:81
Revision & WithRepositoryName(Aws::String &&value)
Definition Revision.h:95
void SetProviderType(ProviderType &&value)
Definition Revision.h:106
Revision & WithDirectory(const Aws::String &value)
Definition Revision.h:65
void SetSha(Aws::String &&value)
Definition Revision.h:118
void SetSha(const Aws::String &value)
Definition Revision.h:117
Revision & WithOwnerId(const char *value)
Definition Revision.h:82
void SetBranch(const char *value)
Definition Revision.h:50
const Aws::String & GetSha() const
Definition Revision.h:115
void SetBranch(Aws::String &&value)
Definition Revision.h:49
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOwnerId(const char *value)
Definition Revision.h:79
Revision & WithBranch(const char *value)
Definition Revision.h:53
AWS_CODESTARCONNECTIONS_API Revision()
const Aws::String & GetRepositoryName() const
Definition Revision.h:89
const ProviderType & GetProviderType() const
Definition Revision.h:103
const Aws::String & GetOwnerId() const
Definition Revision.h:75
void SetBranch(const Aws::String &value)
Definition Revision.h:48
void SetDirectory(const Aws::String &value)
Definition Revision.h:62
Revision & WithBranch(const Aws::String &value)
Definition Revision.h:51
Revision & WithDirectory(const char *value)
Definition Revision.h:67
void SetRepositoryName(const Aws::String &value)
Definition Revision.h:91
void SetOwnerId(const Aws::String &value)
Definition Revision.h:77
void SetRepositoryName(const char *value)
Definition Revision.h:93
void SetOwnerId(Aws::String &&value)
Definition Revision.h:78
Revision & WithRepositoryName(const char *value)
Definition Revision.h:96
void SetRepositoryName(Aws::String &&value)
Definition Revision.h:92
Revision & WithSha(Aws::String &&value)
Definition Revision.h:121
Revision & WithDirectory(Aws::String &&value)
Definition Revision.h:66
AWS_CODESTARCONNECTIONS_API Revision & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBranch() const
Definition Revision.h:46
Revision & WithRepositoryName(const Aws::String &value)
Definition Revision.h:94
Revision & WithSha(const Aws::String &value)
Definition Revision.h:120
Revision & WithBranch(Aws::String &&value)
Definition Revision.h:52
void SetProviderType(const ProviderType &value)
Definition Revision.h:105
Revision & WithProviderType(ProviderType &&value)
Definition Revision.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue