AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRoutingControlStatesRequest.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/AWSVector.h>
10#include <aws/route53-recovery-cluster/model/UpdateRoutingControlStateEntry.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Route53RecoveryCluster
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ROUTE53RECOVERYCLUSTER_API UpdateRoutingControlStatesRequest() = 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 "UpdateRoutingControlStates"; }
33
34 AWS_ROUTE53RECOVERYCLUSTER_API Aws::String SerializePayload() const override;
35
36 AWS_ROUTE53RECOVERYCLUSTER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::Vector<UpdateRoutingControlStateEntry>& GetUpdateRoutingControlStateEntries() const { return m_updateRoutingControlStateEntries; }
44 inline bool UpdateRoutingControlStateEntriesHasBeenSet() const { return m_updateRoutingControlStateEntriesHasBeenSet; }
45 template<typename UpdateRoutingControlStateEntriesT = Aws::Vector<UpdateRoutingControlStateEntry>>
46 void SetUpdateRoutingControlStateEntries(UpdateRoutingControlStateEntriesT&& value) { m_updateRoutingControlStateEntriesHasBeenSet = true; m_updateRoutingControlStateEntries = std::forward<UpdateRoutingControlStateEntriesT>(value); }
47 template<typename UpdateRoutingControlStateEntriesT = Aws::Vector<UpdateRoutingControlStateEntry>>
48 UpdateRoutingControlStatesRequest& WithUpdateRoutingControlStateEntries(UpdateRoutingControlStateEntriesT&& value) { SetUpdateRoutingControlStateEntries(std::forward<UpdateRoutingControlStateEntriesT>(value)); return *this;}
49 template<typename UpdateRoutingControlStateEntriesT = UpdateRoutingControlStateEntry>
50 UpdateRoutingControlStatesRequest& AddUpdateRoutingControlStateEntries(UpdateRoutingControlStateEntriesT&& value) { m_updateRoutingControlStateEntriesHasBeenSet = true; m_updateRoutingControlStateEntries.emplace_back(std::forward<UpdateRoutingControlStateEntriesT>(value)); return *this; }
52
54
63 inline const Aws::Vector<Aws::String>& GetSafetyRulesToOverride() const { return m_safetyRulesToOverride; }
64 inline bool SafetyRulesToOverrideHasBeenSet() const { return m_safetyRulesToOverrideHasBeenSet; }
65 template<typename SafetyRulesToOverrideT = Aws::Vector<Aws::String>>
66 void SetSafetyRulesToOverride(SafetyRulesToOverrideT&& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride = std::forward<SafetyRulesToOverrideT>(value); }
67 template<typename SafetyRulesToOverrideT = Aws::Vector<Aws::String>>
68 UpdateRoutingControlStatesRequest& WithSafetyRulesToOverride(SafetyRulesToOverrideT&& value) { SetSafetyRulesToOverride(std::forward<SafetyRulesToOverrideT>(value)); return *this;}
69 template<typename SafetyRulesToOverrideT = Aws::String>
70 UpdateRoutingControlStatesRequest& AddSafetyRulesToOverride(SafetyRulesToOverrideT&& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride.emplace_back(std::forward<SafetyRulesToOverrideT>(value)); return *this; }
72 private:
73
74 Aws::Vector<UpdateRoutingControlStateEntry> m_updateRoutingControlStateEntries;
75 bool m_updateRoutingControlStateEntriesHasBeenSet = false;
76
77 Aws::Vector<Aws::String> m_safetyRulesToOverride;
78 bool m_safetyRulesToOverrideHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Route53RecoveryCluster
83} // namespace Aws
UpdateRoutingControlStatesRequest & WithUpdateRoutingControlStateEntries(UpdateRoutingControlStateEntriesT &&value)
AWS_ROUTE53RECOVERYCLUSTER_API UpdateRoutingControlStatesRequest()=default
UpdateRoutingControlStatesRequest & AddSafetyRulesToOverride(SafetyRulesToOverrideT &&value)
AWS_ROUTE53RECOVERYCLUSTER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ROUTE53RECOVERYCLUSTER_API Aws::String SerializePayload() const override
UpdateRoutingControlStatesRequest & WithSafetyRulesToOverride(SafetyRulesToOverrideT &&value)
UpdateRoutingControlStatesRequest & AddUpdateRoutingControlStateEntries(UpdateRoutingControlStateEntriesT &&value)
const Aws::Vector< UpdateRoutingControlStateEntry > & GetUpdateRoutingControlStateEntries() const
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