AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Revision.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/codestar-connections/model/ProviderType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeStarconnections {
21namespace Model {
22
29class Revision {
30 public:
31 AWS_CODESTARCONNECTIONS_API Revision() = default;
32 AWS_CODESTARCONNECTIONS_API Revision(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODESTARCONNECTIONS_API Revision& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBranch() const { return m_branch; }
41 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
42 template <typename BranchT = Aws::String>
43 void SetBranch(BranchT&& value) {
44 m_branchHasBeenSet = true;
45 m_branch = std::forward<BranchT>(value);
46 }
47 template <typename BranchT = Aws::String>
48 Revision& WithBranch(BranchT&& value) {
49 SetBranch(std::forward<BranchT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDirectory() const { return m_directory; }
59 inline bool DirectoryHasBeenSet() const { return m_directoryHasBeenSet; }
60 template <typename DirectoryT = Aws::String>
61 void SetDirectory(DirectoryT&& value) {
62 m_directoryHasBeenSet = true;
63 m_directory = std::forward<DirectoryT>(value);
64 }
65 template <typename DirectoryT = Aws::String>
66 Revision& WithDirectory(DirectoryT&& value) {
67 SetDirectory(std::forward<DirectoryT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
78 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
79 template <typename OwnerIdT = Aws::String>
80 void SetOwnerId(OwnerIdT&& value) {
81 m_ownerIdHasBeenSet = true;
82 m_ownerId = std::forward<OwnerIdT>(value);
83 }
84 template <typename OwnerIdT = Aws::String>
85 Revision& WithOwnerId(OwnerIdT&& value) {
86 SetOwnerId(std::forward<OwnerIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
96 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
97 template <typename RepositoryNameT = Aws::String>
98 void SetRepositoryName(RepositoryNameT&& value) {
99 m_repositoryNameHasBeenSet = true;
100 m_repositoryName = std::forward<RepositoryNameT>(value);
101 }
102 template <typename RepositoryNameT = Aws::String>
103 Revision& WithRepositoryName(RepositoryNameT&& value) {
104 SetRepositoryName(std::forward<RepositoryNameT>(value));
105 return *this;
106 }
108
110
113 inline ProviderType GetProviderType() const { return m_providerType; }
114 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
115 inline void SetProviderType(ProviderType value) {
116 m_providerTypeHasBeenSet = true;
117 m_providerType = value;
118 }
120 SetProviderType(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetSha() const { return m_sha; }
130 inline bool ShaHasBeenSet() const { return m_shaHasBeenSet; }
131 template <typename ShaT = Aws::String>
132 void SetSha(ShaT&& value) {
133 m_shaHasBeenSet = true;
134 m_sha = std::forward<ShaT>(value);
135 }
136 template <typename ShaT = Aws::String>
137 Revision& WithSha(ShaT&& value) {
138 SetSha(std::forward<ShaT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_branch;
144
145 Aws::String m_directory;
146
147 Aws::String m_ownerId;
148
149 Aws::String m_repositoryName;
150
151 ProviderType m_providerType{ProviderType::NOT_SET};
152
153 Aws::String m_sha;
154 bool m_branchHasBeenSet = false;
155 bool m_directoryHasBeenSet = false;
156 bool m_ownerIdHasBeenSet = false;
157 bool m_repositoryNameHasBeenSet = false;
158 bool m_providerTypeHasBeenSet = false;
159 bool m_shaHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace CodeStarconnections
164} // namespace Aws
const Aws::String & GetDirectory() const
Definition Revision.h:58
AWS_CODESTARCONNECTIONS_API Revision(Aws::Utils::Json::JsonView jsonValue)
Revision & WithOwnerId(OwnerIdT &&value)
Definition Revision.h:85
const Aws::String & GetSha() const
Definition Revision.h:129
void SetDirectory(DirectoryT &&value)
Definition Revision.h:61
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRepositoryName() const
Definition Revision.h:95
const Aws::String & GetOwnerId() const
Definition Revision.h:77
Revision & WithDirectory(DirectoryT &&value)
Definition Revision.h:66
AWS_CODESTARCONNECTIONS_API Revision()=default
Revision & WithRepositoryName(RepositoryNameT &&value)
Definition Revision.h:103
Revision & WithProviderType(ProviderType value)
Definition Revision.h:119
Revision & WithSha(ShaT &&value)
Definition Revision.h:137
void SetOwnerId(OwnerIdT &&value)
Definition Revision.h:80
void SetProviderType(ProviderType value)
Definition Revision.h:115
AWS_CODESTARCONNECTIONS_API Revision & operator=(Aws::Utils::Json::JsonView jsonValue)
Revision & WithBranch(BranchT &&value)
Definition Revision.h:48
const Aws::String & GetBranch() const
Definition Revision.h:40
void SetRepositoryName(RepositoryNameT &&value)
Definition Revision.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue