AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
Phrase.h
1
6#pragma once
7#include <aws/bedrock-data-automation/BedrockDataAutomation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockDataAutomation {
20namespace Model {
21
27class Phrase {
28 public:
29 AWS_BEDROCKDATAAUTOMATION_API Phrase() = default;
30 AWS_BEDROCKDATAAUTOMATION_API Phrase(Aws::Utils::Json::JsonView jsonValue);
31 AWS_BEDROCKDATAAUTOMATION_API Phrase& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_BEDROCKDATAAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
36 inline const Aws::String& GetText() const { return m_text; }
37 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
38 template <typename TextT = Aws::String>
39 void SetText(TextT&& value) {
40 m_textHasBeenSet = true;
41 m_text = std::forward<TextT>(value);
42 }
43 template <typename TextT = Aws::String>
44 Phrase& WithText(TextT&& value) {
45 SetText(std::forward<TextT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::String& GetDisplayAsText() const { return m_displayAsText; }
53 inline bool DisplayAsTextHasBeenSet() const { return m_displayAsTextHasBeenSet; }
54 template <typename DisplayAsTextT = Aws::String>
56 m_displayAsTextHasBeenSet = true;
57 m_displayAsText = std::forward<DisplayAsTextT>(value);
58 }
59 template <typename DisplayAsTextT = Aws::String>
61 SetDisplayAsText(std::forward<DisplayAsTextT>(value));
62 return *this;
63 }
65 private:
66 Aws::String m_text;
67
68 Aws::String m_displayAsText;
69 bool m_textHasBeenSet = false;
70 bool m_displayAsTextHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace BedrockDataAutomation
75} // namespace Aws
const Aws::String & GetDisplayAsText() const
Definition Phrase.h:52
Phrase & WithDisplayAsText(DisplayAsTextT &&value)
Definition Phrase.h:60
AWS_BEDROCKDATAAUTOMATION_API Phrase(Aws::Utils::Json::JsonView jsonValue)
Phrase & WithText(TextT &&value)
Definition Phrase.h:44
AWS_BEDROCKDATAAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetText() const
Definition Phrase.h:36
AWS_BEDROCKDATAAUTOMATION_API Phrase()=default
void SetDisplayAsText(DisplayAsTextT &&value)
Definition Phrase.h:55
AWS_BEDROCKDATAAUTOMATION_API Phrase & operator=(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