AWS SDK for C++  1.8.71
AWS SDK for C++
SampleChannelDataRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace IoTAnalytics
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "SampleChannelData"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetChannelName() const{ return m_channelName; }
46 
50  inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
51 
55  inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
56 
60  inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
61 
65  inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
66 
70  inline SampleChannelDataRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
71 
75  inline SampleChannelDataRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
76 
80  inline SampleChannelDataRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
81 
82 
87  inline int GetMaxMessages() const{ return m_maxMessages; }
88 
93  inline bool MaxMessagesHasBeenSet() const { return m_maxMessagesHasBeenSet; }
94 
99  inline void SetMaxMessages(int value) { m_maxMessagesHasBeenSet = true; m_maxMessages = value; }
100 
105  inline SampleChannelDataRequest& WithMaxMessages(int value) { SetMaxMessages(value); return *this;}
106 
107 
111  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
112 
116  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
117 
121  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
122 
126  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
127 
131  inline SampleChannelDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
132 
136  inline SampleChannelDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
137 
138 
142  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
143 
147  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
148 
152  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
153 
157  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
158 
162  inline SampleChannelDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
163 
167  inline SampleChannelDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
168 
169  private:
170 
171  Aws::String m_channelName;
172  bool m_channelNameHasBeenSet;
173 
174  int m_maxMessages;
175  bool m_maxMessagesHasBeenSet;
176 
177  Aws::Utils::DateTime m_startTime;
178  bool m_startTimeHasBeenSet;
179 
180  Aws::Utils::DateTime m_endTime;
181  bool m_endTimeHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace IoTAnalytics
186 } // namespace Aws
#define AWS_IOTANALYTICS_API
SampleChannelDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
virtual const char * GetServiceRequestName() const override
void SetStartTime(const Aws::Utils::DateTime &value)
SampleChannelDataRequest & WithChannelName(Aws::String &&value)
SampleChannelDataRequest & WithChannelName(const Aws::String &value)
SampleChannelDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
SampleChannelDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
SampleChannelDataRequest & WithChannelName(const char *value)
SampleChannelDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SampleChannelDataRequest & WithMaxMessages(int value)