Show / Hide Table of Contents

Class GetMessage

A message consumed from a queue.

Inheritance
object
GetMessage
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.QueueService.Models
Assembly: OCI.DotNetSDK.Queue.dll
Syntax
public class GetMessage

Properties

Content

Declaration
[Required(ErrorMessage = "Content is required.")]
[JsonProperty(PropertyName = "content")]
public string Content { get; set; }
Property Value
Type Description
string

The content of the message.

Remarks

Required

CreatedAt

Declaration
[Required(ErrorMessage = "CreatedAt is required.")]
[JsonProperty(PropertyName = "createdAt")]
public DateTime? CreatedAt { get; set; }
Property Value
Type Description
DateTime?

The time when message was created in queue.
Example: 2018-04-20T00:00:07.405Z

Remarks

Required

DeliveryCount

Declaration
[Required(ErrorMessage = "DeliveryCount is required.")]
[JsonProperty(PropertyName = "deliveryCount")]
public int? DeliveryCount { get; set; }
Property Value
Type Description
int?

The number of times that the message has been delivered to a consumer.

Remarks

Required

ExpireAfter

Declaration
[Required(ErrorMessage = "ExpireAfter is required.")]
[JsonProperty(PropertyName = "expireAfter")]
public DateTime? ExpireAfter { get; set; }
Property Value
Type Description
DateTime?

The time after which the message will be automatically deleted, expressed in RFC 3339 timestamp format.
Example: 2018-04-20T00:00:07.405Z

Remarks

Required

Id

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public long? Id { get; set; }
Property Value
Type Description
long?

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.

Remarks

Required

Metadata

Declaration
[JsonProperty(PropertyName = "metadata")]
public MessageMetadata Metadata { get; set; }
Property Value
Type Description
MessageMetadata

Receipt

Declaration
[Required(ErrorMessage = "Receipt is required.")]
[JsonProperty(PropertyName = "receipt")]
public string Receipt { get; set; }
Property Value
Type Description
string

A receipt is a base64urlencode opaque token, uniquely representing a message. The receipt can be used to delete a message or update its visibility.

Remarks

Required

VisibleAfter

Declaration
[Required(ErrorMessage = "VisibleAfter is required.")]
[JsonProperty(PropertyName = "visibleAfter")]
public DateTime? VisibleAfter { get; set; }
Property Value
Type Description
DateTime?

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

Remarks

Required

In this article
Back to top