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)


2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2164

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.



2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2164

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



2164
2165
2166
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2164

def unknown
  @unknown
end