AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
CreateCaseActionDefinition.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/FieldValue.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
30 public:
31 AWS_CONNECT_API CreateCaseActionDefinition() = default;
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<FieldValue>& GetFields() const { return m_fields; }
42 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
43 template <typename FieldsT = Aws::Vector<FieldValue>>
44 void SetFields(FieldsT&& value) {
45 m_fieldsHasBeenSet = true;
46 m_fields = std::forward<FieldsT>(value);
47 }
48 template <typename FieldsT = Aws::Vector<FieldValue>>
50 SetFields(std::forward<FieldsT>(value));
51 return *this;
52 }
53 template <typename FieldsT = FieldValue>
55 m_fieldsHasBeenSet = true;
56 m_fields.emplace_back(std::forward<FieldsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetTemplateId() const { return m_templateId; }
66 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
67 template <typename TemplateIdT = Aws::String>
68 void SetTemplateId(TemplateIdT&& value) {
69 m_templateIdHasBeenSet = true;
70 m_templateId = std::forward<TemplateIdT>(value);
71 }
72 template <typename TemplateIdT = Aws::String>
74 SetTemplateId(std::forward<TemplateIdT>(value));
75 return *this;
76 }
78 private:
80
81 Aws::String m_templateId;
82 bool m_fieldsHasBeenSet = false;
83 bool m_templateIdHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Connect
88} // namespace Aws
AWS_CONNECT_API CreateCaseActionDefinition()=default
CreateCaseActionDefinition & WithFields(FieldsT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
CreateCaseActionDefinition & AddFields(FieldsT &&value)
const Aws::Vector< FieldValue > & GetFields() const
CreateCaseActionDefinition & WithTemplateId(TemplateIdT &&value)
AWS_CONNECT_API CreateCaseActionDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API CreateCaseActionDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue