/**
* 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 Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaConnect
{
namespace Model
{
/**
* The entitlements that you want to grant on a flow.See Also:
AWS
* API Reference
*/
class GrantEntitlementRequest
{
public:
AWS_MEDIACONNECT_API GrantEntitlementRequest();
AWS_MEDIACONNECT_API GrantEntitlementRequest(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIACONNECT_API GrantEntitlementRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
*/
inline int GetDataTransferSubscriberFeePercent() const{ return m_dataTransferSubscriberFeePercent; }
/**
* Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
*/
inline bool DataTransferSubscriberFeePercentHasBeenSet() const { return m_dataTransferSubscriberFeePercentHasBeenSet; }
/**
* Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
*/
inline void SetDataTransferSubscriberFeePercent(int value) { m_dataTransferSubscriberFeePercentHasBeenSet = true; m_dataTransferSubscriberFeePercent = value; }
/**
* Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
*/
inline GrantEntitlementRequest& WithDataTransferSubscriberFeePercent(int value) { SetDataTransferSubscriberFeePercent(value); return *this;}
/**
* A description of the entitlement. This description appears only on the AWS
* Elemental MediaConnect console and will not be seen by the subscriber or end
* user.
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* A description of the entitlement. This description appears only on the AWS
* Elemental MediaConnect console and will not be seen by the subscriber or end
* user.
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* A description of the entitlement. This description appears only on the AWS
* Elemental MediaConnect console and will not be seen by the subscriber or end
* user.
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* A description of the entitlement. This description appears only on the AWS
* Elemental MediaConnect console and will not be seen by the subscriber or end
* user.
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* A description of the entitlement. This description appears only on the AWS
* Elemental MediaConnect console and will not be seen by the subscriber or end
* user.
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* A description of the entitlement. This description appears only on the AWS
* Elemental MediaConnect console and will not be seen by the subscriber or end
* user.
*/
inline GrantEntitlementRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* A description of the entitlement. This description appears only on the AWS
* Elemental MediaConnect console and will not be seen by the subscriber or end
* user.
*/
inline GrantEntitlementRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* A description of the entitlement. This description appears only on the AWS
* Elemental MediaConnect console and will not be seen by the subscriber or end
* user.
*/
inline GrantEntitlementRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* The type of encryption that will be used on the output that is associated with
* this entitlement. Allowable encryption types: static-key, speke.
*/
inline const Encryption& GetEncryption() const{ return m_encryption; }
/**
* The type of encryption that will be used on the output that is associated with
* this entitlement. Allowable encryption types: static-key, speke.
*/
inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
/**
* The type of encryption that will be used on the output that is associated with
* this entitlement. Allowable encryption types: static-key, speke.
*/
inline void SetEncryption(const Encryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
/**
* The type of encryption that will be used on the output that is associated with
* this entitlement. Allowable encryption types: static-key, speke.
*/
inline void SetEncryption(Encryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
/**
* The type of encryption that will be used on the output that is associated with
* this entitlement. Allowable encryption types: static-key, speke.
*/
inline GrantEntitlementRequest& WithEncryption(const Encryption& value) { SetEncryption(value); return *this;}
/**
* The type of encryption that will be used on the output that is associated with
* this entitlement. Allowable encryption types: static-key, speke.
*/
inline GrantEntitlementRequest& WithEncryption(Encryption&& value) { SetEncryption(std::move(value)); return *this;}
/**
* An indication of whether the new entitlement should be enabled or disabled as
* soon as it is created. If you don’t specify the entitlementStatus field in your
* request, MediaConnect sets it to ENABLED.
*/
inline const EntitlementStatus& GetEntitlementStatus() const{ return m_entitlementStatus; }
/**
* An indication of whether the new entitlement should be enabled or disabled as
* soon as it is created. If you don’t specify the entitlementStatus field in your
* request, MediaConnect sets it to ENABLED.
*/
inline bool EntitlementStatusHasBeenSet() const { return m_entitlementStatusHasBeenSet; }
/**
* An indication of whether the new entitlement should be enabled or disabled as
* soon as it is created. If you don’t specify the entitlementStatus field in your
* request, MediaConnect sets it to ENABLED.
*/
inline void SetEntitlementStatus(const EntitlementStatus& value) { m_entitlementStatusHasBeenSet = true; m_entitlementStatus = value; }
/**
* An indication of whether the new entitlement should be enabled or disabled as
* soon as it is created. If you don’t specify the entitlementStatus field in your
* request, MediaConnect sets it to ENABLED.
*/
inline void SetEntitlementStatus(EntitlementStatus&& value) { m_entitlementStatusHasBeenSet = true; m_entitlementStatus = std::move(value); }
/**
* An indication of whether the new entitlement should be enabled or disabled as
* soon as it is created. If you don’t specify the entitlementStatus field in your
* request, MediaConnect sets it to ENABLED.
*/
inline GrantEntitlementRequest& WithEntitlementStatus(const EntitlementStatus& value) { SetEntitlementStatus(value); return *this;}
/**
* An indication of whether the new entitlement should be enabled or disabled as
* soon as it is created. If you don’t specify the entitlementStatus field in your
* request, MediaConnect sets it to ENABLED.
*/
inline GrantEntitlementRequest& WithEntitlementStatus(EntitlementStatus&& value) { SetEntitlementStatus(std::move(value)); return *this;}
/**
* The name of the entitlement. This value must be unique within the current flow.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the entitlement. This value must be unique within the current flow.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the entitlement. This value must be unique within the current flow.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the entitlement. This value must be unique within the current flow.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the entitlement. This value must be unique within the current flow.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the entitlement. This value must be unique within the current flow.
*/
inline GrantEntitlementRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the entitlement. This value must be unique within the current flow.
*/
inline GrantEntitlementRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the entitlement. This value must be unique within the current flow.
*/
inline GrantEntitlementRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* The AWS account IDs that you want to share your content with. The receiving
* accounts (subscribers) will be allowed to create their own flows using your
* content as the source.
*/
inline const Aws::Vector& GetSubscribers() const{ return m_subscribers; }
/**
* The AWS account IDs that you want to share your content with. The receiving
* accounts (subscribers) will be allowed to create their own flows using your
* content as the source.
*/
inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
/**
* The AWS account IDs that you want to share your content with. The receiving
* accounts (subscribers) will be allowed to create their own flows using your
* content as the source.
*/
inline void SetSubscribers(const Aws::Vector& value) { m_subscribersHasBeenSet = true; m_subscribers = value; }
/**
* The AWS account IDs that you want to share your content with. The receiving
* accounts (subscribers) will be allowed to create their own flows using your
* content as the source.
*/
inline void SetSubscribers(Aws::Vector&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::move(value); }
/**
* The AWS account IDs that you want to share your content with. The receiving
* accounts (subscribers) will be allowed to create their own flows using your
* content as the source.
*/
inline GrantEntitlementRequest& WithSubscribers(const Aws::Vector& value) { SetSubscribers(value); return *this;}
/**
* The AWS account IDs that you want to share your content with. The receiving
* accounts (subscribers) will be allowed to create their own flows using your
* content as the source.
*/
inline GrantEntitlementRequest& WithSubscribers(Aws::Vector&& value) { SetSubscribers(std::move(value)); return *this;}
/**
* The AWS account IDs that you want to share your content with. The receiving
* accounts (subscribers) will be allowed to create their own flows using your
* content as the source.
*/
inline GrantEntitlementRequest& AddSubscribers(const Aws::String& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
/**
* The AWS account IDs that you want to share your content with. The receiving
* accounts (subscribers) will be allowed to create their own flows using your
* content as the source.
*/
inline GrantEntitlementRequest& AddSubscribers(Aws::String&& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(std::move(value)); return *this; }
/**
* The AWS account IDs that you want to share your content with. The receiving
* accounts (subscribers) will be allowed to create their own flows using your
* content as the source.
*/
inline GrantEntitlementRequest& AddSubscribers(const char* value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
private:
int m_dataTransferSubscriberFeePercent;
bool m_dataTransferSubscriberFeePercentHasBeenSet = false;
Aws::String m_description;
bool m_descriptionHasBeenSet = false;
Encryption m_encryption;
bool m_encryptionHasBeenSet = false;
EntitlementStatus m_entitlementStatus;
bool m_entitlementStatusHasBeenSet = false;
Aws::String m_name;
bool m_nameHasBeenSet = false;
Aws::Vector m_subscribers;
bool m_subscribersHasBeenSet = false;
};
} // namespace Model
} // namespace MediaConnect
} // namespace Aws