/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace MediaTailor { namespace Model { /** */ class GetChannelScheduleRequest : public MediaTailorRequest { public: AWS_MEDIATAILOR_API GetChannelScheduleRequest(); // 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 "GetChannelSchedule"; } AWS_MEDIATAILOR_API Aws::String SerializePayload() const override; AWS_MEDIATAILOR_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the channel associated with this Channel Schedule.

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

The name of the channel associated with this Channel Schedule.

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

The name of the channel associated with this Channel Schedule.

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

The name of the channel associated with this Channel Schedule.

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

The name of the channel associated with this Channel Schedule.

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

The name of the channel associated with this Channel Schedule.

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

The name of the channel associated with this Channel Schedule.

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

The name of the channel associated with this Channel Schedule.

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

The duration in minutes of the channel schedule.

*/ inline const Aws::String& GetDurationMinutes() const{ return m_durationMinutes; } /** *

The duration in minutes of the channel schedule.

*/ inline bool DurationMinutesHasBeenSet() const { return m_durationMinutesHasBeenSet; } /** *

The duration in minutes of the channel schedule.

*/ inline void SetDurationMinutes(const Aws::String& value) { m_durationMinutesHasBeenSet = true; m_durationMinutes = value; } /** *

The duration in minutes of the channel schedule.

*/ inline void SetDurationMinutes(Aws::String&& value) { m_durationMinutesHasBeenSet = true; m_durationMinutes = std::move(value); } /** *

The duration in minutes of the channel schedule.

*/ inline void SetDurationMinutes(const char* value) { m_durationMinutesHasBeenSet = true; m_durationMinutes.assign(value); } /** *

The duration in minutes of the channel schedule.

*/ inline GetChannelScheduleRequest& WithDurationMinutes(const Aws::String& value) { SetDurationMinutes(value); return *this;} /** *

The duration in minutes of the channel schedule.

*/ inline GetChannelScheduleRequest& WithDurationMinutes(Aws::String&& value) { SetDurationMinutes(std::move(value)); return *this;} /** *

The duration in minutes of the channel schedule.

*/ inline GetChannelScheduleRequest& WithDurationMinutes(const char* value) { SetDurationMinutes(value); return *this;} /** *

The maximum number of channel schedules that you want MediaTailor to return * in response to the current request. If there are more than * MaxResults channel schedules, use the value of * NextToken in the response to get the next page of results.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of channel schedules that you want MediaTailor to return * in response to the current request. If there are more than * MaxResults channel schedules, use the value of * NextToken in the response to get the next page of results.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of channel schedules that you want MediaTailor to return * in response to the current request. If there are more than * MaxResults channel schedules, use the value of * NextToken in the response to get the next page of results.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of channel schedules that you want MediaTailor to return * in response to the current request. If there are more than * MaxResults channel schedules, use the value of * NextToken in the response to get the next page of results.

*/ inline GetChannelScheduleRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

(Optional) If the playback configuration has more than * MaxResults channel schedules, use NextToken to get the * second and subsequent pages of results.

For the first * GetChannelScheduleRequest request, omit this value.

For the * second and subsequent requests, get the value of NextToken from the * previous response and specify that value for NextToken in the * request.

If the previous response didn't include a NextToken * element, there are no more channel schedules to get.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

(Optional) If the playback configuration has more than * MaxResults channel schedules, use NextToken to get the * second and subsequent pages of results.

For the first * GetChannelScheduleRequest request, omit this value.

For the * second and subsequent requests, get the value of NextToken from the * previous response and specify that value for NextToken in the * request.

If the previous response didn't include a NextToken * element, there are no more channel schedules to get.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

(Optional) If the playback configuration has more than * MaxResults channel schedules, use NextToken to get the * second and subsequent pages of results.

For the first * GetChannelScheduleRequest request, omit this value.

For the * second and subsequent requests, get the value of NextToken from the * previous response and specify that value for NextToken in the * request.

If the previous response didn't include a NextToken * element, there are no more channel schedules to get.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

(Optional) If the playback configuration has more than * MaxResults channel schedules, use NextToken to get the * second and subsequent pages of results.

For the first * GetChannelScheduleRequest request, omit this value.

For the * second and subsequent requests, get the value of NextToken from the * previous response and specify that value for NextToken in the * request.

If the previous response didn't include a NextToken * element, there are no more channel schedules to get.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

(Optional) If the playback configuration has more than * MaxResults channel schedules, use NextToken to get the * second and subsequent pages of results.

For the first * GetChannelScheduleRequest request, omit this value.

For the * second and subsequent requests, get the value of NextToken from the * previous response and specify that value for NextToken in the * request.

If the previous response didn't include a NextToken * element, there are no more channel schedules to get.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

(Optional) If the playback configuration has more than * MaxResults channel schedules, use NextToken to get the * second and subsequent pages of results.

For the first * GetChannelScheduleRequest request, omit this value.

For the * second and subsequent requests, get the value of NextToken from the * previous response and specify that value for NextToken in the * request.

If the previous response didn't include a NextToken * element, there are no more channel schedules to get.

*/ inline GetChannelScheduleRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

(Optional) If the playback configuration has more than * MaxResults channel schedules, use NextToken to get the * second and subsequent pages of results.

For the first * GetChannelScheduleRequest request, omit this value.

For the * second and subsequent requests, get the value of NextToken from the * previous response and specify that value for NextToken in the * request.

If the previous response didn't include a NextToken * element, there are no more channel schedules to get.

*/ inline GetChannelScheduleRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

(Optional) If the playback configuration has more than * MaxResults channel schedules, use NextToken to get the * second and subsequent pages of results.

For the first * GetChannelScheduleRequest request, omit this value.

For the * second and subsequent requests, get the value of NextToken from the * previous response and specify that value for NextToken in the * request.

If the previous response didn't include a NextToken * element, there are no more channel schedules to get.

*/ inline GetChannelScheduleRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_channelName; bool m_channelNameHasBeenSet = false; Aws::String m_durationMinutes; bool m_durationMinutesHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws