AWS SDK for C++

AWS SDK for C++ Version 1.11.876

Loading...
Searching...
No Matches
GitPropertiesPatch.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DataZone {
20namespace Model {
21
29 public:
30 AWS_DATAZONE_API GitPropertiesPatch() = default;
33 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetCodeConnectionArn() const { return m_codeConnectionArn; }
41 inline bool CodeConnectionArnHasBeenSet() const { return m_codeConnectionArnHasBeenSet; }
42 template <typename CodeConnectionArnT = Aws::String>
43 void SetCodeConnectionArn(CodeConnectionArnT&& value) {
44 m_codeConnectionArnHasBeenSet = true;
45 m_codeConnectionArn = std::forward<CodeConnectionArnT>(value);
46 }
47 template <typename CodeConnectionArnT = Aws::String>
48 GitPropertiesPatch& WithCodeConnectionArn(CodeConnectionArnT&& value) {
49 SetCodeConnectionArn(std::forward<CodeConnectionArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDefaultBranch() const { return m_defaultBranch; }
59 inline bool DefaultBranchHasBeenSet() const { return m_defaultBranchHasBeenSet; }
60 template <typename DefaultBranchT = Aws::String>
61 void SetDefaultBranch(DefaultBranchT&& value) {
62 m_defaultBranchHasBeenSet = true;
63 m_defaultBranch = std::forward<DefaultBranchT>(value);
64 }
65 template <typename DefaultBranchT = Aws::String>
66 GitPropertiesPatch& WithDefaultBranch(DefaultBranchT&& value) {
67 SetDefaultBranch(std::forward<DefaultBranchT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_codeConnectionArn;
73
74 Aws::String m_defaultBranch;
75 bool m_codeConnectionArnHasBeenSet = false;
76 bool m_defaultBranchHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace DataZone
81} // namespace Aws
const Aws::String & GetDefaultBranch() const
void SetCodeConnectionArn(CodeConnectionArnT &&value)
GitPropertiesPatch & WithCodeConnectionArn(CodeConnectionArnT &&value)
AWS_DATAZONE_API GitPropertiesPatch()=default
AWS_DATAZONE_API GitPropertiesPatch & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCodeConnectionArn() const
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
GitPropertiesPatch & WithDefaultBranch(DefaultBranchT &&value)
void SetDefaultBranch(DefaultBranchT &&value)
AWS_DATAZONE_API GitPropertiesPatch(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue