AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchApplyUpdateActionRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ElastiCache
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ELASTICACHE_API BatchApplyUpdateActionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "BatchApplyUpdateAction"; }
32
33 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::Vector<Aws::String>& GetReplicationGroupIds() const { return m_replicationGroupIds; }
45 inline bool ReplicationGroupIdsHasBeenSet() const { return m_replicationGroupIdsHasBeenSet; }
46 template<typename ReplicationGroupIdsT = Aws::Vector<Aws::String>>
47 void SetReplicationGroupIds(ReplicationGroupIdsT&& value) { m_replicationGroupIdsHasBeenSet = true; m_replicationGroupIds = std::forward<ReplicationGroupIdsT>(value); }
48 template<typename ReplicationGroupIdsT = Aws::Vector<Aws::String>>
49 BatchApplyUpdateActionRequest& WithReplicationGroupIds(ReplicationGroupIdsT&& value) { SetReplicationGroupIds(std::forward<ReplicationGroupIdsT>(value)); return *this;}
50 template<typename ReplicationGroupIdsT = Aws::String>
51 BatchApplyUpdateActionRequest& AddReplicationGroupIds(ReplicationGroupIdsT&& value) { m_replicationGroupIdsHasBeenSet = true; m_replicationGroupIds.emplace_back(std::forward<ReplicationGroupIdsT>(value)); return *this; }
53
55
58 inline const Aws::Vector<Aws::String>& GetCacheClusterIds() const { return m_cacheClusterIds; }
59 inline bool CacheClusterIdsHasBeenSet() const { return m_cacheClusterIdsHasBeenSet; }
60 template<typename CacheClusterIdsT = Aws::Vector<Aws::String>>
61 void SetCacheClusterIds(CacheClusterIdsT&& value) { m_cacheClusterIdsHasBeenSet = true; m_cacheClusterIds = std::forward<CacheClusterIdsT>(value); }
62 template<typename CacheClusterIdsT = Aws::Vector<Aws::String>>
63 BatchApplyUpdateActionRequest& WithCacheClusterIds(CacheClusterIdsT&& value) { SetCacheClusterIds(std::forward<CacheClusterIdsT>(value)); return *this;}
64 template<typename CacheClusterIdsT = Aws::String>
65 BatchApplyUpdateActionRequest& AddCacheClusterIds(CacheClusterIdsT&& value) { m_cacheClusterIdsHasBeenSet = true; m_cacheClusterIds.emplace_back(std::forward<CacheClusterIdsT>(value)); return *this; }
67
69
72 inline const Aws::String& GetServiceUpdateName() const { return m_serviceUpdateName; }
73 inline bool ServiceUpdateNameHasBeenSet() const { return m_serviceUpdateNameHasBeenSet; }
74 template<typename ServiceUpdateNameT = Aws::String>
75 void SetServiceUpdateName(ServiceUpdateNameT&& value) { m_serviceUpdateNameHasBeenSet = true; m_serviceUpdateName = std::forward<ServiceUpdateNameT>(value); }
76 template<typename ServiceUpdateNameT = Aws::String>
77 BatchApplyUpdateActionRequest& WithServiceUpdateName(ServiceUpdateNameT&& value) { SetServiceUpdateName(std::forward<ServiceUpdateNameT>(value)); return *this;}
79 private:
80
81 Aws::Vector<Aws::String> m_replicationGroupIds;
82 bool m_replicationGroupIdsHasBeenSet = false;
83
84 Aws::Vector<Aws::String> m_cacheClusterIds;
85 bool m_cacheClusterIdsHasBeenSet = false;
86
87 Aws::String m_serviceUpdateName;
88 bool m_serviceUpdateNameHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace ElastiCache
93} // namespace Aws
BatchApplyUpdateActionRequest & AddCacheClusterIds(CacheClusterIdsT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
BatchApplyUpdateActionRequest & WithServiceUpdateName(ServiceUpdateNameT &&value)
const Aws::Vector< Aws::String > & GetReplicationGroupIds() const
BatchApplyUpdateActionRequest & WithReplicationGroupIds(ReplicationGroupIdsT &&value)
AWS_ELASTICACHE_API BatchApplyUpdateActionRequest()=default
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetCacheClusterIds() const
BatchApplyUpdateActionRequest & WithCacheClusterIds(CacheClusterIdsT &&value)
BatchApplyUpdateActionRequest & AddReplicationGroupIds(ReplicationGroupIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector