AWS SDK for C++

AWS SDK for C++ Version 1.11.605

Loading...
Searching...
No Matches
UpdateCaseRuleRequest.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/connectcases/model/CaseRuleDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ConnectCases
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONNECTCASES_API UpdateCaseRuleRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateCaseRule"; }
32
33 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetCaseRuleId() const { return m_caseRuleId; }
41 inline bool CaseRuleIdHasBeenSet() const { return m_caseRuleIdHasBeenSet; }
42 template<typename CaseRuleIdT = Aws::String>
43 void SetCaseRuleId(CaseRuleIdT&& value) { m_caseRuleIdHasBeenSet = true; m_caseRuleId = std::forward<CaseRuleIdT>(value); }
44 template<typename CaseRuleIdT = Aws::String>
45 UpdateCaseRuleRequest& WithCaseRuleId(CaseRuleIdT&& value) { SetCaseRuleId(std::forward<CaseRuleIdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetDescription() const { return m_description; }
53 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 template<typename DescriptionT = Aws::String>
55 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
56 template<typename DescriptionT = Aws::String>
57 UpdateCaseRuleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDomainId() const { return m_domainId; }
65 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
66 template<typename DomainIdT = Aws::String>
67 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
68 template<typename DomainIdT = Aws::String>
69 UpdateCaseRuleRequest& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template<typename NameT = Aws::String>
79 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
80 template<typename NameT = Aws::String>
81 UpdateCaseRuleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
83
85
88 inline const CaseRuleDetails& GetRule() const { return m_rule; }
89 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
90 template<typename RuleT = CaseRuleDetails>
91 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
92 template<typename RuleT = CaseRuleDetails>
93 UpdateCaseRuleRequest& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
95 private:
96
97 Aws::String m_caseRuleId;
98 bool m_caseRuleIdHasBeenSet = false;
99
100 Aws::String m_description;
101 bool m_descriptionHasBeenSet = false;
102
103 Aws::String m_domainId;
104 bool m_domainIdHasBeenSet = false;
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 CaseRuleDetails m_rule;
110 bool m_ruleHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace ConnectCases
115} // namespace Aws
UpdateCaseRuleRequest & WithName(NameT &&value)
UpdateCaseRuleRequest & WithRule(RuleT &&value)
UpdateCaseRuleRequest & WithDescription(DescriptionT &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
UpdateCaseRuleRequest & WithDomainId(DomainIdT &&value)
UpdateCaseRuleRequest & WithCaseRuleId(CaseRuleIdT &&value)
AWS_CONNECTCASES_API UpdateCaseRuleRequest()=default
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String