AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCaseRuleRequest.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 CreateCaseRuleRequest() = 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 "CreateCaseRule"; }
32
33 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetDescription() const { return m_description; }
41 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
42 template<typename DescriptionT = Aws::String>
43 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
44 template<typename DescriptionT = Aws::String>
45 CreateCaseRuleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
47
49
52 inline const Aws::String& GetDomainId() const { return m_domainId; }
53 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
54 template<typename DomainIdT = Aws::String>
55 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
56 template<typename DomainIdT = Aws::String>
57 CreateCaseRuleRequest& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template<typename NameT = Aws::String>
67 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 CreateCaseRuleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
76 inline const CaseRuleDetails& GetRule() const { return m_rule; }
77 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
78 template<typename RuleT = CaseRuleDetails>
79 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
80 template<typename RuleT = CaseRuleDetails>
81 CreateCaseRuleRequest& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
83 private:
84
85 Aws::String m_description;
86 bool m_descriptionHasBeenSet = false;
87
88 Aws::String m_domainId;
89 bool m_domainIdHasBeenSet = false;
90
91 Aws::String m_name;
92 bool m_nameHasBeenSet = false;
93
94 CaseRuleDetails m_rule;
95 bool m_ruleHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ConnectCases
100} // namespace Aws
CreateCaseRuleRequest & WithDescription(DescriptionT &&value)
CreateCaseRuleRequest & WithRule(RuleT &&value)
virtual const char * GetServiceRequestName() const override
CreateCaseRuleRequest & WithName(NameT &&value)
CreateCaseRuleRequest & WithDomainId(DomainIdT &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
AWS_CONNECTCASES_API CreateCaseRuleRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String