AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateCaseRequest.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
15namespace Aws
16{
17namespace ConnectCases
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECTCASES_API UpdateCaseRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateCase"; }
34
35 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetCaseId() const{ return m_caseId; }
43 inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
44 inline void SetCaseId(const Aws::String& value) { m_caseIdHasBeenSet = true; m_caseId = value; }
45 inline void SetCaseId(Aws::String&& value) { m_caseIdHasBeenSet = true; m_caseId = std::move(value); }
46 inline void SetCaseId(const char* value) { m_caseIdHasBeenSet = true; m_caseId.assign(value); }
47 inline UpdateCaseRequest& WithCaseId(const Aws::String& value) { SetCaseId(value); return *this;}
48 inline UpdateCaseRequest& WithCaseId(Aws::String&& value) { SetCaseId(std::move(value)); return *this;}
49 inline UpdateCaseRequest& WithCaseId(const char* value) { SetCaseId(value); return *this;}
51
53
56 inline const Aws::String& GetDomainId() const{ return m_domainId; }
57 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
58 inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; }
59 inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); }
60 inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); }
61 inline UpdateCaseRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
62 inline UpdateCaseRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
63 inline UpdateCaseRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;}
65
67
72 inline const Aws::Vector<FieldValue>& GetFields() const{ return m_fields; }
73 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
74 inline void SetFields(const Aws::Vector<FieldValue>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
75 inline void SetFields(Aws::Vector<FieldValue>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
76 inline UpdateCaseRequest& WithFields(const Aws::Vector<FieldValue>& value) { SetFields(value); return *this;}
77 inline UpdateCaseRequest& WithFields(Aws::Vector<FieldValue>&& value) { SetFields(std::move(value)); return *this;}
78 inline UpdateCaseRequest& AddFields(const FieldValue& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
79 inline UpdateCaseRequest& AddFields(FieldValue&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
81
83
84 inline const UserUnion& GetPerformedBy() const{ return m_performedBy; }
85 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
86 inline void SetPerformedBy(const UserUnion& value) { m_performedByHasBeenSet = true; m_performedBy = value; }
87 inline void SetPerformedBy(UserUnion&& value) { m_performedByHasBeenSet = true; m_performedBy = std::move(value); }
88 inline UpdateCaseRequest& WithPerformedBy(const UserUnion& value) { SetPerformedBy(value); return *this;}
89 inline UpdateCaseRequest& WithPerformedBy(UserUnion&& value) { SetPerformedBy(std::move(value)); return *this;}
91 private:
92
93 Aws::String m_caseId;
94 bool m_caseIdHasBeenSet = false;
95
96 Aws::String m_domainId;
97 bool m_domainIdHasBeenSet = false;
98
100 bool m_fieldsHasBeenSet = false;
101
102 UserUnion m_performedBy;
103 bool m_performedByHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace ConnectCases
108} // namespace Aws
void SetDomainId(const Aws::String &value)
UpdateCaseRequest & WithCaseId(const char *value)
UpdateCaseRequest & WithPerformedBy(UserUnion &&value)
UpdateCaseRequest & WithCaseId(Aws::String &&value)
UpdateCaseRequest & WithDomainId(const char *value)
UpdateCaseRequest & AddFields(FieldValue &&value)
UpdateCaseRequest & AddFields(const FieldValue &value)
UpdateCaseRequest & WithPerformedBy(const UserUnion &value)
const Aws::Vector< FieldValue > & GetFields() const
void SetCaseId(const Aws::String &value)
UpdateCaseRequest & WithDomainId(const Aws::String &value)
UpdateCaseRequest & WithCaseId(const Aws::String &value)
UpdateCaseRequest & WithDomainId(Aws::String &&value)
void SetFields(Aws::Vector< FieldValue > &&value)
UpdateCaseRequest & WithFields(Aws::Vector< FieldValue > &&value)
UpdateCaseRequest & WithFields(const Aws::Vector< FieldValue > &value)
void SetPerformedBy(const UserUnion &value)
virtual const char * GetServiceRequestName() const override
void SetFields(const Aws::Vector< FieldValue > &value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector