Class: Aws::BedrockAgentCore::Types::PayloadType

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

Overview

Note:

PayloadType is a union - when making an API calls you must set exactly one of the members.

Note:

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

Contains the payload content for an event.

Direct Known Subclasses

Blob, Conversational, Unknown

Defined Under Namespace

Classes: Blob, Conversational, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#blobHash, ...

The binary content of the payload.

Returns:

  • (Hash, Array, String, Numeric, Boolean)


1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1705

class PayloadType < Struct.new(
  :conversational,
  :blob,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Conversational < PayloadType; end
  class Blob < PayloadType; end
  class Unknown < PayloadType; end
end

#conversationalTypes::Conversational

The conversational content of the payload.



1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1705

class PayloadType < Struct.new(
  :conversational,
  :blob,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Conversational < PayloadType; end
  class Blob < PayloadType; end
  class Unknown < PayloadType; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



1705
1706
1707
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1705

def unknown
  @unknown
end