/**
* 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 settings for a flow entitlement.See Also:
AWS
* API Reference
*/
class Entitlement
{
public:
AWS_MEDIACONNECT_API Entitlement();
AWS_MEDIACONNECT_API Entitlement(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIACONNECT_API Entitlement& 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 Entitlement& WithDataTransferSubscriberFeePercent(int value) { SetDataTransferSubscriberFeePercent(value); return *this;}
/**
* A description of the entitlement.
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* A description of the entitlement.
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* A description of the entitlement.
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* A description of the entitlement.
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* A description of the entitlement.
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* A description of the entitlement.
*/
inline Entitlement& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* A description of the entitlement.
*/
inline Entitlement& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* A description of the entitlement.
*/
inline Entitlement& 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.
*/
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.
*/
inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
/**
* The type of encryption that will be used on the output that is associated with
* this entitlement.
*/
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.
*/
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.
*/
inline Entitlement& 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.
*/
inline Entitlement& WithEncryption(Encryption&& value) { SetEncryption(std::move(value)); return *this;}
/**
* The ARN of the entitlement.
*/
inline const Aws::String& GetEntitlementArn() const{ return m_entitlementArn; }
/**
* The ARN of the entitlement.
*/
inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
/**
* The ARN of the entitlement.
*/
inline void SetEntitlementArn(const Aws::String& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = value; }
/**
* The ARN of the entitlement.
*/
inline void SetEntitlementArn(Aws::String&& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = std::move(value); }
/**
* The ARN of the entitlement.
*/
inline void SetEntitlementArn(const char* value) { m_entitlementArnHasBeenSet = true; m_entitlementArn.assign(value); }
/**
* The ARN of the entitlement.
*/
inline Entitlement& WithEntitlementArn(const Aws::String& value) { SetEntitlementArn(value); return *this;}
/**
* The ARN of the entitlement.
*/
inline Entitlement& WithEntitlementArn(Aws::String&& value) { SetEntitlementArn(std::move(value)); return *this;}
/**
* The ARN of the entitlement.
*/
inline Entitlement& WithEntitlementArn(const char* value) { SetEntitlementArn(value); return *this;}
/**
* An indication of whether the entitlement is enabled.
*/
inline const EntitlementStatus& GetEntitlementStatus() const{ return m_entitlementStatus; }
/**
* An indication of whether the entitlement is enabled.
*/
inline bool EntitlementStatusHasBeenSet() const { return m_entitlementStatusHasBeenSet; }
/**
* An indication of whether the entitlement is enabled.
*/
inline void SetEntitlementStatus(const EntitlementStatus& value) { m_entitlementStatusHasBeenSet = true; m_entitlementStatus = value; }
/**
* An indication of whether the entitlement is enabled.
*/
inline void SetEntitlementStatus(EntitlementStatus&& value) { m_entitlementStatusHasBeenSet = true; m_entitlementStatus = std::move(value); }
/**
* An indication of whether the entitlement is enabled.
*/
inline Entitlement& WithEntitlementStatus(const EntitlementStatus& value) { SetEntitlementStatus(value); return *this;}
/**
* An indication of whether the entitlement is enabled.
*/
inline Entitlement& WithEntitlementStatus(EntitlementStatus&& value) { SetEntitlementStatus(std::move(value)); return *this;}
/**
* The name of the entitlement.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the entitlement.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the entitlement.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the entitlement.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the entitlement.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the entitlement.
*/
inline Entitlement& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the entitlement.
*/
inline Entitlement& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the entitlement.
*/
inline Entitlement& 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 flow 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 flow 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 flow 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 flow 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 flow using your
* content as the source.
*/
inline Entitlement& 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 flow using your
* content as the source.
*/
inline Entitlement& 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 flow using your
* content as the source.
*/
inline Entitlement& 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 flow using your
* content as the source.
*/
inline Entitlement& 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 flow using your
* content as the source.
*/
inline Entitlement& 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;
Aws::String m_entitlementArn;
bool m_entitlementArnHasBeenSet = 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