AWS SDK for C++  1.9.104
AWS SDK for C++
StartChannelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MediaTailor
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "StartChannel"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetChannelName() const{ return m_channelName; }
39 
43  inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
44 
48  inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
49 
53  inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
54 
58  inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
59 
63  inline StartChannelRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
64 
68  inline StartChannelRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
69 
73  inline StartChannelRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
74 
75  private:
76 
77  Aws::String m_channelName;
78  bool m_channelNameHasBeenSet;
79  };
80 
81 } // namespace Model
82 } // namespace MediaTailor
83 } // namespace Aws
AWS_MEDIATAILOR_API
#define AWS_MEDIATAILOR_API
Definition: MediaTailor_EXPORTS.h:28
Aws::MediaTailor::Model::StartChannelRequest::WithChannelName
StartChannelRequest & WithChannelName(const char *value)
Definition: StartChannelRequest.h:73
Aws::MediaTailor::Model::StartChannelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartChannelRequest.h:30
Aws::MediaTailor::Model::StartChannelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MediaTailor::Model::StartChannelRequest::WithChannelName
StartChannelRequest & WithChannelName(Aws::String &&value)
Definition: StartChannelRequest.h:68
Aws::MediaTailor::Model::StartChannelRequest::SetChannelName
void SetChannelName(const Aws::String &value)
Definition: StartChannelRequest.h:48
Aws::MediaTailor::Model::StartChannelRequest::ChannelNameHasBeenSet
bool ChannelNameHasBeenSet() const
Definition: StartChannelRequest.h:43
Aws::MediaTailor::Model::StartChannelRequest::GetChannelName
const Aws::String & GetChannelName() const
Definition: StartChannelRequest.h:38
Aws::MediaTailor::Model::StartChannelRequest::WithChannelName
StartChannelRequest & WithChannelName(const Aws::String &value)
Definition: StartChannelRequest.h:63
Aws::MediaTailor::MediaTailorRequest
Definition: MediaTailorRequest.h:17
AWSString.h
MediaTailorRequest.h
MediaTailor_EXPORTS.h
Aws::MediaTailor::Model::StartChannelRequest::SetChannelName
void SetChannelName(Aws::String &&value)
Definition: StartChannelRequest.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaTailor::Model::StartChannelRequest::SetChannelName
void SetChannelName(const char *value)
Definition: StartChannelRequest.h:58
Aws::MediaTailor::Model::StartChannelRequest::StartChannelRequest
StartChannelRequest()
Aws::MediaTailor::Model::StartChannelRequest
Definition: StartChannelRequest.h:22