AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
UpdateRoutingControlStateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/route53-recovery-cluster/Route53RecoveryClusterRequest.h>
10#include <aws/route53-recovery-cluster/Route53RecoveryCluster_EXPORTS.h>
11#include <aws/route53-recovery-cluster/model/RoutingControlState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Route53RecoveryCluster {
17namespace Model {
18
22 public:
23 AWS_ROUTE53RECOVERYCLUSTER_API UpdateRoutingControlStateRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateRoutingControlState"; }
30
31 AWS_ROUTE53RECOVERYCLUSTER_API Aws::String SerializePayload() const override;
32
33 AWS_ROUTE53RECOVERYCLUSTER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::String& GetRoutingControlArn() const { return m_routingControlArn; }
41 inline bool RoutingControlArnHasBeenSet() const { return m_routingControlArnHasBeenSet; }
42 template <typename RoutingControlArnT = Aws::String>
43 void SetRoutingControlArn(RoutingControlArnT&& value) {
44 m_routingControlArnHasBeenSet = true;
45 m_routingControlArn = std::forward<RoutingControlArnT>(value);
46 }
47 template <typename RoutingControlArnT = Aws::String>
49 SetRoutingControlArn(std::forward<RoutingControlArnT>(value));
50 return *this;
51 }
53
55
58 inline RoutingControlState GetRoutingControlState() const { return m_routingControlState; }
59 inline bool RoutingControlStateHasBeenSet() const { return m_routingControlStateHasBeenSet; }
61 m_routingControlStateHasBeenSet = true;
62 m_routingControlState = value;
63 }
66 return *this;
67 }
69
71
80 inline const Aws::Vector<Aws::String>& GetSafetyRulesToOverride() const { return m_safetyRulesToOverride; }
81 inline bool SafetyRulesToOverrideHasBeenSet() const { return m_safetyRulesToOverrideHasBeenSet; }
82 template <typename SafetyRulesToOverrideT = Aws::Vector<Aws::String>>
83 void SetSafetyRulesToOverride(SafetyRulesToOverrideT&& value) {
84 m_safetyRulesToOverrideHasBeenSet = true;
85 m_safetyRulesToOverride = std::forward<SafetyRulesToOverrideT>(value);
86 }
87 template <typename SafetyRulesToOverrideT = Aws::Vector<Aws::String>>
89 SetSafetyRulesToOverride(std::forward<SafetyRulesToOverrideT>(value));
90 return *this;
91 }
92 template <typename SafetyRulesToOverrideT = Aws::String>
94 m_safetyRulesToOverrideHasBeenSet = true;
95 m_safetyRulesToOverride.emplace_back(std::forward<SafetyRulesToOverrideT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_routingControlArn;
101
103
104 Aws::Vector<Aws::String> m_safetyRulesToOverride;
105 bool m_routingControlArnHasBeenSet = false;
106 bool m_routingControlStateHasBeenSet = false;
107 bool m_safetyRulesToOverrideHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Route53RecoveryCluster
112} // namespace Aws
UpdateRoutingControlStateRequest & WithSafetyRulesToOverride(SafetyRulesToOverrideT &&value)
AWS_ROUTE53RECOVERYCLUSTER_API Aws::String SerializePayload() const override
UpdateRoutingControlStateRequest & AddSafetyRulesToOverride(SafetyRulesToOverrideT &&value)
UpdateRoutingControlStateRequest & WithRoutingControlArn(RoutingControlArnT &&value)
UpdateRoutingControlStateRequest & WithRoutingControlState(RoutingControlState value)
AWS_ROUTE53RECOVERYCLUSTER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ROUTE53RECOVERYCLUSTER_API UpdateRoutingControlStateRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector