AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
DeleteBranchResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/BranchInfo.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit {
23namespace Model {
31 public:
32 AWS_CODECOMMIT_API DeleteBranchResult() = default;
35
37
41 inline const BranchInfo& GetDeletedBranch() const { return m_deletedBranch; }
42 template <typename DeletedBranchT = BranchInfo>
43 void SetDeletedBranch(DeletedBranchT&& value) {
44 m_deletedBranchHasBeenSet = true;
45 m_deletedBranch = std::forward<DeletedBranchT>(value);
46 }
47 template <typename DeletedBranchT = BranchInfo>
48 DeleteBranchResult& WithDeletedBranch(DeletedBranchT&& value) {
49 SetDeletedBranch(std::forward<DeletedBranchT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetRequestId() const { return m_requestId; }
57 template <typename RequestIdT = Aws::String>
58 void SetRequestId(RequestIdT&& value) {
59 m_requestIdHasBeenSet = true;
60 m_requestId = std::forward<RequestIdT>(value);
61 }
62 template <typename RequestIdT = Aws::String>
63 DeleteBranchResult& WithRequestId(RequestIdT&& value) {
64 SetRequestId(std::forward<RequestIdT>(value));
65 return *this;
66 }
68 private:
69 BranchInfo m_deletedBranch;
70
71 Aws::String m_requestId;
72 bool m_deletedBranchHasBeenSet = false;
73 bool m_requestIdHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace CodeCommit
78} // namespace Aws
DeleteBranchResult & WithDeletedBranch(DeletedBranchT &&value)
DeleteBranchResult & WithRequestId(RequestIdT &&value)
AWS_CODECOMMIT_API DeleteBranchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDeletedBranch(DeletedBranchT &&value)
AWS_CODECOMMIT_API DeleteBranchResult()=default
AWS_CODECOMMIT_API DeleteBranchResult(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