AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeServiceUpdatesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElastiCache
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "DescribeServiceUpdates"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetServiceUpdateName() const{ return m_serviceUpdateName; }
45 
49  inline bool ServiceUpdateNameHasBeenSet() const { return m_serviceUpdateNameHasBeenSet; }
50 
54  inline void SetServiceUpdateName(const Aws::String& value) { m_serviceUpdateNameHasBeenSet = true; m_serviceUpdateName = value; }
55 
59  inline void SetServiceUpdateName(Aws::String&& value) { m_serviceUpdateNameHasBeenSet = true; m_serviceUpdateName = std::move(value); }
60 
64  inline void SetServiceUpdateName(const char* value) { m_serviceUpdateNameHasBeenSet = true; m_serviceUpdateName.assign(value); }
65 
69  inline DescribeServiceUpdatesRequest& WithServiceUpdateName(const Aws::String& value) { SetServiceUpdateName(value); return *this;}
70 
74  inline DescribeServiceUpdatesRequest& WithServiceUpdateName(Aws::String&& value) { SetServiceUpdateName(std::move(value)); return *this;}
75 
79  inline DescribeServiceUpdatesRequest& WithServiceUpdateName(const char* value) { SetServiceUpdateName(value); return *this;}
80 
81 
85  inline const Aws::Vector<ServiceUpdateStatus>& GetServiceUpdateStatus() const{ return m_serviceUpdateStatus; }
86 
90  inline bool ServiceUpdateStatusHasBeenSet() const { return m_serviceUpdateStatusHasBeenSet; }
91 
95  inline void SetServiceUpdateStatus(const Aws::Vector<ServiceUpdateStatus>& value) { m_serviceUpdateStatusHasBeenSet = true; m_serviceUpdateStatus = value; }
96 
100  inline void SetServiceUpdateStatus(Aws::Vector<ServiceUpdateStatus>&& value) { m_serviceUpdateStatusHasBeenSet = true; m_serviceUpdateStatus = std::move(value); }
101 
105  inline DescribeServiceUpdatesRequest& WithServiceUpdateStatus(const Aws::Vector<ServiceUpdateStatus>& value) { SetServiceUpdateStatus(value); return *this;}
106 
110  inline DescribeServiceUpdatesRequest& WithServiceUpdateStatus(Aws::Vector<ServiceUpdateStatus>&& value) { SetServiceUpdateStatus(std::move(value)); return *this;}
111 
115  inline DescribeServiceUpdatesRequest& AddServiceUpdateStatus(const ServiceUpdateStatus& value) { m_serviceUpdateStatusHasBeenSet = true; m_serviceUpdateStatus.push_back(value); return *this; }
116 
120  inline DescribeServiceUpdatesRequest& AddServiceUpdateStatus(ServiceUpdateStatus&& value) { m_serviceUpdateStatusHasBeenSet = true; m_serviceUpdateStatus.push_back(std::move(value)); return *this; }
121 
122 
126  inline int GetMaxRecords() const{ return m_maxRecords; }
127 
131  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
132 
136  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
137 
141  inline DescribeServiceUpdatesRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
142 
143 
150  inline const Aws::String& GetMarker() const{ return m_marker; }
151 
158  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
159 
166  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
167 
174  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
175 
182  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
183 
190  inline DescribeServiceUpdatesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
191 
198  inline DescribeServiceUpdatesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
199 
206  inline DescribeServiceUpdatesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
207 
208  private:
209 
210  Aws::String m_serviceUpdateName;
211  bool m_serviceUpdateNameHasBeenSet;
212 
213  Aws::Vector<ServiceUpdateStatus> m_serviceUpdateStatus;
214  bool m_serviceUpdateStatusHasBeenSet;
215 
216  int m_maxRecords;
217  bool m_maxRecordsHasBeenSet;
218 
219  Aws::String m_marker;
220  bool m_markerHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace ElastiCache
225 } // namespace Aws
const Aws::Vector< ServiceUpdateStatus > & GetServiceUpdateStatus() const
void SetServiceUpdateStatus(Aws::Vector< ServiceUpdateStatus > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeServiceUpdatesRequest & WithMarker(Aws::String &&value)
DescribeServiceUpdatesRequest & WithServiceUpdateName(Aws::String &&value)
DescribeServiceUpdatesRequest & WithServiceUpdateName(const char *value)
DescribeServiceUpdatesRequest & WithMarker(const Aws::String &value)
DescribeServiceUpdatesRequest & AddServiceUpdateStatus(const ServiceUpdateStatus &value)
DescribeServiceUpdatesRequest & WithMarker(const char *value)
DescribeServiceUpdatesRequest & WithServiceUpdateStatus(Aws::Vector< ServiceUpdateStatus > &&value)
void SetServiceUpdateStatus(const Aws::Vector< ServiceUpdateStatus > &value)
DescribeServiceUpdatesRequest & WithServiceUpdateName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeServiceUpdatesRequest & AddServiceUpdateStatus(ServiceUpdateStatus &&value)
#define AWS_ELASTICACHE_API
DescribeServiceUpdatesRequest & WithServiceUpdateStatus(const Aws::Vector< ServiceUpdateStatus > &value)