AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ViewInputContent.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
31 public:
32 AWS_CONNECT_API ViewInputContent() = default;
33 AWS_CONNECT_API ViewInputContent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTemplate() const { return m_template; }
42 inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
43 template <typename TemplateT = Aws::String>
44 void SetTemplate(TemplateT&& value) {
45 m_templateHasBeenSet = true;
46 m_template = std::forward<TemplateT>(value);
47 }
48 template <typename TemplateT = Aws::String>
49 ViewInputContent& WithTemplate(TemplateT&& value) {
50 SetTemplate(std::forward<TemplateT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
60 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
61 template <typename ActionsT = Aws::Vector<Aws::String>>
62 void SetActions(ActionsT&& value) {
63 m_actionsHasBeenSet = true;
64 m_actions = std::forward<ActionsT>(value);
65 }
66 template <typename ActionsT = Aws::Vector<Aws::String>>
67 ViewInputContent& WithActions(ActionsT&& value) {
68 SetActions(std::forward<ActionsT>(value));
69 return *this;
70 }
71 template <typename ActionsT = Aws::String>
72 ViewInputContent& AddActions(ActionsT&& value) {
73 m_actionsHasBeenSet = true;
74 m_actions.emplace_back(std::forward<ActionsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_template;
80
82 bool m_templateHasBeenSet = false;
83 bool m_actionsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Connect
88} // namespace Aws
ViewInputContent & WithTemplate(TemplateT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ViewInputContent & AddActions(ActionsT &&value)
const Aws::Vector< Aws::String > & GetActions() const
const Aws::String & GetTemplate() const
AWS_CONNECT_API ViewInputContent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API ViewInputContent(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API ViewInputContent()=default
ViewInputContent & WithActions(ActionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue