AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename BranchT = Aws::String>
49 void SetBranch(BranchT&& value) { m_branchHasBeenSet = true; m_branch = std::forward<BranchT>(value); }
50 template<typename BranchT = Aws::String>
51 Revision& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
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) { m_directoryHasBeenSet = true; m_directory = std::forward<DirectoryT>(value); }
62 template<typename DirectoryT = Aws::String>
63 Revision& WithDirectory(DirectoryT&& value) { SetDirectory(std::forward<DirectoryT>(value)); return *this;}
65
67
71 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
72 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
73 template<typename OwnerIdT = Aws::String>
74 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
75 template<typename OwnerIdT = Aws::String>
76 Revision& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
84 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
85 template<typename RepositoryNameT = Aws::String>
86 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
87 template<typename RepositoryNameT = Aws::String>
88 Revision& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
90
92
95 inline ProviderType GetProviderType() const { return m_providerType; }
96 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
97 inline void SetProviderType(ProviderType value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
98 inline Revision& WithProviderType(ProviderType value) { SetProviderType(value); return *this;}
100
102
105 inline const Aws::String& GetSha() const { return m_sha; }
106 inline bool ShaHasBeenSet() const { return m_shaHasBeenSet; }
107 template<typename ShaT = Aws::String>
108 void SetSha(ShaT&& value) { m_shaHasBeenSet = true; m_sha = std::forward<ShaT>(value); }
109 template<typename ShaT = Aws::String>
110 Revision& WithSha(ShaT&& value) { SetSha(std::forward<ShaT>(value)); return *this;}
112 private:
113
114 Aws::String m_branch;
115 bool m_branchHasBeenSet = false;
116
117 Aws::String m_directory;
118 bool m_directoryHasBeenSet = false;
119
120 Aws::String m_ownerId;
121 bool m_ownerIdHasBeenSet = false;
122
123 Aws::String m_repositoryName;
124 bool m_repositoryNameHasBeenSet = false;
125
126 ProviderType m_providerType{ProviderType::NOT_SET};
127 bool m_providerTypeHasBeenSet = false;
128
129 Aws::String m_sha;
130 bool m_shaHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace CodeConnections
135} // namespace Aws
const Aws::String & GetOwnerId() const
Definition Revision.h:71
Revision & WithRepositoryName(RepositoryNameT &&value)
Definition Revision.h:88
const Aws::String & GetDirectory() const
Definition Revision.h:58
void SetProviderType(ProviderType value)
Definition Revision.h:97
const Aws::String & GetSha() const
Definition Revision.h:105
AWS_CODECONNECTIONS_API Revision(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRepositoryName() const
Definition Revision.h:83
void SetRepositoryName(RepositoryNameT &&value)
Definition Revision.h:86
AWS_CODECONNECTIONS_API Revision & operator=(Aws::Utils::Json::JsonView jsonValue)
Revision & WithBranch(BranchT &&value)
Definition Revision.h:51
Revision & WithProviderType(ProviderType value)
Definition Revision.h:98
AWS_CODECONNECTIONS_API Revision()=default
Revision & WithOwnerId(OwnerIdT &&value)
Definition Revision.h:76
ProviderType GetProviderType() const
Definition Revision.h:95
Revision & WithSha(ShaT &&value)
Definition Revision.h:110
void SetBranch(BranchT &&value)
Definition Revision.h:49
void SetDirectory(DirectoryT &&value)
Definition Revision.h:61
Revision & WithDirectory(DirectoryT &&value)
Definition Revision.h:63
void SetOwnerId(OwnerIdT &&value)
Definition Revision.h:74
const Aws::String & GetBranch() const
Definition Revision.h:46
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