AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateSafetyRuleRequest.h
1
6#pragma once
7#include <aws/route53-recovery-control-config/Route53RecoveryControlConfig_EXPORTS.h>
8#include <aws/route53-recovery-control-config/Route53RecoveryControlConfigRequest.h>
9#include <aws/route53-recovery-control-config/model/AssertionRuleUpdate.h>
10#include <aws/route53-recovery-control-config/model/GatingRuleUpdate.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Route53RecoveryControlConfig
16{
17namespace Model
18{
19
28 {
29 public:
30 AWS_ROUTE53RECOVERYCONTROLCONFIG_API UpdateSafetyRuleRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateSafetyRule"; }
37
38 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::String SerializePayload() const override;
39
40
42
45 inline const AssertionRuleUpdate& GetAssertionRuleUpdate() const { return m_assertionRuleUpdate; }
46 inline bool AssertionRuleUpdateHasBeenSet() const { return m_assertionRuleUpdateHasBeenSet; }
47 template<typename AssertionRuleUpdateT = AssertionRuleUpdate>
48 void SetAssertionRuleUpdate(AssertionRuleUpdateT&& value) { m_assertionRuleUpdateHasBeenSet = true; m_assertionRuleUpdate = std::forward<AssertionRuleUpdateT>(value); }
49 template<typename AssertionRuleUpdateT = AssertionRuleUpdate>
50 UpdateSafetyRuleRequest& WithAssertionRuleUpdate(AssertionRuleUpdateT&& value) { SetAssertionRuleUpdate(std::forward<AssertionRuleUpdateT>(value)); return *this;}
52
54
57 inline const GatingRuleUpdate& GetGatingRuleUpdate() const { return m_gatingRuleUpdate; }
58 inline bool GatingRuleUpdateHasBeenSet() const { return m_gatingRuleUpdateHasBeenSet; }
59 template<typename GatingRuleUpdateT = GatingRuleUpdate>
60 void SetGatingRuleUpdate(GatingRuleUpdateT&& value) { m_gatingRuleUpdateHasBeenSet = true; m_gatingRuleUpdate = std::forward<GatingRuleUpdateT>(value); }
61 template<typename GatingRuleUpdateT = GatingRuleUpdate>
62 UpdateSafetyRuleRequest& WithGatingRuleUpdate(GatingRuleUpdateT&& value) { SetGatingRuleUpdate(std::forward<GatingRuleUpdateT>(value)); return *this;}
64 private:
65
66 AssertionRuleUpdate m_assertionRuleUpdate;
67 bool m_assertionRuleUpdateHasBeenSet = false;
68
69 GatingRuleUpdate m_gatingRuleUpdate;
70 bool m_gatingRuleUpdateHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Route53RecoveryControlConfig
75} // namespace Aws
UpdateSafetyRuleRequest & WithAssertionRuleUpdate(AssertionRuleUpdateT &&value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::String SerializePayload() const override
AWS_ROUTE53RECOVERYCONTROLCONFIG_API UpdateSafetyRuleRequest()=default
UpdateSafetyRuleRequest & WithGatingRuleUpdate(GatingRuleUpdateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String