AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline Function& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline Function& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline Function& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline const Aws::String& GetName() const{ return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 inline Function& WithName(const Aws::String& value) { SetName(value); return *this;}
79 inline Function& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 inline Function& WithName(const char* value) { SetName(value); return *this;}
82
84
88 inline const Aws::Map<Aws::String, ParameterDetail>& GetParameters() const{ return m_parameters; }
89 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
90 inline void SetParameters(const Aws::Map<Aws::String, ParameterDetail>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
91 inline void SetParameters(Aws::Map<Aws::String, ParameterDetail>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
92 inline Function& WithParameters(const Aws::Map<Aws::String, ParameterDetail>& value) { SetParameters(value); return *this;}
93 inline Function& WithParameters(Aws::Map<Aws::String, ParameterDetail>&& value) { SetParameters(std::move(value)); return *this;}
94 inline Function& AddParameters(const Aws::String& key, const ParameterDetail& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
95 inline Function& AddParameters(Aws::String&& key, const ParameterDetail& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
96 inline Function& AddParameters(const Aws::String& key, ParameterDetail&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
97 inline Function& AddParameters(Aws::String&& key, ParameterDetail&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
98 inline Function& AddParameters(const char* key, ParameterDetail&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
99 inline Function& AddParameters(const char* key, const ParameterDetail& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
101
103
107 inline const RequireConfirmation& GetRequireConfirmation() const{ return m_requireConfirmation; }
108 inline bool RequireConfirmationHasBeenSet() const { return m_requireConfirmationHasBeenSet; }
109 inline void SetRequireConfirmation(const RequireConfirmation& value) { m_requireConfirmationHasBeenSet = true; m_requireConfirmation = value; }
110 inline void SetRequireConfirmation(RequireConfirmation&& value) { m_requireConfirmationHasBeenSet = true; m_requireConfirmation = std::move(value); }
111 inline Function& WithRequireConfirmation(const RequireConfirmation& value) { SetRequireConfirmation(value); return *this;}
112 inline Function& WithRequireConfirmation(RequireConfirmation&& value) { SetRequireConfirmation(std::move(value)); return *this;}
114 private:
115
116 Aws::String m_description;
117 bool m_descriptionHasBeenSet = false;
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
123 bool m_parametersHasBeenSet = false;
124
125 RequireConfirmation m_requireConfirmation;
126 bool m_requireConfirmationHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace BedrockAgent
131} // namespace Aws
Function & WithName(const Aws::String &value)
Definition Function.h:78
Function & WithParameters(Aws::Map< Aws::String, ParameterDetail > &&value)
Definition Function.h:93
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
Function & WithDescription(const char *value)
Definition Function.h:66
void SetParameters(const Aws::Map< Aws::String, ParameterDetail > &value)
Definition Function.h:90
AWS_BEDROCKAGENT_API Function()
void SetRequireConfirmation(RequireConfirmation &&value)
Definition Function.h:110
Function & WithDescription(Aws::String &&value)
Definition Function.h:65
AWS_BEDROCKAGENT_API Function & operator=(Aws::Utils::Json::JsonView jsonValue)
Function & WithDescription(const Aws::String &value)
Definition Function.h:64
Function & AddParameters(const char *key, const ParameterDetail &value)
Definition Function.h:99
void SetParameters(Aws::Map< Aws::String, ParameterDetail > &&value)
Definition Function.h:91
Function & WithRequireConfirmation(const RequireConfirmation &value)
Definition Function.h:111
const Aws::String & GetDescription() const
Definition Function.h:59
void SetDescription(const Aws::String &value)
Definition Function.h:61
Function & WithRequireConfirmation(RequireConfirmation &&value)
Definition Function.h:112
const RequireConfirmation & GetRequireConfirmation() const
Definition Function.h:107
Function & AddParameters(Aws::String &&key, ParameterDetail &&value)
Definition Function.h:97
Function & AddParameters(const Aws::String &key, ParameterDetail &&value)
Definition Function.h:96
void SetName(const char *value)
Definition Function.h:77
void SetDescription(Aws::String &&value)
Definition Function.h:62
Function & AddParameters(const Aws::String &key, const ParameterDetail &value)
Definition Function.h:94
void SetName(const Aws::String &value)
Definition Function.h:75
Function & WithName(const char *value)
Definition Function.h:80
Function & WithName(Aws::String &&value)
Definition Function.h:79
Function & AddParameters(const char *key, ParameterDetail &&value)
Definition Function.h:98
AWS_BEDROCKAGENT_API Function(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Function.h:73
void SetName(Aws::String &&value)
Definition Function.h:76
bool RequireConfirmationHasBeenSet() const
Definition Function.h:108
const Aws::Map< Aws::String, ParameterDetail > & GetParameters() const
Definition Function.h:88
Function & WithParameters(const Aws::Map< Aws::String, ParameterDetail > &value)
Definition Function.h:92
void SetRequireConfirmation(const RequireConfirmation &value)
Definition Function.h:109
void SetDescription(const char *value)
Definition Function.h:63
Function & AddParameters(Aws::String &&key, const ParameterDetail &value)
Definition Function.h:95
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