Class: Aws::BedrockAgentCore::Types::PayloadType
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockAgentCore::Types::PayloadType
- Defined in:
- gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb
Overview
PayloadType is a union - when making an API calls you must set exactly one of the members.
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.
Defined Under Namespace
Classes: Blob, Conversational, Json, Unknown
Constant Summary collapse
- SENSITIVE =
[:blob, :json]
Instance Attribute Summary collapse
-
#blob ⇒ Hash, ...
The binary content of the payload.
-
#conversational ⇒ Types::Conversational
The conversational content of the payload.
-
#json ⇒ Types::MemoryJsonData
The JSON content of the payload.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#blob ⇒ Hash, ...
The binary content of the payload.
8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 |
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 8256 class PayloadType < Struct.new( :conversational, :blob, :json, :unknown) SENSITIVE = [:blob, :json] include Aws::Structure include Aws::Structure::Union class Conversational < PayloadType; end class Blob < PayloadType; end class Json < PayloadType; end class Unknown < PayloadType; end end |
#conversational ⇒ Types::Conversational
The conversational content of the payload.
8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 |
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 8256 class PayloadType < Struct.new( :conversational, :blob, :json, :unknown) SENSITIVE = [:blob, :json] include Aws::Structure include Aws::Structure::Union class Conversational < PayloadType; end class Blob < PayloadType; end class Json < PayloadType; end class Unknown < PayloadType; end end |
#json ⇒ Types::MemoryJsonData
The JSON content of the payload. Use this type to store non-conversational, JSON-formatted data, such as behavioral events, activity logs, or system events.
8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 |
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 8256 class PayloadType < Struct.new( :conversational, :blob, :json, :unknown) SENSITIVE = [:blob, :json] include Aws::Structure include Aws::Structure::Union class Conversational < PayloadType; end class Blob < PayloadType; end class Json < PayloadType; end class Unknown < PayloadType; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
8256 8257 8258 |
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 8256 def unknown @unknown end |