AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GrantFlowEntitlementsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
11#include <aws/mediaconnect/model/Entitlement.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MediaConnect {
25namespace Model {
27 public:
28 AWS_MEDIACONNECT_API GrantFlowEntitlementsResult() = default;
31
33
36 inline const Aws::Vector<Entitlement>& GetEntitlements() const { return m_entitlements; }
37 template <typename EntitlementsT = Aws::Vector<Entitlement>>
38 void SetEntitlements(EntitlementsT&& value) {
39 m_entitlementsHasBeenSet = true;
40 m_entitlements = std::forward<EntitlementsT>(value);
41 }
42 template <typename EntitlementsT = Aws::Vector<Entitlement>>
44 SetEntitlements(std::forward<EntitlementsT>(value));
45 return *this;
46 }
47 template <typename EntitlementsT = Entitlement>
49 m_entitlementsHasBeenSet = true;
50 m_entitlements.emplace_back(std::forward<EntitlementsT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFlowArn() const { return m_flowArn; }
60 template <typename FlowArnT = Aws::String>
61 void SetFlowArn(FlowArnT&& value) {
62 m_flowArnHasBeenSet = true;
63 m_flowArn = std::forward<FlowArnT>(value);
64 }
65 template <typename FlowArnT = Aws::String>
67 SetFlowArn(std::forward<FlowArnT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
87
88 private:
89 Aws::Vector<Entitlement> m_entitlements;
90
91 Aws::String m_flowArn;
92
93 Aws::String m_requestId;
94 Aws::Http::HttpResponseCode m_HttpResponseCode;
95 bool m_entitlementsHasBeenSet = false;
96 bool m_flowArnHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace MediaConnect
102} // namespace Aws
AWS_MEDIACONNECT_API GrantFlowEntitlementsResult()=default
AWS_MEDIACONNECT_API GrantFlowEntitlementsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GrantFlowEntitlementsResult & AddEntitlements(EntitlementsT &&value)
AWS_MEDIACONNECT_API GrantFlowEntitlementsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Entitlement > & GetEntitlements() const
GrantFlowEntitlementsResult & WithFlowArn(FlowArnT &&value)
GrantFlowEntitlementsResult & WithEntitlements(EntitlementsT &&value)
GrantFlowEntitlementsResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue