AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PurchaseReservedCacheNodesOfferingRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElastiCache
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_ELASTICACHE_API PurchaseReservedCacheNodesOfferingRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PurchaseReservedCacheNodesOffering"; }
37
38 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
50 inline const Aws::String& GetReservedCacheNodesOfferingId() const { return m_reservedCacheNodesOfferingId; }
51 inline bool ReservedCacheNodesOfferingIdHasBeenSet() const { return m_reservedCacheNodesOfferingIdHasBeenSet; }
52 template<typename ReservedCacheNodesOfferingIdT = Aws::String>
53 void SetReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT&& value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId = std::forward<ReservedCacheNodesOfferingIdT>(value); }
54 template<typename ReservedCacheNodesOfferingIdT = Aws::String>
55 PurchaseReservedCacheNodesOfferingRequest& WithReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT&& value) { SetReservedCacheNodesOfferingId(std::forward<ReservedCacheNodesOfferingIdT>(value)); return *this;}
57
59
66 inline const Aws::String& GetReservedCacheNodeId() const { return m_reservedCacheNodeId; }
67 inline bool ReservedCacheNodeIdHasBeenSet() const { return m_reservedCacheNodeIdHasBeenSet; }
68 template<typename ReservedCacheNodeIdT = Aws::String>
69 void SetReservedCacheNodeId(ReservedCacheNodeIdT&& value) { m_reservedCacheNodeIdHasBeenSet = true; m_reservedCacheNodeId = std::forward<ReservedCacheNodeIdT>(value); }
70 template<typename ReservedCacheNodeIdT = Aws::String>
71 PurchaseReservedCacheNodesOfferingRequest& WithReservedCacheNodeId(ReservedCacheNodeIdT&& value) { SetReservedCacheNodeId(std::forward<ReservedCacheNodeIdT>(value)); return *this;}
73
75
79 inline int GetCacheNodeCount() const { return m_cacheNodeCount; }
80 inline bool CacheNodeCountHasBeenSet() const { return m_cacheNodeCountHasBeenSet; }
81 inline void SetCacheNodeCount(int value) { m_cacheNodeCountHasBeenSet = true; m_cacheNodeCount = value; }
84
86
90 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template<typename TagsT = Aws::Vector<Tag>>
93 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
94 template<typename TagsT = Aws::Vector<Tag>>
95 PurchaseReservedCacheNodesOfferingRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
96 template<typename TagsT = Tag>
97 PurchaseReservedCacheNodesOfferingRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
99 private:
100
101 Aws::String m_reservedCacheNodesOfferingId;
102 bool m_reservedCacheNodesOfferingIdHasBeenSet = false;
103
104 Aws::String m_reservedCacheNodeId;
105 bool m_reservedCacheNodeIdHasBeenSet = false;
106
107 int m_cacheNodeCount{0};
108 bool m_cacheNodeCountHasBeenSet = false;
109
110 Aws::Vector<Tag> m_tags;
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace ElastiCache
116} // namespace Aws
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PurchaseReservedCacheNodesOfferingRequest & WithReservedCacheNodesOfferingId(ReservedCacheNodesOfferingIdT &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
PurchaseReservedCacheNodesOfferingRequest & WithReservedCacheNodeId(ReservedCacheNodeIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector