Class: Aws::MarketplaceDiscovery::Types::PromotionalMedia

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-marketplacediscovery/lib/aws-sdk-marketplacediscovery/types.rb

Overview

Note:

PromotionalMedia is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of PromotionalMedia corresponding to the set member.

Embedded promotional media for a product, such as images or videos. Each element contains exactly one media type.

Defined Under Namespace

Classes: EmbeddedImage, EmbeddedVideo, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#embedded_image ⇒ Types::PromotionalEmbeddedImage

An embedded promotional image for a product.



2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
# File 'gems/aws-sdk-marketplacediscovery/lib/aws-sdk-marketplacediscovery/types.rb', line 2459

class PromotionalMedia < Struct.new(
  :embedded_image,
  :embedded_video,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class EmbeddedImage < PromotionalMedia; end
  class EmbeddedVideo < PromotionalMedia; end
  class Unknown < PromotionalMedia; end
end

#embedded_video ⇒ Types::PromotionalEmbeddedVideo

An embedded promotional video for a product.



2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
# File 'gems/aws-sdk-marketplacediscovery/lib/aws-sdk-marketplacediscovery/types.rb', line 2459

class PromotionalMedia < Struct.new(
  :embedded_image,
  :embedded_video,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class EmbeddedImage < PromotionalMedia; end
  class EmbeddedVideo < PromotionalMedia; end
  class Unknown < PromotionalMedia; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



2459
2460
2461
# File 'gems/aws-sdk-marketplacediscovery/lib/aws-sdk-marketplacediscovery/types.rb', line 2459

def unknown
  @unknown
end