AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutChannelPolicyRequest.h
1
6#pragma once
7#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
8#include <aws/mediapackagev2/Mediapackagev2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace mediapackagev2
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_MEDIAPACKAGEV2_API PutChannelPolicyRequest();
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 "PutChannelPolicy"; }
31
32 AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override;
33
34
36
41 inline const Aws::String& GetChannelGroupName() const{ return m_channelGroupName; }
42 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
43 inline void SetChannelGroupName(const Aws::String& value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName = value; }
44 inline void SetChannelGroupName(Aws::String&& value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName = std::move(value); }
45 inline void SetChannelGroupName(const char* value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName.assign(value); }
46 inline PutChannelPolicyRequest& WithChannelGroupName(const Aws::String& value) { SetChannelGroupName(value); return *this;}
47 inline PutChannelPolicyRequest& WithChannelGroupName(Aws::String&& value) { SetChannelGroupName(std::move(value)); return *this;}
48 inline PutChannelPolicyRequest& WithChannelGroupName(const char* value) { SetChannelGroupName(value); return *this;}
50
52
57 inline const Aws::String& GetChannelName() const{ return m_channelName; }
58 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
59 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
60 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
61 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
62 inline PutChannelPolicyRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
63 inline PutChannelPolicyRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
64 inline PutChannelPolicyRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
66
68
71 inline const Aws::String& GetPolicy() const{ return m_policy; }
72 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
73 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
74 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
75 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
76 inline PutChannelPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
77 inline PutChannelPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
78 inline PutChannelPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
80 private:
81
82 Aws::String m_channelGroupName;
83 bool m_channelGroupNameHasBeenSet = false;
84
85 Aws::String m_channelName;
86 bool m_channelNameHasBeenSet = false;
87
88 Aws::String m_policy;
89 bool m_policyHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace mediapackagev2
94} // namespace Aws
PutChannelPolicyRequest & WithChannelName(const Aws::String &value)
PutChannelPolicyRequest & WithChannelName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
PutChannelPolicyRequest & WithChannelGroupName(Aws::String &&value)
PutChannelPolicyRequest & WithPolicy(Aws::String &&value)
PutChannelPolicyRequest & WithPolicy(const Aws::String &value)
PutChannelPolicyRequest & WithPolicy(const char *value)
PutChannelPolicyRequest & WithChannelName(const char *value)
AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override
PutChannelPolicyRequest & WithChannelGroupName(const Aws::String &value)
PutChannelPolicyRequest & WithChannelGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String