AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
CustomPromptInput.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/CustomPromptInputParameters.h>
9#include <aws/quicksight/model/CustomPromptProfile.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
31 public:
32 AWS_QUICKSIGHT_API CustomPromptInput() = default;
33 AWS_QUICKSIGHT_API CustomPromptInput(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const CustomPromptProfile& GetExistingPrompt() const { return m_existingPrompt; }
42 inline bool ExistingPromptHasBeenSet() const { return m_existingPromptHasBeenSet; }
43 template <typename ExistingPromptT = CustomPromptProfile>
44 void SetExistingPrompt(ExistingPromptT&& value) {
45 m_existingPromptHasBeenSet = true;
46 m_existingPrompt = std::forward<ExistingPromptT>(value);
47 }
48 template <typename ExistingPromptT = CustomPromptProfile>
49 CustomPromptInput& WithExistingPrompt(ExistingPromptT&& value) {
50 SetExistingPrompt(std::forward<ExistingPromptT>(value));
51 return *this;
52 }
54
56
59 inline const CustomPromptInputParameters& GetNewPrompt() const { return m_newPrompt; }
60 inline bool NewPromptHasBeenSet() const { return m_newPromptHasBeenSet; }
61 template <typename NewPromptT = CustomPromptInputParameters>
62 void SetNewPrompt(NewPromptT&& value) {
63 m_newPromptHasBeenSet = true;
64 m_newPrompt = std::forward<NewPromptT>(value);
65 }
66 template <typename NewPromptT = CustomPromptInputParameters>
67 CustomPromptInput& WithNewPrompt(NewPromptT&& value) {
68 SetNewPrompt(std::forward<NewPromptT>(value));
69 return *this;
70 }
72 private:
73 CustomPromptProfile m_existingPrompt;
74
76 bool m_existingPromptHasBeenSet = false;
77 bool m_newPromptHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace QuickSight
82} // namespace Aws
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API CustomPromptInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const CustomPromptProfile & GetExistingPrompt() const
CustomPromptInput & WithExistingPrompt(ExistingPromptT &&value)
AWS_QUICKSIGHT_API CustomPromptInput(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API CustomPromptInput()=default
CustomPromptInput & WithNewPrompt(NewPromptT &&value)
const CustomPromptInputParameters & GetNewPrompt() const
void SetExistingPrompt(ExistingPromptT &&value)
Aws::Utils::Json::JsonValue JsonValue