AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GrantFlowEntitlementsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediaconnect/MediaConnectRequest.h>
10#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
11#include <aws/mediaconnect/model/GrantEntitlementRequest.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MediaConnect {
17namespace Model {
18
22 public:
23 AWS_MEDIACONNECT_API GrantFlowEntitlementsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GrantFlowEntitlements"; }
30
31 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::Vector<GrantEntitlementRequest>& GetEntitlements() const { return m_entitlements; }
38 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
39 template <typename EntitlementsT = Aws::Vector<GrantEntitlementRequest>>
40 void SetEntitlements(EntitlementsT&& value) {
41 m_entitlementsHasBeenSet = true;
42 m_entitlements = std::forward<EntitlementsT>(value);
43 }
44 template <typename EntitlementsT = Aws::Vector<GrantEntitlementRequest>>
46 SetEntitlements(std::forward<EntitlementsT>(value));
47 return *this;
48 }
49 template <typename EntitlementsT = GrantEntitlementRequest>
51 m_entitlementsHasBeenSet = true;
52 m_entitlements.emplace_back(std::forward<EntitlementsT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetFlowArn() const { return m_flowArn; }
63 inline bool FlowArnHasBeenSet() const { return m_flowArnHasBeenSet; }
64 template <typename FlowArnT = Aws::String>
65 void SetFlowArn(FlowArnT&& value) {
66 m_flowArnHasBeenSet = true;
67 m_flowArn = std::forward<FlowArnT>(value);
68 }
69 template <typename FlowArnT = Aws::String>
71 SetFlowArn(std::forward<FlowArnT>(value));
72 return *this;
73 }
75 private:
77
78 Aws::String m_flowArn;
79 bool m_entitlementsHasBeenSet = false;
80 bool m_flowArnHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace MediaConnect
85} // namespace Aws
const Aws::Vector< GrantEntitlementRequest > & GetEntitlements() const
GrantFlowEntitlementsRequest & WithFlowArn(FlowArnT &&value)
GrantFlowEntitlementsRequest & AddEntitlements(EntitlementsT &&value)
AWS_MEDIACONNECT_API GrantFlowEntitlementsRequest()=default
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
GrantFlowEntitlementsRequest & WithEntitlements(EntitlementsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector