GetMessage

class oci.queue.models.GetMessage(**kwargs)

Bases: object

A message consumed from a queue.

Methods

__init__(**kwargs) Initializes a new GetMessage object with values from keyword arguments.

Attributes

content [Required] Gets the content of this GetMessage.
created_at [Required] Gets the created_at of this GetMessage.
delivery_count [Required] Gets the delivery_count of this GetMessage.
expire_after [Required] Gets the expire_after of this GetMessage.
id [Required] Gets the id of this GetMessage.
metadata Gets the metadata of this GetMessage.
receipt [Required] Gets the receipt of this GetMessage.
visible_after [Required] Gets the visible_after of this GetMessage.
__init__(**kwargs)

Initializes a new GetMessage object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (int) – The value to assign to the id property of this GetMessage.
  • content (str) – The value to assign to the content property of this GetMessage.
  • receipt (str) – The value to assign to the receipt property of this GetMessage.
  • delivery_count (int) – The value to assign to the delivery_count property of this GetMessage.
  • visible_after (datetime) – The value to assign to the visible_after property of this GetMessage.
  • expire_after (datetime) – The value to assign to the expire_after property of this GetMessage.
  • created_at (datetime) – The value to assign to the created_at property of this GetMessage.
  • metadata (oci.queue.models.MessageMetadata) – The value to assign to the metadata property of this GetMessage.
content

[Required] Gets the content of this GetMessage. The content of the message.

Returns:The content of this GetMessage.
Return type:str
created_at

[Required] Gets the created_at of this GetMessage. The time when message was created in queue.

Example: 2018-04-20T00:00:07.405Z

Returns:The created_at of this GetMessage.
Return type:datetime
delivery_count

[Required] Gets the delivery_count of this GetMessage. The number of times that the message has been delivered to a consumer.

Returns:The delivery_count of this GetMessage.
Return type:int
expire_after

[Required] Gets the expire_after of this GetMessage. The time after which the message will be automatically deleted, expressed in RFC 3339 timestamp format.

Example: 2018-04-20T00:00:07.405Z

Returns:The expire_after of this GetMessage.
Return type:datetime
id

[Required] Gets the id of this GetMessage. The ID of the message. This ID is only used for tracing and debugging purposes and isn’t used as a parameter in any request.

Returns:The id of this GetMessage.
Return type:int
metadata

Gets the metadata of this GetMessage.

Returns:The metadata of this GetMessage.
Return type:oci.queue.models.MessageMetadata
receipt

[Required] Gets the receipt of this GetMessage. A receipt is a base64urlencode opaque token, uniquely representing a message. The receipt can be used to delete a message or update its visibility.

Returns:The receipt of this GetMessage.
Return type:str
visible_after

[Required] Gets the visible_after of this GetMessage. The time after which the message will be visible to other consumers, expressed in RFC 3339 timestamp format.

Example: 2018-04-20T00:00:07.405Z

Returns:The visible_after of this GetMessage.
Return type:datetime