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

The configuration of a CustomContentVisual.

See * Also:

AWS * API Reference

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

The input URL that links to the custom content that you want in the custom * visual.

*/ inline const Aws::String& GetContentUrl() const{ return m_contentUrl; } /** *

The input URL that links to the custom content that you want in the custom * visual.

*/ inline bool ContentUrlHasBeenSet() const { return m_contentUrlHasBeenSet; } /** *

The input URL that links to the custom content that you want in the custom * visual.

*/ inline void SetContentUrl(const Aws::String& value) { m_contentUrlHasBeenSet = true; m_contentUrl = value; } /** *

The input URL that links to the custom content that you want in the custom * visual.

*/ inline void SetContentUrl(Aws::String&& value) { m_contentUrlHasBeenSet = true; m_contentUrl = std::move(value); } /** *

The input URL that links to the custom content that you want in the custom * visual.

*/ inline void SetContentUrl(const char* value) { m_contentUrlHasBeenSet = true; m_contentUrl.assign(value); } /** *

The input URL that links to the custom content that you want in the custom * visual.

*/ inline CustomContentConfiguration& WithContentUrl(const Aws::String& value) { SetContentUrl(value); return *this;} /** *

The input URL that links to the custom content that you want in the custom * visual.

*/ inline CustomContentConfiguration& WithContentUrl(Aws::String&& value) { SetContentUrl(std::move(value)); return *this;} /** *

The input URL that links to the custom content that you want in the custom * visual.

*/ inline CustomContentConfiguration& WithContentUrl(const char* value) { SetContentUrl(value); return *this;} /** *

The content type of the custom content visual. You can use this to have the * visual render as an image.

*/ inline const CustomContentType& GetContentType() const{ return m_contentType; } /** *

The content type of the custom content visual. You can use this to have the * visual render as an image.

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

The content type of the custom content visual. You can use this to have the * visual render as an image.

*/ inline void SetContentType(const CustomContentType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

The content type of the custom content visual. You can use this to have the * visual render as an image.

*/ inline void SetContentType(CustomContentType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

The content type of the custom content visual. You can use this to have the * visual render as an image.

*/ inline CustomContentConfiguration& WithContentType(const CustomContentType& value) { SetContentType(value); return *this;} /** *

The content type of the custom content visual. You can use this to have the * visual render as an image.

*/ inline CustomContentConfiguration& WithContentType(CustomContentType&& value) { SetContentType(std::move(value)); return *this;} /** *

The sizing options for the size of the custom content visual. This structure * is required when the ContentType of the visual is * 'IMAGE'.

*/ inline const CustomContentImageScalingConfiguration& GetImageScaling() const{ return m_imageScaling; } /** *

The sizing options for the size of the custom content visual. This structure * is required when the ContentType of the visual is * 'IMAGE'.

*/ inline bool ImageScalingHasBeenSet() const { return m_imageScalingHasBeenSet; } /** *

The sizing options for the size of the custom content visual. This structure * is required when the ContentType of the visual is * 'IMAGE'.

*/ inline void SetImageScaling(const CustomContentImageScalingConfiguration& value) { m_imageScalingHasBeenSet = true; m_imageScaling = value; } /** *

The sizing options for the size of the custom content visual. This structure * is required when the ContentType of the visual is * 'IMAGE'.

*/ inline void SetImageScaling(CustomContentImageScalingConfiguration&& value) { m_imageScalingHasBeenSet = true; m_imageScaling = std::move(value); } /** *

The sizing options for the size of the custom content visual. This structure * is required when the ContentType of the visual is * 'IMAGE'.

*/ inline CustomContentConfiguration& WithImageScaling(const CustomContentImageScalingConfiguration& value) { SetImageScaling(value); return *this;} /** *

The sizing options for the size of the custom content visual. This structure * is required when the ContentType of the visual is * 'IMAGE'.

*/ inline CustomContentConfiguration& WithImageScaling(CustomContentImageScalingConfiguration&& value) { SetImageScaling(std::move(value)); return *this;} private: Aws::String m_contentUrl; bool m_contentUrlHasBeenSet = false; CustomContentType m_contentType; bool m_contentTypeHasBeenSet = false; CustomContentImageScalingConfiguration m_imageScaling; bool m_imageScalingHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws