AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
RepositoryInput.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeCatalyst {
20namespace Model {
21
29 public:
30 AWS_CODECATALYST_API RepositoryInput() = default;
31 AWS_CODECATALYST_API RepositoryInput(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODECATALYST_API RepositoryInput& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
40 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
41 template <typename RepositoryNameT = Aws::String>
42 void SetRepositoryName(RepositoryNameT&& value) {
43 m_repositoryNameHasBeenSet = true;
44 m_repositoryName = std::forward<RepositoryNameT>(value);
45 }
46 template <typename RepositoryNameT = Aws::String>
47 RepositoryInput& WithRepositoryName(RepositoryNameT&& value) {
48 SetRepositoryName(std::forward<RepositoryNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetBranchName() const { return m_branchName; }
58 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
59 template <typename BranchNameT = Aws::String>
60 void SetBranchName(BranchNameT&& value) {
61 m_branchNameHasBeenSet = true;
62 m_branchName = std::forward<BranchNameT>(value);
63 }
64 template <typename BranchNameT = Aws::String>
65 RepositoryInput& WithBranchName(BranchNameT&& value) {
66 SetBranchName(std::forward<BranchNameT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_repositoryName;
72 bool m_repositoryNameHasBeenSet = false;
73
74 Aws::String m_branchName;
75 bool m_branchNameHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace CodeCatalyst
80} // namespace Aws
AWS_CODECATALYST_API RepositoryInput()=default
AWS_CODECATALYST_API RepositoryInput(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRepositoryName() const
RepositoryInput & WithBranchName(BranchNameT &&value)
RepositoryInput & WithRepositoryName(RepositoryNameT &&value)
AWS_CODECATALYST_API RepositoryInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBranchName() const
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRepositoryName(RepositoryNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue