AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RepositoryBranchInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/proton/Proton_EXPORTS.h>
9#include <aws/proton/model/RepositoryProvider.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Proton {
21namespace Model {
22
30 public:
31 AWS_PROTON_API RepositoryBranchInput() = default;
34 AWS_PROTON_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>
49 SetBranch(std::forward<BranchT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline RepositoryProvider GetProvider() const { return m_provider; }
77 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
78 inline void SetProvider(RepositoryProvider value) {
79 m_providerHasBeenSet = true;
80 m_provider = value;
81 }
83 SetProvider(value);
84 return *this;
85 }
87 private:
88 Aws::String m_branch;
89
90 Aws::String m_name;
91
93 bool m_branchHasBeenSet = false;
94 bool m_nameHasBeenSet = false;
95 bool m_providerHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Proton
100} // namespace Aws
RepositoryBranchInput & WithProvider(RepositoryProvider value)
AWS_PROTON_API RepositoryBranchInput(Aws::Utils::Json::JsonView jsonValue)
RepositoryBranchInput & WithBranch(BranchT &&value)
AWS_PROTON_API RepositoryBranchInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API RepositoryBranchInput()=default
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
RepositoryBranchInput & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue