AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RepositoryBranch.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
33 {
34 public:
35 AWS_PROTON_API RepositoryBranch();
38 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetArn() const{ return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
48 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
49 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
50 inline RepositoryBranch& WithArn(const Aws::String& value) { SetArn(value); return *this;}
51 inline RepositoryBranch& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
52 inline RepositoryBranch& WithArn(const char* value) { SetArn(value); return *this;}
54
56
59 inline const Aws::String& GetBranch() const{ return m_branch; }
60 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
61 inline void SetBranch(const Aws::String& value) { m_branchHasBeenSet = true; m_branch = value; }
62 inline void SetBranch(Aws::String&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); }
63 inline void SetBranch(const char* value) { m_branchHasBeenSet = true; m_branch.assign(value); }
64 inline RepositoryBranch& WithBranch(const Aws::String& value) { SetBranch(value); return *this;}
65 inline RepositoryBranch& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;}
66 inline RepositoryBranch& WithBranch(const char* value) { SetBranch(value); return *this;}
68
70
73 inline const Aws::String& GetName() const{ return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 inline RepositoryBranch& WithName(const Aws::String& value) { SetName(value); return *this;}
79 inline RepositoryBranch& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 inline RepositoryBranch& WithName(const char* value) { SetName(value); return *this;}
82
84
87 inline const RepositoryProvider& GetProvider() const{ return m_provider; }
88 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
89 inline void SetProvider(const RepositoryProvider& value) { m_providerHasBeenSet = true; m_provider = value; }
90 inline void SetProvider(RepositoryProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
91 inline RepositoryBranch& WithProvider(const RepositoryProvider& value) { SetProvider(value); return *this;}
92 inline RepositoryBranch& WithProvider(RepositoryProvider&& value) { SetProvider(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_arn;
97 bool m_arnHasBeenSet = false;
98
99 Aws::String m_branch;
100 bool m_branchHasBeenSet = false;
101
102 Aws::String m_name;
103 bool m_nameHasBeenSet = false;
104
105 RepositoryProvider m_provider;
106 bool m_providerHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Proton
111} // namespace Aws
RepositoryBranch & WithBranch(const Aws::String &value)
RepositoryBranch & WithProvider(const RepositoryProvider &value)
RepositoryBranch & WithName(const char *value)
void SetName(const Aws::String &value)
void SetBranch(Aws::String &&value)
const RepositoryProvider & GetProvider() const
RepositoryBranch & WithArn(Aws::String &&value)
RepositoryBranch & WithBranch(const char *value)
AWS_PROTON_API RepositoryBranch & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
RepositoryBranch & WithName(const Aws::String &value)
void SetName(Aws::String &&value)
RepositoryBranch & WithArn(const char *value)
RepositoryBranch & WithBranch(Aws::String &&value)
RepositoryBranch & WithName(Aws::String &&value)
void SetProvider(RepositoryProvider &&value)
AWS_PROTON_API RepositoryBranch(Aws::Utils::Json::JsonView jsonValue)
void SetProvider(const RepositoryProvider &value)
void SetBranch(const Aws::String &value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
RepositoryBranch & WithProvider(RepositoryProvider &&value)
const Aws::String & GetBranch() const
void SetArn(const Aws::String &value)
RepositoryBranch & WithArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue