AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
FunctionTarget.h
1
6#pragma once
7#include <aws/elementalinference/ElementalInference_EXPORTS.h>
8#include <aws/elementalinference/model/BedrockFunctionTarget.h>
9#include <aws/elementalinference/model/PassthroughFunctionTarget.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ElementalInference {
21namespace Model {
22
30 public:
31 AWS_ELEMENTALINFERENCE_API FunctionTarget() = default;
32 AWS_ELEMENTALINFERENCE_API FunctionTarget(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ELEMENTALINFERENCE_API FunctionTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const BedrockFunctionTarget& GetBedrock() const { return m_bedrock; }
41 inline bool BedrockHasBeenSet() const { return m_bedrockHasBeenSet; }
42 template <typename BedrockT = BedrockFunctionTarget>
43 void SetBedrock(BedrockT&& value) {
44 m_bedrockHasBeenSet = true;
45 m_bedrock = std::forward<BedrockT>(value);
46 }
47 template <typename BedrockT = BedrockFunctionTarget>
48 FunctionTarget& WithBedrock(BedrockT&& value) {
49 SetBedrock(std::forward<BedrockT>(value));
50 return *this;
51 }
53
55
60 inline const PassthroughFunctionTarget& GetPassthrough() const { return m_passthrough; }
61 inline bool PassthroughHasBeenSet() const { return m_passthroughHasBeenSet; }
62 template <typename PassthroughT = PassthroughFunctionTarget>
63 void SetPassthrough(PassthroughT&& value) {
64 m_passthroughHasBeenSet = true;
65 m_passthrough = std::forward<PassthroughT>(value);
66 }
67 template <typename PassthroughT = PassthroughFunctionTarget>
68 FunctionTarget& WithPassthrough(PassthroughT&& value) {
69 SetPassthrough(std::forward<PassthroughT>(value));
70 return *this;
71 }
73 private:
74 BedrockFunctionTarget m_bedrock;
75
76 PassthroughFunctionTarget m_passthrough;
77 bool m_bedrockHasBeenSet = false;
78 bool m_passthroughHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace ElementalInference
83} // namespace Aws
AWS_ELEMENTALINFERENCE_API FunctionTarget(Aws::Utils::Json::JsonView jsonValue)
FunctionTarget & WithBedrock(BedrockT &&value)
FunctionTarget & WithPassthrough(PassthroughT &&value)
const PassthroughFunctionTarget & GetPassthrough() const
const BedrockFunctionTarget & GetBedrock() const
AWS_ELEMENTALINFERENCE_API FunctionTarget()=default
AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELEMENTALINFERENCE_API FunctionTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue