AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SampleChannelDataRequest.h
1
6#pragma once
7#include <aws/iotanalytics/IoTAnalytics_EXPORTS.h>
8#include <aws/iotanalytics/IoTAnalyticsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace IoTAnalytics
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IOTANALYTICS_API SampleChannelDataRequest();
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_IOTANALYTICS_API Aws::String SerializePayload() const override;
38
39 AWS_IOTANALYTICS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::String& GetChannelName() const{ return m_channelName; }
47 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
48 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
49 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
50 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
51 inline SampleChannelDataRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
52 inline SampleChannelDataRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
53 inline SampleChannelDataRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
55
57
61 inline int GetMaxMessages() const{ return m_maxMessages; }
62 inline bool MaxMessagesHasBeenSet() const { return m_maxMessagesHasBeenSet; }
63 inline void SetMaxMessages(int value) { m_maxMessagesHasBeenSet = true; m_maxMessages = value; }
64 inline SampleChannelDataRequest& WithMaxMessages(int value) { SetMaxMessages(value); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
72 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
73 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
74 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
75 inline SampleChannelDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
76 inline SampleChannelDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
84 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
85 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
86 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
87 inline SampleChannelDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
88 inline SampleChannelDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
90 private:
91
92 Aws::String m_channelName;
93 bool m_channelNameHasBeenSet = false;
94
95 int m_maxMessages;
96 bool m_maxMessagesHasBeenSet = false;
97
98 Aws::Utils::DateTime m_startTime;
99 bool m_startTimeHasBeenSet = false;
100
101 Aws::Utils::DateTime m_endTime;
102 bool m_endTimeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace IoTAnalytics
107} // namespace Aws
AWS_IOTANALYTICS_API Aws::String SerializePayload() const override
SampleChannelDataRequest & WithChannelName(const char *value)
virtual const char * GetServiceRequestName() const override
SampleChannelDataRequest & WithMaxMessages(int value)
void SetStartTime(const Aws::Utils::DateTime &value)
SampleChannelDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
SampleChannelDataRequest & WithChannelName(const Aws::String &value)
void SetEndTime(const Aws::Utils::DateTime &value)
AWS_IOTANALYTICS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SampleChannelDataRequest & WithChannelName(Aws::String &&value)
SampleChannelDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
SampleChannelDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
SampleChannelDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String