AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateCaseActionDefinition.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/FieldValue.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 Connect
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CONNECT_API CreateCaseActionDefinition() = default;
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<FieldValue>& GetFields() const { return m_fields; }
48 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
49 template<typename FieldsT = Aws::Vector<FieldValue>>
50 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
51 template<typename FieldsT = Aws::Vector<FieldValue>>
52 CreateCaseActionDefinition& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
53 template<typename FieldsT = FieldValue>
54 CreateCaseActionDefinition& AddFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields.emplace_back(std::forward<FieldsT>(value)); return *this; }
56
58
61 inline const Aws::String& GetTemplateId() const { return m_templateId; }
62 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
63 template<typename TemplateIdT = Aws::String>
64 void SetTemplateId(TemplateIdT&& value) { m_templateIdHasBeenSet = true; m_templateId = std::forward<TemplateIdT>(value); }
65 template<typename TemplateIdT = Aws::String>
66 CreateCaseActionDefinition& WithTemplateId(TemplateIdT&& value) { SetTemplateId(std::forward<TemplateIdT>(value)); return *this;}
68 private:
69
71 bool m_fieldsHasBeenSet = false;
72
73 Aws::String m_templateId;
74 bool m_templateIdHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Connect
79} // 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