AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ParameterDetail.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ParameterType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API ParameterDetail() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetDescription() const { return m_description; }
42 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
43 template <typename DescriptionT = Aws::String>
45 m_descriptionHasBeenSet = true;
46 m_description = std::forward<DescriptionT>(value);
47 }
48 template <typename DescriptionT = Aws::String>
50 SetDescription(std::forward<DescriptionT>(value));
51 return *this;
52 }
54
56
60 inline bool GetRequired() const { return m_required; }
61 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
62 inline void SetRequired(bool value) {
63 m_requiredHasBeenSet = true;
64 m_required = value;
65 }
66 inline ParameterDetail& WithRequired(bool value) {
67 SetRequired(value);
68 return *this;
69 }
71
73
76 inline ParameterType GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(ParameterType value) {
79 m_typeHasBeenSet = true;
80 m_type = value;
81 }
83 SetType(value);
84 return *this;
85 }
87 private:
88 Aws::String m_description;
89
90 bool m_required{false};
91
93 bool m_descriptionHasBeenSet = false;
94 bool m_requiredHasBeenSet = false;
95 bool m_typeHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace BedrockAgentRuntime
100} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ParameterDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API ParameterDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ParameterDetail & WithType(ParameterType value)
ParameterDetail & WithDescription(DescriptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API ParameterDetail()=default
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