AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ResetParameterGroupRequest.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
12#include <utility>
13
14namespace Aws {
15namespace MemoryDB {
16namespace Model {
17
21 public:
22 AWS_MEMORYDB_API ResetParameterGroupRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ResetParameterGroup"; }
29
30 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetParameterGroupName() const { return m_parameterGroupName; }
39 inline bool ParameterGroupNameHasBeenSet() const { return m_parameterGroupNameHasBeenSet; }
40 template <typename ParameterGroupNameT = Aws::String>
41 void SetParameterGroupName(ParameterGroupNameT&& value) {
42 m_parameterGroupNameHasBeenSet = true;
43 m_parameterGroupName = std::forward<ParameterGroupNameT>(value);
44 }
45 template <typename ParameterGroupNameT = Aws::String>
46 ResetParameterGroupRequest& WithParameterGroupName(ParameterGroupNameT&& value) {
47 SetParameterGroupName(std::forward<ParameterGroupNameT>(value));
48 return *this;
49 }
51
53
58 inline bool GetAllParameters() const { return m_allParameters; }
59 inline bool AllParametersHasBeenSet() const { return m_allParametersHasBeenSet; }
60 inline void SetAllParameters(bool value) {
61 m_allParametersHasBeenSet = true;
62 m_allParameters = value;
63 }
65 SetAllParameters(value);
66 return *this;
67 }
69
71
76 inline const Aws::Vector<Aws::String>& GetParameterNames() const { return m_parameterNames; }
77 inline bool ParameterNamesHasBeenSet() const { return m_parameterNamesHasBeenSet; }
78 template <typename ParameterNamesT = Aws::Vector<Aws::String>>
79 void SetParameterNames(ParameterNamesT&& value) {
80 m_parameterNamesHasBeenSet = true;
81 m_parameterNames = std::forward<ParameterNamesT>(value);
82 }
83 template <typename ParameterNamesT = Aws::Vector<Aws::String>>
85 SetParameterNames(std::forward<ParameterNamesT>(value));
86 return *this;
87 }
88 template <typename ParameterNamesT = Aws::String>
90 m_parameterNamesHasBeenSet = true;
91 m_parameterNames.emplace_back(std::forward<ParameterNamesT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_parameterGroupName;
97
98 bool m_allParameters{false};
99
100 Aws::Vector<Aws::String> m_parameterNames;
101 bool m_parameterGroupNameHasBeenSet = false;
102 bool m_allParametersHasBeenSet = false;
103 bool m_parameterNamesHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace MemoryDB
108} // namespace Aws
ResetParameterGroupRequest & WithParameterGroupName(ParameterGroupNameT &&value)
ResetParameterGroupRequest & WithParameterNames(ParameterNamesT &&value)
AWS_MEMORYDB_API Aws::String SerializePayload() const override
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetParameterNames() const
ResetParameterGroupRequest & AddParameterNames(ParameterNamesT &&value)
virtual const char * GetServiceRequestName() const override
ResetParameterGroupRequest & WithAllParameters(bool value)
AWS_MEMORYDB_API ResetParameterGroupRequest()=default
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