AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUpdateRoutingControlStateEntries(const Aws::Vector<UpdateRoutingControlStateEntry>& value) { m_updateRoutingControlStateEntriesHasBeenSet = true; m_updateRoutingControlStateEntries = value; }
46 inline void SetUpdateRoutingControlStateEntries(Aws::Vector<UpdateRoutingControlStateEntry>&& value) { m_updateRoutingControlStateEntriesHasBeenSet = true; m_updateRoutingControlStateEntries = std::move(value); }
49 inline UpdateRoutingControlStatesRequest& AddUpdateRoutingControlStateEntries(const UpdateRoutingControlStateEntry& value) { m_updateRoutingControlStateEntriesHasBeenSet = true; m_updateRoutingControlStateEntries.push_back(value); return *this; }
50 inline UpdateRoutingControlStatesRequest& AddUpdateRoutingControlStateEntries(UpdateRoutingControlStateEntry&& value) { m_updateRoutingControlStateEntriesHasBeenSet = true; m_updateRoutingControlStateEntries.push_back(std::move(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 inline void SetSafetyRulesToOverride(const Aws::Vector<Aws::String>& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride = value; }
66 inline void SetSafetyRulesToOverride(Aws::Vector<Aws::String>&& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride = std::move(value); }
69 inline UpdateRoutingControlStatesRequest& AddSafetyRulesToOverride(const Aws::String& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride.push_back(value); return *this; }
70 inline UpdateRoutingControlStatesRequest& AddSafetyRulesToOverride(Aws::String&& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride.push_back(std::move(value)); return *this; }
71 inline UpdateRoutingControlStatesRequest& AddSafetyRulesToOverride(const char* value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride.push_back(value); return *this; }
73 private:
74
75 Aws::Vector<UpdateRoutingControlStateEntry> m_updateRoutingControlStateEntries;
76 bool m_updateRoutingControlStateEntriesHasBeenSet = false;
77
78 Aws::Vector<Aws::String> m_safetyRulesToOverride;
79 bool m_safetyRulesToOverrideHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Route53RecoveryCluster
84} // namespace Aws
UpdateRoutingControlStatesRequest & AddSafetyRulesToOverride(const Aws::String &value)
UpdateRoutingControlStatesRequest & WithSafetyRulesToOverride(Aws::Vector< Aws::String > &&value)
UpdateRoutingControlStatesRequest & AddSafetyRulesToOverride(Aws::String &&value)
UpdateRoutingControlStatesRequest & AddUpdateRoutingControlStateEntries(const UpdateRoutingControlStateEntry &value)
UpdateRoutingControlStatesRequest & WithSafetyRulesToOverride(const Aws::Vector< Aws::String > &value)
AWS_ROUTE53RECOVERYCLUSTER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ROUTE53RECOVERYCLUSTER_API Aws::String SerializePayload() const override
UpdateRoutingControlStatesRequest & WithUpdateRoutingControlStateEntries(Aws::Vector< UpdateRoutingControlStateEntry > &&value)
UpdateRoutingControlStatesRequest & AddUpdateRoutingControlStateEntries(UpdateRoutingControlStateEntry &&value)
UpdateRoutingControlStatesRequest & WithUpdateRoutingControlStateEntries(const Aws::Vector< UpdateRoutingControlStateEntry > &value)
void SetUpdateRoutingControlStateEntries(const Aws::Vector< UpdateRoutingControlStateEntry > &value)
void SetUpdateRoutingControlStateEntries(Aws::Vector< UpdateRoutingControlStateEntry > &&value)
UpdateRoutingControlStatesRequest & AddSafetyRulesToOverride(const char *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