AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSourceRepositoryBranchResult.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeCatalyst
25{
26namespace Model
27{
29 {
30 public:
31 AWS_CODECATALYST_API CreateSourceRepositoryBranchResult() = default;
34
35
37
40 inline const Aws::String& GetRef() const { return m_ref; }
41 template<typename RefT = Aws::String>
42 void SetRef(RefT&& value) { m_refHasBeenSet = true; m_ref = std::forward<RefT>(value); }
43 template<typename RefT = Aws::String>
44 CreateSourceRepositoryBranchResult& WithRef(RefT&& value) { SetRef(std::forward<RefT>(value)); return *this;}
46
48
51 inline const Aws::String& GetName() const { return m_name; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 CreateSourceRepositoryBranchResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
64 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
65 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
66 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
67 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
68 CreateSourceRepositoryBranchResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
70
72
75 inline const Aws::String& GetHeadCommitId() const { return m_headCommitId; }
76 template<typename HeadCommitIdT = Aws::String>
77 void SetHeadCommitId(HeadCommitIdT&& value) { m_headCommitIdHasBeenSet = true; m_headCommitId = std::forward<HeadCommitIdT>(value); }
78 template<typename HeadCommitIdT = Aws::String>
79 CreateSourceRepositoryBranchResult& WithHeadCommitId(HeadCommitIdT&& value) { SetHeadCommitId(std::forward<HeadCommitIdT>(value)); return *this;}
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template<typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
87 template<typename RequestIdT = Aws::String>
88 CreateSourceRepositoryBranchResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
90 private:
91
92 Aws::String m_ref;
93 bool m_refHasBeenSet = false;
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 Aws::Utils::DateTime m_lastUpdatedTime{};
99 bool m_lastUpdatedTimeHasBeenSet = false;
100
101 Aws::String m_headCommitId;
102 bool m_headCommitIdHasBeenSet = false;
103
104 Aws::String m_requestId;
105 bool m_requestIdHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace CodeCatalyst
110} // namespace Aws
CreateSourceRepositoryBranchResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
CreateSourceRepositoryBranchResult & WithRequestId(RequestIdT &&value)
AWS_CODECATALYST_API CreateSourceRepositoryBranchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSourceRepositoryBranchResult & WithHeadCommitId(HeadCommitIdT &&value)
AWS_CODECATALYST_API CreateSourceRepositoryBranchResult()=default
AWS_CODECATALYST_API CreateSourceRepositoryBranchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue