/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MediaTailor { namespace Model { /** *

VOD source configuration parameters.

See Also:

AWS * API Reference

*/ class VodSource { public: AWS_MEDIATAILOR_API VodSource(); AWS_MEDIATAILOR_API VodSource(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIATAILOR_API VodSource& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN for the VOD source.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN for the VOD source.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN for the VOD source.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN for the VOD source.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN for the VOD source.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN for the VOD source.

*/ inline VodSource& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN for the VOD source.

*/ inline VodSource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN for the VOD source.

*/ inline VodSource& WithArn(const char* value) { SetArn(value); return *this;} /** *

The timestamp that indicates when the VOD source was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The timestamp that indicates when the VOD source was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The timestamp that indicates when the VOD source was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The timestamp that indicates when the VOD source was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The timestamp that indicates when the VOD source was created.

*/ inline VodSource& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The timestamp that indicates when the VOD source was created.

*/ inline VodSource& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The HTTP package configurations for the VOD source.

*/ inline const Aws::Vector& GetHttpPackageConfigurations() const{ return m_httpPackageConfigurations; } /** *

The HTTP package configurations for the VOD source.

*/ inline bool HttpPackageConfigurationsHasBeenSet() const { return m_httpPackageConfigurationsHasBeenSet; } /** *

The HTTP package configurations for the VOD source.

*/ inline void SetHttpPackageConfigurations(const Aws::Vector& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations = value; } /** *

The HTTP package configurations for the VOD source.

*/ inline void SetHttpPackageConfigurations(Aws::Vector&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations = std::move(value); } /** *

The HTTP package configurations for the VOD source.

*/ inline VodSource& WithHttpPackageConfigurations(const Aws::Vector& value) { SetHttpPackageConfigurations(value); return *this;} /** *

The HTTP package configurations for the VOD source.

*/ inline VodSource& WithHttpPackageConfigurations(Aws::Vector&& value) { SetHttpPackageConfigurations(std::move(value)); return *this;} /** *

The HTTP package configurations for the VOD source.

*/ inline VodSource& AddHttpPackageConfigurations(const HttpPackageConfiguration& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations.push_back(value); return *this; } /** *

The HTTP package configurations for the VOD source.

*/ inline VodSource& AddHttpPackageConfigurations(HttpPackageConfiguration&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations.push_back(std::move(value)); return *this; } /** *

The timestamp that indicates when the VOD source was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The timestamp that indicates when the VOD source was last modified.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The timestamp that indicates when the VOD source was last modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

The timestamp that indicates when the VOD source was last modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

The timestamp that indicates when the VOD source was last modified.

*/ inline VodSource& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The timestamp that indicates when the VOD source was last modified.

*/ inline VodSource& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

The name of the source location that the VOD source is associated with.

*/ inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; } /** *

The name of the source location that the VOD source is associated with.

*/ inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; } /** *

The name of the source location that the VOD source is associated with.

*/ inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; } /** *

The name of the source location that the VOD source is associated with.

*/ inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); } /** *

The name of the source location that the VOD source is associated with.

*/ inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); } /** *

The name of the source location that the VOD source is associated with.

*/ inline VodSource& WithSourceLocationName(const Aws::String& value) { SetSourceLocationName(value); return *this;} /** *

The name of the source location that the VOD source is associated with.

*/ inline VodSource& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;} /** *

The name of the source location that the VOD source is associated with.

*/ inline VodSource& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;} /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline VodSource& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline VodSource& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline VodSource& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline VodSource& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline VodSource& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline VodSource& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline VodSource& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline VodSource& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags assigned to the VOD source. Tags are key-value pairs that you can * associate with Amazon resources to help with organization, access control, and * cost tracking. For more information, see Tagging * AWS Elemental MediaTailor Resources.

*/ inline VodSource& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The name of the VOD source.

*/ inline const Aws::String& GetVodSourceName() const{ return m_vodSourceName; } /** *

The name of the VOD source.

*/ inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; } /** *

The name of the VOD source.

*/ inline void SetVodSourceName(const Aws::String& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = value; } /** *

The name of the VOD source.

*/ inline void SetVodSourceName(Aws::String&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::move(value); } /** *

The name of the VOD source.

*/ inline void SetVodSourceName(const char* value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName.assign(value); } /** *

The name of the VOD source.

*/ inline VodSource& WithVodSourceName(const Aws::String& value) { SetVodSourceName(value); return *this;} /** *

The name of the VOD source.

*/ inline VodSource& WithVodSourceName(Aws::String&& value) { SetVodSourceName(std::move(value)); return *this;} /** *

The name of the VOD source.

*/ inline VodSource& WithVodSourceName(const char* value) { SetVodSourceName(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Vector m_httpPackageConfigurations; bool m_httpPackageConfigurationsHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; Aws::String m_sourceLocationName; bool m_sourceLocationNameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_vodSourceName; bool m_vodSourceNameHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws