AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRoutingControlStateRequest.h
1
6#pragma once
7#include <aws/route53-recovery-cluster/Route53RecoveryCluster_EXPORTS.h>
8#include <aws/route53-recovery-cluster/Route53RecoveryClusterRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/route53-recovery-cluster/model/RoutingControlState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Route53RecoveryCluster
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ROUTE53RECOVERYCLUSTER_API UpdateRoutingControlStateRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateRoutingControlState"; }
33
34 AWS_ROUTE53RECOVERYCLUSTER_API Aws::String SerializePayload() const override;
35
36 AWS_ROUTE53RECOVERYCLUSTER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetRoutingControlArn() const { return m_routingControlArn; }
45 inline bool RoutingControlArnHasBeenSet() const { return m_routingControlArnHasBeenSet; }
46 template<typename RoutingControlArnT = Aws::String>
47 void SetRoutingControlArn(RoutingControlArnT&& value) { m_routingControlArnHasBeenSet = true; m_routingControlArn = std::forward<RoutingControlArnT>(value); }
48 template<typename RoutingControlArnT = Aws::String>
49 UpdateRoutingControlStateRequest& WithRoutingControlArn(RoutingControlArnT&& value) { SetRoutingControlArn(std::forward<RoutingControlArnT>(value)); return *this;}
51
53
56 inline RoutingControlState GetRoutingControlState() const { return m_routingControlState; }
57 inline bool RoutingControlStateHasBeenSet() const { return m_routingControlStateHasBeenSet; }
58 inline void SetRoutingControlState(RoutingControlState value) { m_routingControlStateHasBeenSet = true; m_routingControlState = value; }
61
63
72 inline const Aws::Vector<Aws::String>& GetSafetyRulesToOverride() const { return m_safetyRulesToOverride; }
73 inline bool SafetyRulesToOverrideHasBeenSet() const { return m_safetyRulesToOverrideHasBeenSet; }
74 template<typename SafetyRulesToOverrideT = Aws::Vector<Aws::String>>
75 void SetSafetyRulesToOverride(SafetyRulesToOverrideT&& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride = std::forward<SafetyRulesToOverrideT>(value); }
76 template<typename SafetyRulesToOverrideT = Aws::Vector<Aws::String>>
77 UpdateRoutingControlStateRequest& WithSafetyRulesToOverride(SafetyRulesToOverrideT&& value) { SetSafetyRulesToOverride(std::forward<SafetyRulesToOverrideT>(value)); return *this;}
78 template<typename SafetyRulesToOverrideT = Aws::String>
79 UpdateRoutingControlStateRequest& AddSafetyRulesToOverride(SafetyRulesToOverrideT&& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride.emplace_back(std::forward<SafetyRulesToOverrideT>(value)); return *this; }
81 private:
82
83 Aws::String m_routingControlArn;
84 bool m_routingControlArnHasBeenSet = false;
85
87 bool m_routingControlStateHasBeenSet = false;
88
89 Aws::Vector<Aws::String> m_safetyRulesToOverride;
90 bool m_safetyRulesToOverrideHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Route53RecoveryCluster
95} // 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