AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCaseRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/ConnectCasesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/connectcases/model/UserUnion.h>
12#include <aws/connectcases/model/FieldValue.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace ConnectCases
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CONNECTCASES_API CreateCaseRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateCase"; }
35
36 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
37
38
40
47 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
50 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
51 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
52 inline CreateCaseRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
53 inline CreateCaseRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
54 inline CreateCaseRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
56
58
61 inline const Aws::String& GetDomainId() const{ return m_domainId; }
62 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
63 inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; }
64 inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); }
65 inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); }
66 inline CreateCaseRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
67 inline CreateCaseRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
68 inline CreateCaseRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;}
70
72
76 inline const Aws::Vector<FieldValue>& GetFields() const{ return m_fields; }
77 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
78 inline void SetFields(const Aws::Vector<FieldValue>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
79 inline void SetFields(Aws::Vector<FieldValue>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
80 inline CreateCaseRequest& WithFields(const Aws::Vector<FieldValue>& value) { SetFields(value); return *this;}
81 inline CreateCaseRequest& WithFields(Aws::Vector<FieldValue>&& value) { SetFields(std::move(value)); return *this;}
82 inline CreateCaseRequest& AddFields(const FieldValue& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
83 inline CreateCaseRequest& AddFields(FieldValue&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
85
87
88 inline const UserUnion& GetPerformedBy() const{ return m_performedBy; }
89 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
90 inline void SetPerformedBy(const UserUnion& value) { m_performedByHasBeenSet = true; m_performedBy = value; }
91 inline void SetPerformedBy(UserUnion&& value) { m_performedByHasBeenSet = true; m_performedBy = std::move(value); }
92 inline CreateCaseRequest& WithPerformedBy(const UserUnion& value) { SetPerformedBy(value); return *this;}
93 inline CreateCaseRequest& WithPerformedBy(UserUnion&& value) { SetPerformedBy(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetTemplateId() const{ return m_templateId; }
101 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
102 inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; }
103 inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); }
104 inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); }
105 inline CreateCaseRequest& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;}
106 inline CreateCaseRequest& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;}
107 inline CreateCaseRequest& WithTemplateId(const char* value) { SetTemplateId(value); return *this;}
109 private:
110
111 Aws::String m_clientToken;
112 bool m_clientTokenHasBeenSet = false;
113
114 Aws::String m_domainId;
115 bool m_domainIdHasBeenSet = false;
116
118 bool m_fieldsHasBeenSet = false;
119
120 UserUnion m_performedBy;
121 bool m_performedByHasBeenSet = false;
122
123 Aws::String m_templateId;
124 bool m_templateIdHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace ConnectCases
129} // namespace Aws
CreateCaseRequest & WithClientToken(const Aws::String &value)
void SetClientToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateCaseRequest & WithTemplateId(Aws::String &&value)
void SetPerformedBy(const UserUnion &value)
CreateCaseRequest & AddFields(FieldValue &&value)
CreateCaseRequest & WithPerformedBy(UserUnion &&value)
CreateCaseRequest & WithFields(Aws::Vector< FieldValue > &&value)
CreateCaseRequest & WithDomainId(Aws::String &&value)
void SetFields(Aws::Vector< FieldValue > &&value)
CreateCaseRequest & WithTemplateId(const Aws::String &value)
void SetDomainId(const Aws::String &value)
const Aws::Vector< FieldValue > & GetFields() const
CreateCaseRequest & AddFields(const FieldValue &value)
CreateCaseRequest & WithClientToken(const char *value)
void SetTemplateId(const Aws::String &value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
CreateCaseRequest & WithDomainId(const Aws::String &value)
CreateCaseRequest & WithTemplateId(const char *value)
CreateCaseRequest & WithPerformedBy(const UserUnion &value)
void SetFields(const Aws::Vector< FieldValue > &value)
CreateCaseRequest & WithFields(const Aws::Vector< FieldValue > &value)
CreateCaseRequest & WithClientToken(Aws::String &&value)
CreateCaseRequest & WithDomainId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector