AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
ParameterDetail.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/Type.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 BedrockAgent {
21namespace Model {
22
40 public:
41 AWS_BEDROCKAGENT_API ParameterDetail() = default;
44 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
51 inline const Aws::String& GetDescription() const { return m_description; }
52 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
53 template <typename DescriptionT = Aws::String>
55 m_descriptionHasBeenSet = true;
56 m_description = std::forward<DescriptionT>(value);
57 }
58 template <typename DescriptionT = Aws::String>
60 SetDescription(std::forward<DescriptionT>(value));
61 return *this;
62 }
64
66
69 inline Type GetType() const { return m_type; }
70 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
71 inline void SetType(Type value) {
72 m_typeHasBeenSet = true;
73 m_type = value;
74 }
75 inline ParameterDetail& WithType(Type value) {
76 SetType(value);
77 return *this;
78 }
80
82
86 inline bool GetRequired() const { return m_required; }
87 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
88 inline void SetRequired(bool value) {
89 m_requiredHasBeenSet = true;
90 m_required = value;
91 }
92 inline ParameterDetail& WithRequired(bool value) {
93 SetRequired(value);
94 return *this;
95 }
97 private:
98 Aws::String m_description;
99
100 Type m_type{Type::NOT_SET};
101
102 bool m_required{false};
103 bool m_descriptionHasBeenSet = false;
104 bool m_typeHasBeenSet = false;
105 bool m_requiredHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace BedrockAgent
110} // namespace Aws
ParameterDetail & WithRequired(bool value)
ParameterDetail & WithDescription(DescriptionT &&value)
ParameterDetail & WithType(Type value)
AWS_BEDROCKAGENT_API ParameterDetail()=default
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API ParameterDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API ParameterDetail(Aws::Utils::Json::JsonView jsonValue)
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