AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 RepositoryBranchInput& WithBranch(const Aws::String& value) { SetBranch(value); return *this;}
52 inline RepositoryBranchInput& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;}
53 inline RepositoryBranchInput& WithBranch(const char* value) { SetBranch(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline RepositoryBranchInput& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline RepositoryBranchInput& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline RepositoryBranchInput& WithName(const char* value) { SetName(value); return *this;}
69
71
74 inline const RepositoryProvider& GetProvider() const{ return m_provider; }
75 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
76 inline void SetProvider(const RepositoryProvider& value) { m_providerHasBeenSet = true; m_provider = value; }
77 inline void SetProvider(RepositoryProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
78 inline RepositoryBranchInput& WithProvider(const RepositoryProvider& value) { SetProvider(value); return *this;}
79 inline RepositoryBranchInput& WithProvider(RepositoryProvider&& value) { SetProvider(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_branch;
84 bool m_branchHasBeenSet = false;
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88
89 RepositoryProvider m_provider;
90 bool m_providerHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Proton
95} // namespace Aws
RepositoryBranchInput & WithName(Aws::String &&value)
RepositoryBranchInput & WithBranch(Aws::String &&value)
RepositoryBranchInput & WithProvider(const RepositoryProvider &value)
AWS_PROTON_API RepositoryBranchInput(Aws::Utils::Json::JsonView jsonValue)
const RepositoryProvider & GetProvider() const
RepositoryBranchInput & WithName(const Aws::String &value)
RepositoryBranchInput & WithBranch(const char *value)
RepositoryBranchInput & WithProvider(RepositoryProvider &&value)
RepositoryBranchInput & WithName(const char *value)
AWS_PROTON_API RepositoryBranchInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProvider(const RepositoryProvider &value)
void SetProvider(RepositoryProvider &&value)
RepositoryBranchInput & WithBranch(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue