AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRoutingControlArn(const Aws::String& value) { m_routingControlArnHasBeenSet = true; m_routingControlArn = value; }
47 inline void SetRoutingControlArn(Aws::String&& value) { m_routingControlArnHasBeenSet = true; m_routingControlArn = std::move(value); }
48 inline void SetRoutingControlArn(const char* value) { m_routingControlArnHasBeenSet = true; m_routingControlArn.assign(value); }
51 inline UpdateRoutingControlStateRequest& WithRoutingControlArn(const char* value) { SetRoutingControlArn(value); return *this;}
53
55
58 inline const RoutingControlState& GetRoutingControlState() const{ return m_routingControlState; }
59 inline bool RoutingControlStateHasBeenSet() const { return m_routingControlStateHasBeenSet; }
60 inline void SetRoutingControlState(const RoutingControlState& value) { m_routingControlStateHasBeenSet = true; m_routingControlState = value; }
61 inline void SetRoutingControlState(RoutingControlState&& value) { m_routingControlStateHasBeenSet = true; m_routingControlState = std::move(value); }
65
67
76 inline const Aws::Vector<Aws::String>& GetSafetyRulesToOverride() const{ return m_safetyRulesToOverride; }
77 inline bool SafetyRulesToOverrideHasBeenSet() const { return m_safetyRulesToOverrideHasBeenSet; }
78 inline void SetSafetyRulesToOverride(const Aws::Vector<Aws::String>& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride = value; }
79 inline void SetSafetyRulesToOverride(Aws::Vector<Aws::String>&& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride = std::move(value); }
82 inline UpdateRoutingControlStateRequest& AddSafetyRulesToOverride(const Aws::String& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride.push_back(value); return *this; }
83 inline UpdateRoutingControlStateRequest& AddSafetyRulesToOverride(Aws::String&& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride.push_back(std::move(value)); return *this; }
84 inline UpdateRoutingControlStateRequest& AddSafetyRulesToOverride(const char* value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride.push_back(value); return *this; }
86 private:
87
88 Aws::String m_routingControlArn;
89 bool m_routingControlArnHasBeenSet = false;
90
91 RoutingControlState m_routingControlState;
92 bool m_routingControlStateHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_safetyRulesToOverride;
95 bool m_safetyRulesToOverrideHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Route53RecoveryCluster
100} // namespace Aws
UpdateRoutingControlStateRequest & WithSafetyRulesToOverride(Aws::Vector< Aws::String > &&value)
AWS_ROUTE53RECOVERYCLUSTER_API Aws::String SerializePayload() const override
UpdateRoutingControlStateRequest & AddSafetyRulesToOverride(Aws::String &&value)
UpdateRoutingControlStateRequest & WithRoutingControlArn(const char *value)
UpdateRoutingControlStateRequest & AddSafetyRulesToOverride(const Aws::String &value)
UpdateRoutingControlStateRequest & WithRoutingControlState(RoutingControlState &&value)
UpdateRoutingControlStateRequest & WithRoutingControlArn(Aws::String &&value)
UpdateRoutingControlStateRequest & WithRoutingControlArn(const Aws::String &value)
AWS_ROUTE53RECOVERYCLUSTER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRoutingControlStateRequest & AddSafetyRulesToOverride(const char *value)
UpdateRoutingControlStateRequest & WithRoutingControlState(const RoutingControlState &value)
UpdateRoutingControlStateRequest & WithSafetyRulesToOverride(const Aws::Vector< Aws::String > &value)
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