This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

345 lines
12 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediaconnect/model/Encryption.h>
#include <aws/mediaconnect/model/EntitlementStatus.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaConnect
{
namespace Model
{
/**
* The settings for a flow entitlement.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/Entitlement">AWS
* API Reference</a></p>
*/
class AWS_MEDIACONNECT_API Entitlement
{
public:
Entitlement();
Entitlement(Aws::Utils::Json::JsonView jsonValue);
Entitlement& operator=(Aws::Utils::Json::JsonView jsonValue);
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<Aws::String>& 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<Aws::String>& 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<Aws::String>&& 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<Aws::String>& 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<Aws::String>&& 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;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Encryption m_encryption;
bool m_encryptionHasBeenSet;
Aws::String m_entitlementArn;
bool m_entitlementArnHasBeenSet;
EntitlementStatus m_entitlementStatus;
bool m_entitlementStatusHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<Aws::String> m_subscribers;
bool m_subscribersHasBeenSet;
};
} // namespace Model
} // namespace MediaConnect
} // namespace Aws