AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
GetChannelPolicyResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace mediapackagev2 {
23namespace Model {
25 public:
26 AWS_MEDIAPACKAGEV2_API GetChannelPolicyResult() = default;
29
31
36 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
37 template <typename ChannelGroupNameT = Aws::String>
38 void SetChannelGroupName(ChannelGroupNameT&& value) {
39 m_channelGroupNameHasBeenSet = true;
40 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
41 }
42 template <typename ChannelGroupNameT = Aws::String>
43 GetChannelPolicyResult& WithChannelGroupName(ChannelGroupNameT&& value) {
44 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::String& GetChannelName() const { return m_channelName; }
56 template <typename ChannelNameT = Aws::String>
57 void SetChannelName(ChannelNameT&& value) {
58 m_channelNameHasBeenSet = true;
59 m_channelName = std::forward<ChannelNameT>(value);
60 }
61 template <typename ChannelNameT = Aws::String>
62 GetChannelPolicyResult& WithChannelName(ChannelNameT&& value) {
63 SetChannelName(std::forward<ChannelNameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetPolicy() const { return m_policy; }
73 template <typename PolicyT = Aws::String>
74 void SetPolicy(PolicyT&& value) {
75 m_policyHasBeenSet = true;
76 m_policy = std::forward<PolicyT>(value);
77 }
78 template <typename PolicyT = Aws::String>
80 SetPolicy(std::forward<PolicyT>(value));
81 return *this;
82 }
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template <typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) {
90 m_requestIdHasBeenSet = true;
91 m_requestId = std::forward<RequestIdT>(value);
92 }
93 template <typename RequestIdT = Aws::String>
95 SetRequestId(std::forward<RequestIdT>(value));
96 return *this;
97 }
99 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
100
101 private:
102 Aws::String m_channelGroupName;
103
104 Aws::String m_channelName;
105
106 Aws::String m_policy;
107
108 Aws::String m_requestId;
109 Aws::Http::HttpResponseCode m_HttpResponseCode;
110 bool m_channelGroupNameHasBeenSet = false;
111 bool m_channelNameHasBeenSet = false;
112 bool m_policyHasBeenSet = false;
113 bool m_requestIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace mediapackagev2
118} // namespace Aws
GetChannelPolicyResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_MEDIAPACKAGEV2_API GetChannelPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MEDIAPACKAGEV2_API GetChannelPolicyResult()=default
GetChannelPolicyResult & WithPolicy(PolicyT &&value)
AWS_MEDIAPACKAGEV2_API GetChannelPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetChannelPolicyResult & WithChannelGroupName(ChannelGroupNameT &&value)
GetChannelPolicyResult & WithChannelName(ChannelNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue