AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
FlowConnection.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/FlowConnectionConfiguration.h>
9#include <aws/bedrock-agent/model/FlowConnectionType.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 BedrockAgent {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENT_API FlowConnection() = default;
35 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline FlowConnectionType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(FlowConnectionType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(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>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetSource() const { return m_source; }
77 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
78 template <typename SourceT = Aws::String>
79 void SetSource(SourceT&& value) {
80 m_sourceHasBeenSet = true;
81 m_source = std::forward<SourceT>(value);
82 }
83 template <typename SourceT = Aws::String>
85 SetSource(std::forward<SourceT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetTarget() const { return m_target; }
95 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
96 template <typename TargetT = Aws::String>
97 void SetTarget(TargetT&& value) {
98 m_targetHasBeenSet = true;
99 m_target = std::forward<TargetT>(value);
100 }
101 template <typename TargetT = Aws::String>
103 SetTarget(std::forward<TargetT>(value));
104 return *this;
105 }
107
109
112 inline const FlowConnectionConfiguration& GetConfiguration() const { return m_configuration; }
113 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
114 template <typename ConfigurationT = FlowConnectionConfiguration>
116 m_configurationHasBeenSet = true;
117 m_configuration = std::forward<ConfigurationT>(value);
118 }
119 template <typename ConfigurationT = FlowConnectionConfiguration>
121 SetConfiguration(std::forward<ConfigurationT>(value));
122 return *this;
123 }
125 private:
127
128 Aws::String m_name;
129
130 Aws::String m_source;
131
132 Aws::String m_target;
133
134 FlowConnectionConfiguration m_configuration;
135 bool m_typeHasBeenSet = false;
136 bool m_nameHasBeenSet = false;
137 bool m_sourceHasBeenSet = false;
138 bool m_targetHasBeenSet = false;
139 bool m_configurationHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace BedrockAgent
144} // namespace Aws
FlowConnection & WithConfiguration(ConfigurationT &&value)
const Aws::String & GetName() const
AWS_BEDROCKAGENT_API FlowConnection()=default
FlowConnection & WithType(FlowConnectionType value)
AWS_BEDROCKAGENT_API FlowConnection(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API FlowConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
const FlowConnectionConfiguration & GetConfiguration() const
const Aws::String & GetTarget() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConfiguration(ConfigurationT &&value)
void SetType(FlowConnectionType value)
FlowConnection & WithTarget(TargetT &&value)
FlowConnection & WithName(NameT &&value)
const Aws::String & GetSource() const
FlowConnection & WithSource(SourceT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue