/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace MediaConnect { namespace Model { /** * A request to grant entitlements on a flow.

See Also:

AWS * API Reference

*/ class GrantFlowEntitlementsRequest : public MediaConnectRequest { public: AWS_MEDIACONNECT_API GrantFlowEntitlementsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GrantFlowEntitlements"; } AWS_MEDIACONNECT_API Aws::String SerializePayload() const override; /** * The list of entitlements that you want to grant. */ inline const Aws::Vector& GetEntitlements() const{ return m_entitlements; } /** * The list of entitlements that you want to grant. */ inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; } /** * The list of entitlements that you want to grant. */ inline void SetEntitlements(const Aws::Vector& value) { m_entitlementsHasBeenSet = true; m_entitlements = value; } /** * The list of entitlements that you want to grant. */ inline void SetEntitlements(Aws::Vector&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::move(value); } /** * The list of entitlements that you want to grant. */ inline GrantFlowEntitlementsRequest& WithEntitlements(const Aws::Vector& value) { SetEntitlements(value); return *this;} /** * The list of entitlements that you want to grant. */ inline GrantFlowEntitlementsRequest& WithEntitlements(Aws::Vector&& value) { SetEntitlements(std::move(value)); return *this;} /** * The list of entitlements that you want to grant. */ inline GrantFlowEntitlementsRequest& AddEntitlements(const GrantEntitlementRequest& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(value); return *this; } /** * The list of entitlements that you want to grant. */ inline GrantFlowEntitlementsRequest& AddEntitlements(GrantEntitlementRequest&& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(std::move(value)); return *this; } /** * The flow that you want to grant entitlements on. */ inline const Aws::String& GetFlowArn() const{ return m_flowArn; } /** * The flow that you want to grant entitlements on. */ inline bool FlowArnHasBeenSet() const { return m_flowArnHasBeenSet; } /** * The flow that you want to grant entitlements on. */ inline void SetFlowArn(const Aws::String& value) { m_flowArnHasBeenSet = true; m_flowArn = value; } /** * The flow that you want to grant entitlements on. */ inline void SetFlowArn(Aws::String&& value) { m_flowArnHasBeenSet = true; m_flowArn = std::move(value); } /** * The flow that you want to grant entitlements on. */ inline void SetFlowArn(const char* value) { m_flowArnHasBeenSet = true; m_flowArn.assign(value); } /** * The flow that you want to grant entitlements on. */ inline GrantFlowEntitlementsRequest& WithFlowArn(const Aws::String& value) { SetFlowArn(value); return *this;} /** * The flow that you want to grant entitlements on. */ inline GrantFlowEntitlementsRequest& WithFlowArn(Aws::String&& value) { SetFlowArn(std::move(value)); return *this;} /** * The flow that you want to grant entitlements on. */ inline GrantFlowEntitlementsRequest& WithFlowArn(const char* value) { SetFlowArn(value); return *this;} private: Aws::Vector m_entitlements; bool m_entitlementsHasBeenSet = false; Aws::String m_flowArn; bool m_flowArnHasBeenSet = false; }; } // namespace Model } // namespace MediaConnect } // namespace Aws