AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateFlowEntitlementRequest.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/mediaconnect/MediaConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediaconnect/model/UpdateEncryption.h>
11#include <aws/mediaconnect/model/EntitlementStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace MediaConnect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MEDIACONNECT_API UpdateFlowEntitlementRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateFlowEntitlement"; }
34
35 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template<typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
47 template<typename DescriptionT = Aws::String>
48 UpdateFlowEntitlementRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
50
52
56 inline const UpdateEncryption& GetEncryption() const { return m_encryption; }
57 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
58 template<typename EncryptionT = UpdateEncryption>
59 void SetEncryption(EncryptionT&& value) { m_encryptionHasBeenSet = true; m_encryption = std::forward<EncryptionT>(value); }
60 template<typename EncryptionT = UpdateEncryption>
61 UpdateFlowEntitlementRequest& WithEncryption(EncryptionT&& value) { SetEncryption(std::forward<EncryptionT>(value)); return *this;}
63
65
69 inline const Aws::String& GetEntitlementArn() const { return m_entitlementArn; }
70 inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
71 template<typename EntitlementArnT = Aws::String>
72 void SetEntitlementArn(EntitlementArnT&& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = std::forward<EntitlementArnT>(value); }
73 template<typename EntitlementArnT = Aws::String>
74 UpdateFlowEntitlementRequest& WithEntitlementArn(EntitlementArnT&& value) { SetEntitlementArn(std::forward<EntitlementArnT>(value)); return *this;}
76
78
84 inline EntitlementStatus GetEntitlementStatus() const { return m_entitlementStatus; }
85 inline bool EntitlementStatusHasBeenSet() const { return m_entitlementStatusHasBeenSet; }
86 inline void SetEntitlementStatus(EntitlementStatus value) { m_entitlementStatusHasBeenSet = true; m_entitlementStatus = value; }
89
91
95 inline const Aws::String& GetFlowArn() const { return m_flowArn; }
96 inline bool FlowArnHasBeenSet() const { return m_flowArnHasBeenSet; }
97 template<typename FlowArnT = Aws::String>
98 void SetFlowArn(FlowArnT&& value) { m_flowArnHasBeenSet = true; m_flowArn = std::forward<FlowArnT>(value); }
99 template<typename FlowArnT = Aws::String>
100 UpdateFlowEntitlementRequest& WithFlowArn(FlowArnT&& value) { SetFlowArn(std::forward<FlowArnT>(value)); return *this;}
102
104
109 inline const Aws::Vector<Aws::String>& GetSubscribers() const { return m_subscribers; }
110 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
111 template<typename SubscribersT = Aws::Vector<Aws::String>>
112 void SetSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::forward<SubscribersT>(value); }
113 template<typename SubscribersT = Aws::Vector<Aws::String>>
114 UpdateFlowEntitlementRequest& WithSubscribers(SubscribersT&& value) { SetSubscribers(std::forward<SubscribersT>(value)); return *this;}
115 template<typename SubscribersT = Aws::String>
116 UpdateFlowEntitlementRequest& AddSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers.emplace_back(std::forward<SubscribersT>(value)); return *this; }
118 private:
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
123 UpdateEncryption m_encryption;
124 bool m_encryptionHasBeenSet = false;
125
126 Aws::String m_entitlementArn;
127 bool m_entitlementArnHasBeenSet = false;
128
130 bool m_entitlementStatusHasBeenSet = false;
131
132 Aws::String m_flowArn;
133 bool m_flowArnHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_subscribers;
136 bool m_subscribersHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace MediaConnect
141} // namespace Aws
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
UpdateFlowEntitlementRequest & WithSubscribers(SubscribersT &&value)
UpdateFlowEntitlementRequest & WithEncryption(EncryptionT &&value)
UpdateFlowEntitlementRequest & WithEntitlementStatus(EntitlementStatus value)
UpdateFlowEntitlementRequest & WithFlowArn(FlowArnT &&value)
UpdateFlowEntitlementRequest & AddSubscribers(SubscribersT &&value)
AWS_MEDIACONNECT_API UpdateFlowEntitlementRequest()=default
UpdateFlowEntitlementRequest & WithDescription(DescriptionT &&value)
UpdateFlowEntitlementRequest & WithEntitlementArn(EntitlementArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector