PutMessage

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

Bases: object

A message that has been published to a queue.

Methods

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

Attributes

expire_after Gets the expire_after of this PutMessage.
id [Required] Gets the id of this PutMessage.
__init__(**kwargs)

Initializes a new PutMessage 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 PutMessage.
  • expire_after (datetime) – The value to assign to the expire_after property of this PutMessage.
expire_after

Gets the expire_after of this PutMessage. 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 PutMessage.
Return type:datetime
id

[Required] Gets the id of this PutMessage. The ID of the message.

Returns:The id of this PutMessage.
Return type:int