AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Function.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/bedrock-agent/model/RequireConfirmation.h>
11#include <aws/bedrock-agent/model/ParameterDetail.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgent
25{
26namespace Model
27{
28
47 {
48 public:
49 AWS_BEDROCKAGENT_API Function() = default;
50 AWS_BEDROCKAGENT_API Function(Aws::Utils::Json::JsonView jsonValue);
51 AWS_BEDROCKAGENT_API Function& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 Function& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 template<typename NameT = Aws::String>
74 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
75 template<typename NameT = Aws::String>
76 Function& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
78
80
84 inline const Aws::Map<Aws::String, ParameterDetail>& GetParameters() const { return m_parameters; }
85 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
86 template<typename ParametersT = Aws::Map<Aws::String, ParameterDetail>>
87 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
88 template<typename ParametersT = Aws::Map<Aws::String, ParameterDetail>>
89 Function& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
90 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = ParameterDetail>
91 Function& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
92 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
93 }
95
97
101 inline RequireConfirmation GetRequireConfirmation() const { return m_requireConfirmation; }
102 inline bool RequireConfirmationHasBeenSet() const { return m_requireConfirmationHasBeenSet; }
103 inline void SetRequireConfirmation(RequireConfirmation value) { m_requireConfirmationHasBeenSet = true; m_requireConfirmation = value; }
106 private:
107
108 Aws::String m_description;
109 bool m_descriptionHasBeenSet = false;
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
115 bool m_parametersHasBeenSet = false;
116
118 bool m_requireConfirmationHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace BedrockAgent
123} // namespace Aws
void SetParameters(ParametersT &&value)
Definition Function.h:87
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
Function & WithName(NameT &&value)
Definition Function.h:76
RequireConfirmation GetRequireConfirmation() const
Definition Function.h:101
AWS_BEDROCKAGENT_API Function & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
Definition Function.h:59
void SetName(NameT &&value)
Definition Function.h:74
Function & WithDescription(DescriptionT &&value)
Definition Function.h:64
Function & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Function.h:91
AWS_BEDROCKAGENT_API Function(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Function.h:71
void SetRequireConfirmation(RequireConfirmation value)
Definition Function.h:103
Function & WithParameters(ParametersT &&value)
Definition Function.h:89
bool RequireConfirmationHasBeenSet() const
Definition Function.h:102
AWS_BEDROCKAGENT_API Function()=default
Function & WithRequireConfirmation(RequireConfirmation value)
Definition Function.h:104
void SetDescription(DescriptionT &&value)
Definition Function.h:62
const Aws::Map< Aws::String, ParameterDetail > & GetParameters() const
Definition Function.h:84
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue