AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RepositoryBranchInput.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/proton/model/RepositoryProvider.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 Proton
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PROTON_API RepositoryBranchInput() = default;
39 AWS_PROTON_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 RepositoryBranchInput& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 RepositoryBranchInput& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline RepositoryProvider GetProvider() const { return m_provider; }
71 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
72 inline void SetProvider(RepositoryProvider value) { m_providerHasBeenSet = true; m_provider = value; }
73 inline RepositoryBranchInput& WithProvider(RepositoryProvider value) { SetProvider(value); return *this;}
75 private:
76
77 Aws::String m_branch;
78 bool m_branchHasBeenSet = false;
79
80 Aws::String m_name;
81 bool m_nameHasBeenSet = false;
82
84 bool m_providerHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Proton
89} // 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