AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Branch.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_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 BedrockAgentCore {
20namespace Model {
21
29class Branch {
30 public:
31 AWS_BEDROCKAGENTCORE_API Branch() = default;
32 AWS_BEDROCKAGENTCORE_API Branch(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTCORE_API Branch& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRootEventId() const { return m_rootEventId; }
41 inline bool RootEventIdHasBeenSet() const { return m_rootEventIdHasBeenSet; }
42 template <typename RootEventIdT = Aws::String>
43 void SetRootEventId(RootEventIdT&& value) {
44 m_rootEventIdHasBeenSet = true;
45 m_rootEventId = std::forward<RootEventIdT>(value);
46 }
47 template <typename RootEventIdT = Aws::String>
48 Branch& WithRootEventId(RootEventIdT&& value) {
49 SetRootEventId(std::forward<RootEventIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 Branch& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_rootEventId;
73
74 Aws::String m_name;
75 bool m_rootEventIdHasBeenSet = false;
76 bool m_nameHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace BedrockAgentCore
81} // namespace Aws
Branch & WithName(NameT &&value)
Definition Branch.h:66
AWS_BEDROCKAGENTCORE_API Branch & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
Definition Branch.h:61
AWS_BEDROCKAGENTCORE_API Branch()=default
void SetRootEventId(RootEventIdT &&value)
Definition Branch.h:43
const Aws::String & GetRootEventId() const
Definition Branch.h:40
const Aws::String & GetName() const
Definition Branch.h:58
AWS_BEDROCKAGENTCORE_API Branch(Aws::Utils::Json::JsonView jsonValue)
Branch & WithRootEventId(RootEventIdT &&value)
Definition Branch.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue