AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
UpdateRoutingControlStatesRequest.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/UpdateRoutingControlStateEntry.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Route53RecoveryCluster {
17namespace Model {
18
22 public:
23 AWS_ROUTE53RECOVERYCLUSTER_API UpdateRoutingControlStatesRequest() = 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 "UpdateRoutingControlStates"; }
30
31 AWS_ROUTE53RECOVERYCLUSTER_API Aws::String SerializePayload() const override;
32
33 AWS_ROUTE53RECOVERYCLUSTER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 return m_updateRoutingControlStateEntries;
41 }
42 inline bool UpdateRoutingControlStateEntriesHasBeenSet() const { return m_updateRoutingControlStateEntriesHasBeenSet; }
43 template <typename UpdateRoutingControlStateEntriesT = Aws::Vector<UpdateRoutingControlStateEntry>>
44 void SetUpdateRoutingControlStateEntries(UpdateRoutingControlStateEntriesT&& value) {
45 m_updateRoutingControlStateEntriesHasBeenSet = true;
46 m_updateRoutingControlStateEntries = std::forward<UpdateRoutingControlStateEntriesT>(value);
47 }
48 template <typename UpdateRoutingControlStateEntriesT = Aws::Vector<UpdateRoutingControlStateEntry>>
49 UpdateRoutingControlStatesRequest& WithUpdateRoutingControlStateEntries(UpdateRoutingControlStateEntriesT&& value) {
50 SetUpdateRoutingControlStateEntries(std::forward<UpdateRoutingControlStateEntriesT>(value));
51 return *this;
52 }
53 template <typename UpdateRoutingControlStateEntriesT = UpdateRoutingControlStateEntry>
54 UpdateRoutingControlStatesRequest& AddUpdateRoutingControlStateEntries(UpdateRoutingControlStateEntriesT&& value) {
55 m_updateRoutingControlStateEntriesHasBeenSet = true;
56 m_updateRoutingControlStateEntries.emplace_back(std::forward<UpdateRoutingControlStateEntriesT>(value));
57 return *this;
58 }
60
62
71 inline const Aws::Vector<Aws::String>& GetSafetyRulesToOverride() const { return m_safetyRulesToOverride; }
72 inline bool SafetyRulesToOverrideHasBeenSet() const { return m_safetyRulesToOverrideHasBeenSet; }
73 template <typename SafetyRulesToOverrideT = Aws::Vector<Aws::String>>
74 void SetSafetyRulesToOverride(SafetyRulesToOverrideT&& value) {
75 m_safetyRulesToOverrideHasBeenSet = true;
76 m_safetyRulesToOverride = std::forward<SafetyRulesToOverrideT>(value);
77 }
78 template <typename SafetyRulesToOverrideT = Aws::Vector<Aws::String>>
80 SetSafetyRulesToOverride(std::forward<SafetyRulesToOverrideT>(value));
81 return *this;
82 }
83 template <typename SafetyRulesToOverrideT = Aws::String>
85 m_safetyRulesToOverrideHasBeenSet = true;
86 m_safetyRulesToOverride.emplace_back(std::forward<SafetyRulesToOverrideT>(value));
87 return *this;
88 }
90 private:
91 Aws::Vector<UpdateRoutingControlStateEntry> m_updateRoutingControlStateEntries;
92
93 Aws::Vector<Aws::String> m_safetyRulesToOverride;
94 bool m_updateRoutingControlStateEntriesHasBeenSet = false;
95 bool m_safetyRulesToOverrideHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Route53RecoveryCluster
100} // 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