1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/events/CloudWatchEvents_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSVector.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/events/model/Replay.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22   class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace CloudWatchEvents
26 {
27 namespace Model
28 {
29   class AWS_CLOUDWATCHEVENTS_API ListReplaysResult
30   {
31   public:
32     ListReplaysResult();
33     ListReplaysResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     ListReplaysResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>An array of <code>Replay</code> objects that contain information about the
39      * replay.</p>
40      */
GetReplays()41     inline const Aws::Vector<Replay>& GetReplays() const{ return m_replays; }
42 
43     /**
44      * <p>An array of <code>Replay</code> objects that contain information about the
45      * replay.</p>
46      */
SetReplays(const Aws::Vector<Replay> & value)47     inline void SetReplays(const Aws::Vector<Replay>& value) { m_replays = value; }
48 
49     /**
50      * <p>An array of <code>Replay</code> objects that contain information about the
51      * replay.</p>
52      */
SetReplays(Aws::Vector<Replay> && value)53     inline void SetReplays(Aws::Vector<Replay>&& value) { m_replays = std::move(value); }
54 
55     /**
56      * <p>An array of <code>Replay</code> objects that contain information about the
57      * replay.</p>
58      */
WithReplays(const Aws::Vector<Replay> & value)59     inline ListReplaysResult& WithReplays(const Aws::Vector<Replay>& value) { SetReplays(value); return *this;}
60 
61     /**
62      * <p>An array of <code>Replay</code> objects that contain information about the
63      * replay.</p>
64      */
WithReplays(Aws::Vector<Replay> && value)65     inline ListReplaysResult& WithReplays(Aws::Vector<Replay>&& value) { SetReplays(std::move(value)); return *this;}
66 
67     /**
68      * <p>An array of <code>Replay</code> objects that contain information about the
69      * replay.</p>
70      */
AddReplays(const Replay & value)71     inline ListReplaysResult& AddReplays(const Replay& value) { m_replays.push_back(value); return *this; }
72 
73     /**
74      * <p>An array of <code>Replay</code> objects that contain information about the
75      * replay.</p>
76      */
AddReplays(Replay && value)77     inline ListReplaysResult& AddReplays(Replay&& value) { m_replays.push_back(std::move(value)); return *this; }
78 
79 
80     /**
81      * <p>The token returned by a previous call to retrieve the next set of
82      * results.</p>
83      */
GetNextToken()84     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
86     /**
87      * <p>The token returned by a previous call to retrieve the next set of
88      * results.</p>
89      */
SetNextToken(const Aws::String & value)90     inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
91 
92     /**
93      * <p>The token returned by a previous call to retrieve the next set of
94      * results.</p>
95      */
SetNextToken(Aws::String && value)96     inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
97 
98     /**
99      * <p>The token returned by a previous call to retrieve the next set of
100      * results.</p>
101      */
SetNextToken(const char * value)102     inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
103 
104     /**
105      * <p>The token returned by a previous call to retrieve the next set of
106      * results.</p>
107      */
WithNextToken(const Aws::String & value)108     inline ListReplaysResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 
110     /**
111      * <p>The token returned by a previous call to retrieve the next set of
112      * results.</p>
113      */
WithNextToken(Aws::String && value)114     inline ListReplaysResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
115 
116     /**
117      * <p>The token returned by a previous call to retrieve the next set of
118      * results.</p>
119      */
WithNextToken(const char * value)120     inline ListReplaysResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122   private:
123 
124     Aws::Vector<Replay> m_replays;
125 
126     Aws::String m_nextToken;
127   };
128 
129 } // namespace Model
130 } // namespace CloudWatchEvents
131 } // namespace Aws
132