AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
BranchSummary.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/RestoreSourceBranch.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyGen3 {
22namespace Model {
23
30 public:
31 AWS_AMPLIFYGEN3_API BranchSummary() = default;
32 AWS_AMPLIFYGEN3_API BranchSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYGEN3_API BranchSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBranchName() const { return m_branchName; }
41 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
42 template <typename BranchNameT = Aws::String>
43 void SetBranchName(BranchNameT&& value) {
44 m_branchNameHasBeenSet = true;
45 m_branchName = std::forward<BranchNameT>(value);
46 }
47 template <typename BranchNameT = Aws::String>
48 BranchSummary& WithBranchName(BranchNameT&& value) {
49 SetBranchName(std::forward<BranchNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetBranchArn() const { return m_branchArn; }
59 inline bool BranchArnHasBeenSet() const { return m_branchArnHasBeenSet; }
60 template <typename BranchArnT = Aws::String>
61 void SetBranchArn(BranchArnT&& value) {
62 m_branchArnHasBeenSet = true;
63 m_branchArn = std::forward<BranchArnT>(value);
64 }
65 template <typename BranchArnT = Aws::String>
66 BranchSummary& WithBranchArn(BranchArnT&& value) {
67 SetBranchArn(std::forward<BranchArnT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetGitBranchName() const { return m_gitBranchName; }
78 inline bool GitBranchNameHasBeenSet() const { return m_gitBranchNameHasBeenSet; }
79 template <typename GitBranchNameT = Aws::String>
80 void SetGitBranchName(GitBranchNameT&& value) {
81 m_gitBranchNameHasBeenSet = true;
82 m_gitBranchName = std::forward<GitBranchNameT>(value);
83 }
84 template <typename GitBranchNameT = Aws::String>
85 BranchSummary& WithGitBranchName(GitBranchNameT&& value) {
86 SetGitBranchName(std::forward<GitBranchNameT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
98 template <typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) {
100 m_createdAtHasBeenSet = true;
101 m_createdAt = std::forward<CreatedAtT>(value);
102 }
103 template <typename CreatedAtT = Aws::Utils::DateTime>
104 BranchSummary& WithCreatedAt(CreatedAtT&& value) {
105 SetCreatedAt(std::forward<CreatedAtT>(value));
106 return *this;
107 }
109
111
115 inline const RestoreSourceBranch& GetSourceBranch() const { return m_sourceBranch; }
116 inline bool SourceBranchHasBeenSet() const { return m_sourceBranchHasBeenSet; }
117 template <typename SourceBranchT = RestoreSourceBranch>
118 void SetSourceBranch(SourceBranchT&& value) {
119 m_sourceBranchHasBeenSet = true;
120 m_sourceBranch = std::forward<SourceBranchT>(value);
121 }
122 template <typename SourceBranchT = RestoreSourceBranch>
123 BranchSummary& WithSourceBranch(SourceBranchT&& value) {
124 SetSourceBranch(std::forward<SourceBranchT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_branchName;
130
131 Aws::String m_branchArn;
132
133 Aws::String m_gitBranchName;
134
135 Aws::Utils::DateTime m_createdAt{};
136
137 RestoreSourceBranch m_sourceBranch;
138 bool m_branchNameHasBeenSet = false;
139 bool m_branchArnHasBeenSet = false;
140 bool m_gitBranchNameHasBeenSet = false;
141 bool m_createdAtHasBeenSet = false;
142 bool m_sourceBranchHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace AmplifyGen3
147} // namespace Aws
const Aws::String & GetBranchArn() const
void SetBranchArn(BranchArnT &&value)
const RestoreSourceBranch & GetSourceBranch() const
void SetGitBranchName(GitBranchNameT &&value)
BranchSummary & WithBranchName(BranchNameT &&value)
BranchSummary & WithGitBranchName(GitBranchNameT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBranchName(BranchNameT &&value)
AWS_AMPLIFYGEN3_API BranchSummary(Aws::Utils::Json::JsonView jsonValue)
BranchSummary & WithBranchArn(BranchArnT &&value)
AWS_AMPLIFYGEN3_API BranchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetGitBranchName() const
BranchSummary & WithSourceBranch(SourceBranchT &&value)
void SetCreatedAt(CreatedAtT &&value)
BranchSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetBranchName() const
void SetSourceBranch(SourceBranchT &&value)
AWS_AMPLIFYGEN3_API BranchSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue