AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GrantFlowEntitlementsRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/mediaconnect/model/GrantEntitlementRequest.h>
12#include <utility>
13
14namespace Aws
15{
16namespace MediaConnect
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_MEDIACONNECT_API GrantFlowEntitlementsRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GrantFlowEntitlements"; }
36
37 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::Vector<GrantEntitlementRequest>& GetEntitlements() const{ return m_entitlements; }
45 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
46 inline void SetEntitlements(const Aws::Vector<GrantEntitlementRequest>& value) { m_entitlementsHasBeenSet = true; m_entitlements = value; }
47 inline void SetEntitlements(Aws::Vector<GrantEntitlementRequest>&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::move(value); }
50 inline GrantFlowEntitlementsRequest& AddEntitlements(const GrantEntitlementRequest& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(value); return *this; }
51 inline GrantFlowEntitlementsRequest& AddEntitlements(GrantEntitlementRequest&& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(std::move(value)); return *this; }
53
55
58 inline const Aws::String& GetFlowArn() const{ return m_flowArn; }
59 inline bool FlowArnHasBeenSet() const { return m_flowArnHasBeenSet; }
60 inline void SetFlowArn(const Aws::String& value) { m_flowArnHasBeenSet = true; m_flowArn = value; }
61 inline void SetFlowArn(Aws::String&& value) { m_flowArnHasBeenSet = true; m_flowArn = std::move(value); }
62 inline void SetFlowArn(const char* value) { m_flowArnHasBeenSet = true; m_flowArn.assign(value); }
63 inline GrantFlowEntitlementsRequest& WithFlowArn(const Aws::String& value) { SetFlowArn(value); return *this;}
64 inline GrantFlowEntitlementsRequest& WithFlowArn(Aws::String&& value) { SetFlowArn(std::move(value)); return *this;}
65 inline GrantFlowEntitlementsRequest& WithFlowArn(const char* value) { SetFlowArn(value); return *this;}
67 private:
68
70 bool m_entitlementsHasBeenSet = false;
71
72 Aws::String m_flowArn;
73 bool m_flowArnHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace MediaConnect
78} // namespace Aws
GrantFlowEntitlementsRequest & WithFlowArn(const char *value)
const Aws::Vector< GrantEntitlementRequest > & GetEntitlements() const
GrantFlowEntitlementsRequest & WithFlowArn(Aws::String &&value)
GrantFlowEntitlementsRequest & WithFlowArn(const Aws::String &value)
GrantFlowEntitlementsRequest & AddEntitlements(GrantEntitlementRequest &&value)
GrantFlowEntitlementsRequest & AddEntitlements(const GrantEntitlementRequest &value)
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
void SetEntitlements(Aws::Vector< GrantEntitlementRequest > &&value)
GrantFlowEntitlementsRequest & WithEntitlements(Aws::Vector< GrantEntitlementRequest > &&value)
void SetEntitlements(const Aws::Vector< GrantEntitlementRequest > &value)
GrantFlowEntitlementsRequest & WithEntitlements(const Aws::Vector< GrantEntitlementRequest > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector