Class InboxRetentionPolicyDto
InboxRetentionPolicyDto
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "InboxRetentionPolicyDto")]
public class InboxRetentionPolicyDto : IValidatableObject
Constructors
View SourceInboxRetentionPolicyDto()
Initializes a new instance of the InboxRetentionPolicyDto class.
Declaration
[JsonConstructor]
protected InboxRetentionPolicyDto()
InboxRetentionPolicyDto(Guid, Guid, int, DateTime, DateTime)
Initializes a new instance of the InboxRetentionPolicyDto class.
Declaration
public InboxRetentionPolicyDto(Guid id = default, Guid inboxId = default, int retentionDays = 0, DateTime createdAt = default, DateTime updatedAt = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | id (required). |
| Guid | inboxId | inboxId. |
| int | retentionDays | retentionDays (required). |
| DateTime | createdAt | createdAt (required). |
| DateTime | updatedAt | updatedAt (required). |
Properties
View SourceCreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
InboxId
Gets or Sets InboxId
Declaration
[DataMember(Name = "inboxId", EmitDefaultValue = false)]
public Guid InboxId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
RetentionDays
Gets or Sets RetentionDays
Declaration
[DataMember(Name = "retentionDays", IsRequired = true, EmitDefaultValue = true)]
public int RetentionDays { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
UpdatedAt
Gets or Sets UpdatedAt
Declaration
[DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime UpdatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Methods
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
| Type | Description |
|---|---|
| string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String presentation of the object |