/** * 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 #include #include #include namespace Aws { namespace MediaTailor { namespace Model { /** */ class CreateSourceLocationRequest : public MediaTailorRequest { public: AWS_MEDIATAILOR_API CreateSourceLocationRequest(); // 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 "CreateSourceLocation"; } AWS_MEDIATAILOR_API Aws::String SerializePayload() const override; /** *

Access configuration parameters. Configures the type of authentication used * to access content from your source location.

*/ inline const AccessConfiguration& GetAccessConfiguration() const{ return m_accessConfiguration; } /** *

Access configuration parameters. Configures the type of authentication used * to access content from your source location.

*/ inline bool AccessConfigurationHasBeenSet() const { return m_accessConfigurationHasBeenSet; } /** *

Access configuration parameters. Configures the type of authentication used * to access content from your source location.

*/ inline void SetAccessConfiguration(const AccessConfiguration& value) { m_accessConfigurationHasBeenSet = true; m_accessConfiguration = value; } /** *

Access configuration parameters. Configures the type of authentication used * to access content from your source location.

*/ inline void SetAccessConfiguration(AccessConfiguration&& value) { m_accessConfigurationHasBeenSet = true; m_accessConfiguration = std::move(value); } /** *

Access configuration parameters. Configures the type of authentication used * to access content from your source location.

*/ inline CreateSourceLocationRequest& WithAccessConfiguration(const AccessConfiguration& value) { SetAccessConfiguration(value); return *this;} /** *

Access configuration parameters. Configures the type of authentication used * to access content from your source location.

*/ inline CreateSourceLocationRequest& WithAccessConfiguration(AccessConfiguration&& value) { SetAccessConfiguration(std::move(value)); return *this;} /** *

The optional configuration for the server that serves segments.

*/ inline const DefaultSegmentDeliveryConfiguration& GetDefaultSegmentDeliveryConfiguration() const{ return m_defaultSegmentDeliveryConfiguration; } /** *

The optional configuration for the server that serves segments.

*/ inline bool DefaultSegmentDeliveryConfigurationHasBeenSet() const { return m_defaultSegmentDeliveryConfigurationHasBeenSet; } /** *

The optional configuration for the server that serves segments.

*/ inline void SetDefaultSegmentDeliveryConfiguration(const DefaultSegmentDeliveryConfiguration& value) { m_defaultSegmentDeliveryConfigurationHasBeenSet = true; m_defaultSegmentDeliveryConfiguration = value; } /** *

The optional configuration for the server that serves segments.

*/ inline void SetDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfiguration&& value) { m_defaultSegmentDeliveryConfigurationHasBeenSet = true; m_defaultSegmentDeliveryConfiguration = std::move(value); } /** *

The optional configuration for the server that serves segments.

*/ inline CreateSourceLocationRequest& WithDefaultSegmentDeliveryConfiguration(const DefaultSegmentDeliveryConfiguration& value) { SetDefaultSegmentDeliveryConfiguration(value); return *this;} /** *

The optional configuration for the server that serves segments.

*/ inline CreateSourceLocationRequest& WithDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfiguration&& value) { SetDefaultSegmentDeliveryConfiguration(std::move(value)); return *this;} /** *

The source's HTTP package configurations.

*/ inline const HttpConfiguration& GetHttpConfiguration() const{ return m_httpConfiguration; } /** *

The source's HTTP package configurations.

*/ inline bool HttpConfigurationHasBeenSet() const { return m_httpConfigurationHasBeenSet; } /** *

The source's HTTP package configurations.

*/ inline void SetHttpConfiguration(const HttpConfiguration& value) { m_httpConfigurationHasBeenSet = true; m_httpConfiguration = value; } /** *

The source's HTTP package configurations.

*/ inline void SetHttpConfiguration(HttpConfiguration&& value) { m_httpConfigurationHasBeenSet = true; m_httpConfiguration = std::move(value); } /** *

The source's HTTP package configurations.

*/ inline CreateSourceLocationRequest& WithHttpConfiguration(const HttpConfiguration& value) { SetHttpConfiguration(value); return *this;} /** *

The source's HTTP package configurations.

*/ inline CreateSourceLocationRequest& WithHttpConfiguration(HttpConfiguration&& value) { SetHttpConfiguration(std::move(value)); return *this;} /** *

A list of the segment delivery configurations associated with this * resource.

*/ inline const Aws::Vector& GetSegmentDeliveryConfigurations() const{ return m_segmentDeliveryConfigurations; } /** *

A list of the segment delivery configurations associated with this * resource.

*/ inline bool SegmentDeliveryConfigurationsHasBeenSet() const { return m_segmentDeliveryConfigurationsHasBeenSet; } /** *

A list of the segment delivery configurations associated with this * resource.

*/ inline void SetSegmentDeliveryConfigurations(const Aws::Vector& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations = value; } /** *

A list of the segment delivery configurations associated with this * resource.

*/ inline void SetSegmentDeliveryConfigurations(Aws::Vector&& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations = std::move(value); } /** *

A list of the segment delivery configurations associated with this * resource.

*/ inline CreateSourceLocationRequest& WithSegmentDeliveryConfigurations(const Aws::Vector& value) { SetSegmentDeliveryConfigurations(value); return *this;} /** *

A list of the segment delivery configurations associated with this * resource.

*/ inline CreateSourceLocationRequest& WithSegmentDeliveryConfigurations(Aws::Vector&& value) { SetSegmentDeliveryConfigurations(std::move(value)); return *this;} /** *

A list of the segment delivery configurations associated with this * resource.

*/ inline CreateSourceLocationRequest& AddSegmentDeliveryConfigurations(const SegmentDeliveryConfiguration& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations.push_back(value); return *this; } /** *

A list of the segment delivery configurations associated with this * resource.

*/ inline CreateSourceLocationRequest& AddSegmentDeliveryConfigurations(SegmentDeliveryConfiguration&& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations.push_back(std::move(value)); return *this; } /** *

The name associated with the source location.

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

The name associated with the source location.

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

The name associated with the source location.

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

The name associated with the source location.

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

The name associated with the source location.

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

The name associated with the source location.

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

The name associated with the source location.

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

The name associated with the source location.

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

The tags to assign to the source location. 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 to assign to the source location. 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 to assign to the source location. 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 to assign to the source location. 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 to assign to the source location. 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 CreateSourceLocationRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags to assign to the source location. 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 CreateSourceLocationRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags to assign to the source location. 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 CreateSourceLocationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags to assign to the source location. 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 CreateSourceLocationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags to assign to the source location. 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 CreateSourceLocationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags to assign to the source location. 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 CreateSourceLocationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags to assign to the source location. 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 CreateSourceLocationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags to assign to the source location. 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 CreateSourceLocationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags to assign to the source location. 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 CreateSourceLocationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: AccessConfiguration m_accessConfiguration; bool m_accessConfigurationHasBeenSet = false; DefaultSegmentDeliveryConfiguration m_defaultSegmentDeliveryConfiguration; bool m_defaultSegmentDeliveryConfigurationHasBeenSet = false; HttpConfiguration m_httpConfiguration; bool m_httpConfigurationHasBeenSet = false; Aws::Vector m_segmentDeliveryConfigurations; bool m_segmentDeliveryConfigurationsHasBeenSet = false; Aws::String m_sourceLocationName; bool m_sourceLocationNameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws