AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
BatchUpdateClusterRequest.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/memorydb/MemoryDBRequest.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/ServiceUpdateRequest.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MemoryDB {
17namespace Model {
18
22 public:
23 AWS_MEMORYDB_API BatchUpdateClusterRequest() = 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 "BatchUpdateCluster"; }
30
31 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::Vector<Aws::String>& GetClusterNames() const { return m_clusterNames; }
40 inline bool ClusterNamesHasBeenSet() const { return m_clusterNamesHasBeenSet; }
41 template <typename ClusterNamesT = Aws::Vector<Aws::String>>
42 void SetClusterNames(ClusterNamesT&& value) {
43 m_clusterNamesHasBeenSet = true;
44 m_clusterNames = std::forward<ClusterNamesT>(value);
45 }
46 template <typename ClusterNamesT = Aws::Vector<Aws::String>>
48 SetClusterNames(std::forward<ClusterNamesT>(value));
49 return *this;
50 }
51 template <typename ClusterNamesT = Aws::String>
53 m_clusterNamesHasBeenSet = true;
54 m_clusterNames.emplace_back(std::forward<ClusterNamesT>(value));
55 return *this;
56 }
58
60
63 inline const ServiceUpdateRequest& GetServiceUpdate() const { return m_serviceUpdate; }
64 inline bool ServiceUpdateHasBeenSet() const { return m_serviceUpdateHasBeenSet; }
65 template <typename ServiceUpdateT = ServiceUpdateRequest>
66 void SetServiceUpdate(ServiceUpdateT&& value) {
67 m_serviceUpdateHasBeenSet = true;
68 m_serviceUpdate = std::forward<ServiceUpdateT>(value);
69 }
70 template <typename ServiceUpdateT = ServiceUpdateRequest>
72 SetServiceUpdate(std::forward<ServiceUpdateT>(value));
73 return *this;
74 }
76 private:
77 Aws::Vector<Aws::String> m_clusterNames;
78
79 ServiceUpdateRequest m_serviceUpdate;
80 bool m_clusterNamesHasBeenSet = false;
81 bool m_serviceUpdateHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace MemoryDB
86} // namespace Aws
BatchUpdateClusterRequest & AddClusterNames(ClusterNamesT &&value)
BatchUpdateClusterRequest & WithClusterNames(ClusterNamesT &&value)
AWS_MEMORYDB_API Aws::String SerializePayload() const override
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MEMORYDB_API BatchUpdateClusterRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetClusterNames() const
const ServiceUpdateRequest & GetServiceUpdate() const
BatchUpdateClusterRequest & WithServiceUpdate(ServiceUpdateT &&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