AWS SDK for C++  1.9.71
AWS SDK for C++
UpdateRuleMetadataRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace FraudDetector
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "UpdateRuleMetadata"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Rule& GetRule() const{ return m_rule; }
42 
46  inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
47 
51  inline void SetRule(const Rule& value) { m_ruleHasBeenSet = true; m_rule = value; }
52 
56  inline void SetRule(Rule&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
57 
61  inline UpdateRuleMetadataRequest& WithRule(const Rule& value) { SetRule(value); return *this;}
62 
66  inline UpdateRuleMetadataRequest& WithRule(Rule&& value) { SetRule(std::move(value)); return *this;}
67 
68 
72  inline const Aws::String& GetDescription() const{ return m_description; }
73 
77  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 
82  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
83 
87  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 
92  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
93 
97  inline UpdateRuleMetadataRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
98 
102  inline UpdateRuleMetadataRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
103 
107  inline UpdateRuleMetadataRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
108 
109  private:
110 
111  Rule m_rule;
112  bool m_ruleHasBeenSet;
113 
114  Aws::String m_description;
115  bool m_descriptionHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace FraudDetector
120 } // namespace Aws
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateRuleMetadataRequest.h:92
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateRuleMetadataRequest.h:87
FraudDetectorRequest.h
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::SetRule
void SetRule(const Rule &value)
Definition: UpdateRuleMetadataRequest.h:51
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateRuleMetadataRequest.h:82
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::UpdateRuleMetadataRequest
UpdateRuleMetadataRequest()
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateRuleMetadataRequest.h:77
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::GetRule
const Rule & GetRule() const
Definition: UpdateRuleMetadataRequest.h:41
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::RuleHasBeenSet
bool RuleHasBeenSet() const
Definition: UpdateRuleMetadataRequest.h:46
Aws::FraudDetector::Model::UpdateRuleMetadataRequest
Definition: UpdateRuleMetadataRequest.h:23
Aws::FraudDetector::FraudDetectorRequest
Definition: FraudDetectorRequest.h:17
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::WithRule
UpdateRuleMetadataRequest & WithRule(Rule &&value)
Definition: UpdateRuleMetadataRequest.h:66
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::WithDescription
UpdateRuleMetadataRequest & WithDescription(const char *value)
Definition: UpdateRuleMetadataRequest.h:107
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::WithDescription
UpdateRuleMetadataRequest & WithDescription(const Aws::String &value)
Definition: UpdateRuleMetadataRequest.h:97
AWSString.h
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::SetRule
void SetRule(Rule &&value)
Definition: UpdateRuleMetadataRequest.h:56
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::FraudDetector::Model::Rule
Definition: Rule.h:32
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateRuleMetadataRequest.h:72
Rule.h
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRuleMetadataRequest.h:31
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::WithDescription
UpdateRuleMetadataRequest & WithDescription(Aws::String &&value)
Definition: UpdateRuleMetadataRequest.h:102
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::WithRule
UpdateRuleMetadataRequest & WithRule(const Rule &value)
Definition: UpdateRuleMetadataRequest.h:61
Aws::FraudDetector::Model::UpdateRuleMetadataRequest::SerializePayload
Aws::String SerializePayload() const override