/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace IoTAnalytics { namespace Model { /** */ class AWS_IOTANALYTICS_API SampleChannelDataRequest : public IoTAnalyticsRequest { public: SampleChannelDataRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SampleChannelData"; } Aws::String SerializePayload() const override; void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the channel whose message samples are retrieved.

*/ inline const Aws::String& GetChannelName() const{ return m_channelName; } /** *

The name of the channel whose message samples are retrieved.

*/ inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; } /** *

The name of the channel whose message samples are retrieved.

*/ inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; } /** *

The name of the channel whose message samples are retrieved.

*/ inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); } /** *

The name of the channel whose message samples are retrieved.

*/ inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); } /** *

The name of the channel whose message samples are retrieved.

*/ inline SampleChannelDataRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;} /** *

The name of the channel whose message samples are retrieved.

*/ inline SampleChannelDataRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;} /** *

The name of the channel whose message samples are retrieved.

*/ inline SampleChannelDataRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;} /** *

The number of sample messages to be retrieved. The limit is 10, the default * is also 10.

*/ inline int GetMaxMessages() const{ return m_maxMessages; } /** *

The number of sample messages to be retrieved. The limit is 10, the default * is also 10.

*/ inline bool MaxMessagesHasBeenSet() const { return m_maxMessagesHasBeenSet; } /** *

The number of sample messages to be retrieved. The limit is 10, the default * is also 10.

*/ inline void SetMaxMessages(int value) { m_maxMessagesHasBeenSet = true; m_maxMessages = value; } /** *

The number of sample messages to be retrieved. The limit is 10, the default * is also 10.

*/ inline SampleChannelDataRequest& WithMaxMessages(int value) { SetMaxMessages(value); return *this;} /** *

The start of the time window from which sample messages are retrieved.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start of the time window from which sample messages are retrieved.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start of the time window from which sample messages are retrieved.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start of the time window from which sample messages are retrieved.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start of the time window from which sample messages are retrieved.

*/ inline SampleChannelDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start of the time window from which sample messages are retrieved.

*/ inline SampleChannelDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The end of the time window from which sample messages are retrieved.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end of the time window from which sample messages are retrieved.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end of the time window from which sample messages are retrieved.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end of the time window from which sample messages are retrieved.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end of the time window from which sample messages are retrieved.

*/ inline SampleChannelDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end of the time window from which sample messages are retrieved.

*/ inline SampleChannelDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} private: Aws::String m_channelName; bool m_channelNameHasBeenSet; int m_maxMessages; bool m_maxMessagesHasBeenSet; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws