AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutOriginEndpointPolicyRequest.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 PutOriginEndpointPolicyRequest();
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 "PutOriginEndpointPolicy"; }
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); }
47 inline PutOriginEndpointPolicyRequest& WithChannelGroupName(Aws::String&& value) { SetChannelGroupName(std::move(value)); return *this;}
48 inline PutOriginEndpointPolicyRequest& 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 PutOriginEndpointPolicyRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
63 inline PutOriginEndpointPolicyRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
64 inline PutOriginEndpointPolicyRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
66
68
73 inline const Aws::String& GetOriginEndpointName() const{ return m_originEndpointName; }
74 inline bool OriginEndpointNameHasBeenSet() const { return m_originEndpointNameHasBeenSet; }
75 inline void SetOriginEndpointName(const Aws::String& value) { m_originEndpointNameHasBeenSet = true; m_originEndpointName = value; }
76 inline void SetOriginEndpointName(Aws::String&& value) { m_originEndpointNameHasBeenSet = true; m_originEndpointName = std::move(value); }
77 inline void SetOriginEndpointName(const char* value) { m_originEndpointNameHasBeenSet = true; m_originEndpointName.assign(value); }
80 inline PutOriginEndpointPolicyRequest& WithOriginEndpointName(const char* value) { SetOriginEndpointName(value); return *this;}
82
84
87 inline const Aws::String& GetPolicy() const{ return m_policy; }
88 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
89 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
90 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
91 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
92 inline PutOriginEndpointPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
93 inline PutOriginEndpointPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
94 inline PutOriginEndpointPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
96 private:
97
98 Aws::String m_channelGroupName;
99 bool m_channelGroupNameHasBeenSet = false;
100
101 Aws::String m_channelName;
102 bool m_channelNameHasBeenSet = false;
103
104 Aws::String m_originEndpointName;
105 bool m_originEndpointNameHasBeenSet = false;
106
107 Aws::String m_policy;
108 bool m_policyHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace mediapackagev2
113} // namespace Aws
PutOriginEndpointPolicyRequest & WithChannelName(Aws::String &&value)
PutOriginEndpointPolicyRequest & WithChannelGroupName(Aws::String &&value)
PutOriginEndpointPolicyRequest & WithChannelGroupName(const char *value)
PutOriginEndpointPolicyRequest & WithPolicy(Aws::String &&value)
AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override
PutOriginEndpointPolicyRequest & WithChannelName(const char *value)
PutOriginEndpointPolicyRequest & WithOriginEndpointName(const Aws::String &value)
PutOriginEndpointPolicyRequest & WithPolicy(const char *value)
PutOriginEndpointPolicyRequest & WithOriginEndpointName(Aws::String &&value)
PutOriginEndpointPolicyRequest & WithPolicy(const Aws::String &value)
PutOriginEndpointPolicyRequest & WithChannelGroupName(const Aws::String &value)
PutOriginEndpointPolicyRequest & WithOriginEndpointName(const char *value)
PutOriginEndpointPolicyRequest & WithChannelName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String