AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFields(const Aws::Vector<FieldValue>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
50 inline void SetFields(Aws::Vector<FieldValue>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
51 inline CreateCaseActionDefinition& WithFields(const Aws::Vector<FieldValue>& value) { SetFields(value); return *this;}
52 inline CreateCaseActionDefinition& WithFields(Aws::Vector<FieldValue>&& value) { SetFields(std::move(value)); return *this;}
53 inline CreateCaseActionDefinition& AddFields(const FieldValue& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
54 inline CreateCaseActionDefinition& AddFields(FieldValue&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
56
58
61 inline const Aws::String& GetTemplateId() const{ return m_templateId; }
62 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
63 inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; }
64 inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); }
65 inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); }
66 inline CreateCaseActionDefinition& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;}
67 inline CreateCaseActionDefinition& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;}
68 inline CreateCaseActionDefinition& WithTemplateId(const char* value) { SetTemplateId(value); return *this;}
70 private:
71
73 bool m_fieldsHasBeenSet = false;
74
75 Aws::String m_templateId;
76 bool m_templateIdHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Connect
81} // namespace Aws
void SetFields(Aws::Vector< FieldValue > &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFields(const Aws::Vector< FieldValue > &value)
CreateCaseActionDefinition & WithTemplateId(const Aws::String &value)
CreateCaseActionDefinition & WithTemplateId(const char *value)
CreateCaseActionDefinition & AddFields(const FieldValue &value)
CreateCaseActionDefinition & WithFields(const Aws::Vector< FieldValue > &value)
CreateCaseActionDefinition & WithTemplateId(Aws::String &&value)
const Aws::Vector< FieldValue > & GetFields() const
CreateCaseActionDefinition & WithFields(Aws::Vector< FieldValue > &&value)
CreateCaseActionDefinition & AddFields(FieldValue &&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