AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TextInputCard.h
1
6#pragma once
7#include <aws/qapps/QApps_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qapps/model/CardType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QApps
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QAPPS_API TextInputCard() = default;
40 AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 TextInputCard& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetTitle() const { return m_title; }
60 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
61 template<typename TitleT = Aws::String>
62 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
63 template<typename TitleT = Aws::String>
64 TextInputCard& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
66
68
71 inline const Aws::Vector<Aws::String>& GetDependencies() const { return m_dependencies; }
72 inline bool DependenciesHasBeenSet() const { return m_dependenciesHasBeenSet; }
73 template<typename DependenciesT = Aws::Vector<Aws::String>>
74 void SetDependencies(DependenciesT&& value) { m_dependenciesHasBeenSet = true; m_dependencies = std::forward<DependenciesT>(value); }
75 template<typename DependenciesT = Aws::Vector<Aws::String>>
76 TextInputCard& WithDependencies(DependenciesT&& value) { SetDependencies(std::forward<DependenciesT>(value)); return *this;}
77 template<typename DependenciesT = Aws::String>
78 TextInputCard& AddDependencies(DependenciesT&& value) { m_dependenciesHasBeenSet = true; m_dependencies.emplace_back(std::forward<DependenciesT>(value)); return *this; }
80
82
85 inline CardType GetType() const { return m_type; }
86 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
87 inline void SetType(CardType value) { m_typeHasBeenSet = true; m_type = value; }
88 inline TextInputCard& WithType(CardType value) { SetType(value); return *this;}
90
92
95 inline const Aws::String& GetPlaceholder() const { return m_placeholder; }
96 inline bool PlaceholderHasBeenSet() const { return m_placeholderHasBeenSet; }
97 template<typename PlaceholderT = Aws::String>
98 void SetPlaceholder(PlaceholderT&& value) { m_placeholderHasBeenSet = true; m_placeholder = std::forward<PlaceholderT>(value); }
99 template<typename PlaceholderT = Aws::String>
100 TextInputCard& WithPlaceholder(PlaceholderT&& value) { SetPlaceholder(std::forward<PlaceholderT>(value)); return *this;}
102
104
107 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
108 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
109 template<typename DefaultValueT = Aws::String>
110 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
111 template<typename DefaultValueT = Aws::String>
112 TextInputCard& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
114 private:
115
116 Aws::String m_id;
117 bool m_idHasBeenSet = false;
118
119 Aws::String m_title;
120 bool m_titleHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_dependencies;
123 bool m_dependenciesHasBeenSet = false;
124
126 bool m_typeHasBeenSet = false;
127
128 Aws::String m_placeholder;
129 bool m_placeholderHasBeenSet = false;
130
131 Aws::String m_defaultValue;
132 bool m_defaultValueHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace QApps
137} // namespace Aws
AWS_QAPPS_API TextInputCard(Aws::Utils::Json::JsonView jsonValue)
TextInputCard & WithTitle(TitleT &&value)
const Aws::Vector< Aws::String > & GetDependencies() const
TextInputCard & WithDependencies(DependenciesT &&value)
const Aws::String & GetId() const
void SetTitle(TitleT &&value)
TextInputCard & WithPlaceholder(PlaceholderT &&value)
const Aws::String & GetPlaceholder() const
AWS_QAPPS_API TextInputCard()=default
void SetDependencies(DependenciesT &&value)
const Aws::String & GetDefaultValue() const
AWS_QAPPS_API TextInputCard & operator=(Aws::Utils::Json::JsonView jsonValue)
TextInputCard & WithDefaultValue(DefaultValueT &&value)
TextInputCard & AddDependencies(DependenciesT &&value)
TextInputCard & WithId(IdT &&value)
AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const
TextInputCard & WithType(CardType value)
void SetPlaceholder(PlaceholderT &&value)
const Aws::String & GetTitle() const
void SetDefaultValue(DefaultValueT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue